{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/forwardai/json-schema/forwardai-business-debit-notes-response-schema.json",
  "title": "BusinessDebitNotesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/forwardai-debit-note-api-openapi.yml#/components/schemas/BusinessDebitNotesResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "refNumber": {
      "type": "string"
    },
    "contact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "date": {
      "type": "string"
    },
    "dueDate": {
      "type": "string"
    },
    "lineItems": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "lineNumber": {
            "type": "number"
          },
          "item": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "account": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "description": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "unitPrice": {
            "type": "number"
          },
          "lineAmount": {
            "type": "number"
          },
          "discountAmount": {
            "type": "number"
          },
          "taxCode": {
            "type": "string"
          }
        }
      }
    },
    "memo": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "exchangeRate": {
      "type": "number"
    },
    "amount": {
      "type": "number"
    },
    "totalDiscount": {
      "type": "number"
    },
    "totalTax": {
      "type": "number"
    },
    "balance": {
      "type": "number"
    },
    "appliedStatus": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "allocations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          }
        }
      }
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  }
}