Rillet Webhooks API

The Webhooks API from Rillet — 0 operation(s) for webhooks.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rillet-webhooks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rillet-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rillet Accounting Webhooks API
  version: v4.0
servers:
- url: https://api.rillet.com
  description: Production server url
- url: https://sandbox.api.rillet.com
  description: Test server url
security:
- bearerAuth: []
tags:
- name: Webhooks
paths: {}
webhooks:
  invoice-created:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: invoice-created-webhook
      description: 'Webhook to notify when an invoice is created.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - INVOICE
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - CREATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Invoice'
        required: true
      responses:
        '200':
          description: No Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  invoice-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: invoice-updated-webhook
      description: 'Webhook to notify when an invoice is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - INVOICE
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Invoice'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  invoice-payment-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: invoice-payment-updated-webhook
      description: 'Webhook to notify when an invoice is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - INVOICE
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - PAYMENT_UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Invoice'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  invoice-deleted:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: invoice-deleted-webhook
      description: 'Webhook to notify when an invoice is deleted.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - INVOICE
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - DELETED
      requestBody:
        content:
          application/json:
            schema:
              description: The id of the deleted invoice
              type: string
              format: uuid
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  contract-created:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: contract-created-webhook
      description: 'Webhook to notify when a contract is created.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CONTRACT
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - CREATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookContract'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  contract-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: contract-updated-webhook
      description: 'Webhook to notify when a contract is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CONTRACT
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookContract'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  contract-deleted:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: contract-deleted-webhook
      description: 'Webhook to notify when a contract is deleted.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CONTRACT
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - DELETED
      requestBody:
        content:
          application/json:
            schema:
              description: The id of the deleted contract
              type: string
              format: uuid
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  credit-memo-created:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: credit-memo-created-webhook
      description: 'Webhook to notify when a credit memo is created.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CREDIT_MEMO
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - CREATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreditMemo'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  credit-memo-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: credit-memo-updated-webhook
      description: 'Webhook to notify when a credit memo is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CREDIT_MEMO
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreditMemo'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  credit-memo-payment-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: credit-memo-payment-updated-webhook
      description: 'Webhook to notify when a credit memo payment is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CREDIT_MEMO
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - PAYMENT_UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreditMemo'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  credit-memo-deleted:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: credit-memo-deleted-webhook
      description: 'Webhook to notify when a credit memo is deleted.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CREDIT_MEMO
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - DELETED
      requestBody:
        content:
          application/json:
            schema:
              description: The id of the deleted credit memo
              type: string
              format: uuid
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  customer-created:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: customer-created-webhook
      description: 'Webhook to notify when a customer is created.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CUSTOMER
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - CREATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Customer'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  customer-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: customer-updated-webhook
      description: 'Webhook to notify when a customer is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CUSTOMER
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Customer'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  customer-deleted:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: customer-deleted-webhook
      description: 'Webhook to notify when a customer is deleted.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - CUSTOMER
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - DELETED
      requestBody:
        content:
          application/json:
            schema:
              description: The id of the deleted customer
              type: string
              format: uuid
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  bill-created:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: bill-created-webhook
      description: 'Webhook to notify when a bill is created.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - BILL
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - CREATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Bill'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  bill-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: bill-updated-webhook
      description: 'Webhook to notify when a bill is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - BILL
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Bill'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  bill-deleted:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: bill-deleted-webhook
      description: 'Webhook to notify when a bill is deleted.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - BILL
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - DELETED
      requestBody:
        content:
          application/json:
            schema:
              description: The id of the deleted bill
              type: string
              format: uuid
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  vendor-created:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: vendor-created-webhook
      description: 'Webhook to notify when a vendor is created.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - VENDOR
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - CREATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VendorResponse'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  vendor-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: vendor-updated-webhook
      description: 'Webhook to notify when a vendor is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - VENDOR
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VendorResponse'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  vendor-deleted:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: vendor-deleted-webhook
      description: 'Webhook to notify when a vendor is deleted.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - VENDOR
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - DELETED
      requestBody:
        content:
          application/json:
            schema:
              description: The id of the deleted vendor
              type: string
              format: uuid
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  journal-entry-created:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: journal-entry-created-webhook
      description: 'Webhook to notify when a journal entry is created.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - JOURNAL_ENTRY
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - CREATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JournalEntry'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  journal-entry-updated:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: journal-entry-updated-webhook
      description: 'Webhook to notify when a journal entry is updated.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - JOURNAL_ENTRY
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - UPDATED
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JournalEntry'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
  journal-entry-deleted:
    post:
      tags:
      - Webhooks
      x-blank-ext: 'No effect. Added to work around codegen bug: https://github.com/OpenAPITools/openapi-generator/issues/20175'
      operationId: journal-entry-deleted-webhook
      description: 'Webhook to notify when a journal entry is deleted.

        '
      parameters:
      - $ref: '#/components/parameters/X-Rillet-Signature'
      - $ref: '#/components/parameters/X-Rillet-Timestamp'
      - $ref: '#/components/parameters/X-Rillet-Id'
      - $ref: '#/components/parameters/X-Rillet-Entity'
        schema:
          type: string
          enum:
          - JOURNAL_ENTRY
      - $ref: '#/components/parameters/X-Rillet-Event'
        schema:
          type: string
          enum:
          - DELETED
      requestBody:
        content:
          application/json:
            schema:
              description: The id of the deleted journal entry
              type: string
              format: uuid
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
components:
  schemas:
    WebhookContractItem:
      type: object
      required:
      - id
      - price
      - product_id
      - quantity
      - revenue_pattern
      - start_date
      - status
      - total_value
      - external_references
      properties:
        id:
          type: string
          format: uuid
        product_id:
          type: string
          format: uuid
        price:
          $ref: '#/components/schemas/Price'
        quantity:
          type: number
          minimum: 1
          example: 1
        total_value:
          $ref: '#/components/schemas/RoundedMonetaryAmount'
        revenue_pattern:
          $ref: '#/components/schemas/RevenuePattern'
        discount:
          $ref: '#/components/schemas/Discount'
        tax_rate:
          $ref: '#/components/schemas/TaxRate'
        start_date:
          type: string
          format: date
        end_date:
          type: string
          format: date
        status:
          type: string
          enum:
          - AMENDED
          - ACTIVE
        amending:
          type: string
          format: uuid
          description: When set, references the item this item is amending.
        fields:
          $ref: '#/components/schemas/FieldAssignments'
        external_references:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/ExternalReference'
    BillingScheme:
      discriminator:
        propertyName: type
        mapping:
          PER_UNIT: '#/components/schemas/PerUnitBilling'
          TIERED: '#/components/schemas/TieredBilling'
      oneOf:
      - $ref: '#/components/schemas/PerUnitBilling'
      - $ref: '#/components/schemas/TieredBilling'
    RevenuePattern:
      type: string
      enum:
      - DAILY
      - EVEN_PERIOD
      description: DAILY means that the revenue is divided equally per day in the revenue period. EVEN_PERIOD means that the revenue is divided equally for each calendar month in the revenue period.
    VendorRequest:
      type: object
      required:
      - name
      properties:
        name:
          type: string
          example: MyVendor
        account_code:
          $ref: '#/components/schemas/AccountCode'
        address:
          $ref: '#/components/schemas/Address'
        email:
          type: string
          format: email
        payment_terms:
          type: integer
          format: int32
          minimum: 0
          maximum: 180
        external_references:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/ExternalReference'
        ten_ninety_nine_eligible:
          type: boolean
        tax_id:
          type: string
          example: '123'
        fields:
          $ref: '#/components/schemas/FieldAssignments'
    JournalEntry:
      type: object
      required:
      - id
      - date
      - name
      - currency
      - items
      - updated_at
      properties:
        id:
          type: string
          format: uuid
        subsidiary_id:
          type: string
          format: uuid
        name:
          type: string
        currency:
          $ref: '#/components/schemas/CurrencyCode'
        related_entity:
          $ref: '#/components/schemas/JournalEntryRelatedEntity'
        items:
          type: array
          minItems: 2
          items:
            $ref: '#/components/schemas/JournalEntryItem'
        date:
          type: string
          format: date
          description: The date this journal entry was posted to the general ledger.
        reversal_date:
          type: string
          format: date
        attachmentUrl:
          type: string
          format: uri
        exchange_rate:
          $ref: '#/components/schemas/ExchangeRate'
        updated_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp in UTC timezone (must end with 'Z')
    WebhookContract:
      type: object
      required:
      - close_date
      - customer_id
      - id
      - invoicing
      - items
      - name
      - start_date
      - status
      - total_value
      - subsidiary_id
      properties:
        id:
          type: string
          format: uuid
        customer_id:
          type: string
          format: uuid
        subsidiary_id:
          type: string
          format: uuid
        name:
          type: string
          example: New API Contract
        items:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/WebhookContractItem'
        status:
          $ref: '#/components/schemas/ContractStatus'
        start_date:
          type: string
          format: date
        end_date:
          type: string
          format: date
        close_date:
          type: string
          format: date
        invoicing:
          $ref: '#/components/schemas/Invoicing'
          description: Mandatory for contracts with scope different than REVENUE_RECOGNITION_ONLY.
        usage_overage_invoicing:
          $ref: '#/components/schemas/OverageInvoicing'
          description: When set, allows the invoicing of usage overages at a separate frequency from the regular invoicing of the contract.
        total_value:
          $ref: '#/components/schemas/RoundedMonetaryAmount'
        external_references:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/ExternalReference'
        exchange_rate:
          $ref: '#/components/schemas/ExchangeRate'
        usage_commitment:
          $ref: '#/components/schemas/UsageCommitment'
    CalendarPeriod:
      type: object
      required:
      - end
      - start
      properties:
        start:
          type: string
          format: date
        end:
          type: string
          format: date
    QuarterlyInvoicing:
      type: object
      required:
      - payment_terms
      - interval
      - month_day
      properties:
        payment_terms:
          type: integer
          format: int32
          minimum: 0
          example: 0
        interval:
          type: string
          default: QUARTERLY
        month_day:
          type: string
          pattern: ^--\d{2}-\d{2}$
          description: A string in --MM-dd format. Invoices will be created starting on that date and every 3 months.
          example: --01-01
    MonetaryAmount:
      type: object
    

# --- truncated at 32 KB (61 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/rillet/refs/heads/main/openapi/rillet-webhooks-api-openapi.yml