Divvy · Schema

BillCreateRequestDto

Create a bill

CompanyPaymentsSpend ManagementCorporate CardsExpense ManagementFintechBills

Properties

Name Type Description
vendorId string BILL-generated ID of the vendor. The value begins with `009`.
description string Bill description
dueDate string Bill due date. The value is in the `yyyy-MM-dd` format.
paymentTermId string
billLineItems array Bill line items information
invoice object
payFromChartOfAccountId string BILL-generated ID of the chart of accounts for the bill payment. The value begins with `0ca`.
classifications object
vendorCredits array Vendor credits applied to the bill
purchaseOrderNumber string Purchase order number linked with the bill
billApprovals boolean Set as `true` for BILL to add approvals information in the response. When you have approval policies set up for bills and a bill matches a policy, you see an additional `approvers` array of objects in
allowDuplicateInvoiceNumber boolean Set as `false` to reject the request when the bill's `invoice.invoiceNumber` duplicates an existing invoice number for the vendor. Defaults to `true`, which allows duplicate invoice numbers.
View JSON Schema on GitHub

JSON Schema

divvy-bill-create-request-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-bill-create-request-dto-schema.json",
  "title": "BillCreateRequestDto",
  "description": "Create a bill",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-bills-api-openapi.yml#/components/schemas/BillCreateRequestDto",
  "required": [
    "billLineItems",
    "dueDate",
    "invoice",
    "vendorId"
  ],
  "type": "object",
  "properties": {
    "vendorId": {
      "minLength": 1,
      "type": "string",
      "description": "BILL-generated ID of the vendor. The value begins with `009`."
    },
    "description": {
      "maxLength": 4000,
      "type": "string",
      "description": "Bill description"
    },
    "dueDate": {
      "type": "string",
      "description": "Bill due date. The value is in the `yyyy-MM-dd` format.",
      "format": "date"
    },
    "paymentTermId": {
      "type": "string"
    },
    "billLineItems": {
      "minItems": 1,
      "type": "array",
      "description": "Bill line items information",
      "items": {
        "$ref": "#/$defs/BillCreateLineItemDto"
      }
    },
    "invoice": {
      "allOf": [
        {
          "$ref": "#/$defs/Invoice"
        },
        {
          "description": "Invoice information"
        }
      ]
    },
    "payFromChartOfAccountId": {
      "type": "string",
      "description": "BILL-generated ID of the chart of accounts for the bill payment. The value begins with `0ca`."
    },
    "classifications": {
      "allOf": [
        {
          "$ref": "#/$defs/BillClassificationsDto"
        },
        {
          "description": "General ledger classifications information for the bill"
        }
      ]
    },
    "vendorCredits": {
      "type": "array",
      "description": "Vendor credits applied to the bill",
      "items": {
        "$ref": "#/$defs/BillVendorCreditRequestItemDto"
      }
    },
    "purchaseOrderNumber": {
      "type": "string",
      "description": "Purchase order number linked with the bill"
    },
    "billApprovals": {
      "type": "boolean",
      "description": "Set as `true` for BILL to add approvals information in the response.\n\nWhen you have approval policies set up for bills and a bill matches a policy, you see an additional `approvers` array of objects in the response. The array shows the list of individual users and/or user groups assigned as bill approvers. In addition, the array provides information about the status of the bill in the current approval flow.\n\n**Note**: When you set `billApprovals` as `true`, you must set the field as `true` if you want to update the bill (`PATCH /v3/bills/{billId}`) or replace the bill (`PUT /v3/bills/{billId}`)."
    },
    "allowDuplicateInvoiceNumber": {
      "type": "boolean",
      "description": "Set as `false` to reject the request when the bill's `invoice.invoiceNumber` duplicates an existing invoice number for the vendor. Defaults to `true`, which allows duplicate invoice numbers."
    }
  },
  "$defs": {
    "BillClassificationsDto": {
      "type": "object",
      "properties": {
        "chartOfAccountId": {
          "type": "string",
          "description": "BILL-generated ID of the chart of accounts. The value begins with `0ca`."
        },
        "accountingClassId": {
          "type": "string",
          "description": "BILL-generated ID of the accounting class. The value begins with `cls`."
        },
        "departmentId": {
          "type": "string",
          "description": "BILL-generated ID of the department. The value begins with `0de`."
        },
        "locationId": {
          "type": "string",
          "description": "BILL-generated ID of the location. The value begins with `loc`."
        },
        "itemId": {
          "type": "string",
          "description": "BILL-generated ID of the item. The value begins with `0ii`."
        }
      },
      "description": "DTO for Bill classifications."
    },
    "BillCreateLineItemDto": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "description": "Bill line item amount. For a bill in an international currency (not USD), this value is in the local currency.\n\nIf you set `amount`, `quantity`, and `price`, BILL uses the `amount` value as the bill line item total amount."
        },
        "quantity": {
          "type": "number",
          "description": "Bill line item unit quantity"
        },
        "price": {
          "type": "number",
          "description": "Bill line item unit price. For a bill in an international currency (not USD), this value is in the local currency."
        },
        "description": {
          "maxLength": 4000,
          "type": "string",
          "description": "Bill line item description"
        },
        "classifications": {
          "allOf": [
            {
              "$ref": "#/$defs/BillLineItemClassificationsDto"
            },
            {
              "description": "General ledger classifications information for the bill line item"
            }
          ]
        }
      },
      "description": "Line items that define a bill's overall amount."
    },
    "BillLineItemClassificationsDto": {
      "type": "object",
      "properties": {
        "chartOfAccountId": {
          "type": "string",
          "description": "BILL-generated ID of the chart of accounts. The value begins with `0ca`."
        },
        "accountingClassId": {
          "type": "string",
          "description": "BILL-generated ID of the accounting class. The value begins with `cls`."
        },
        "departmentId": {
          "type": "string",
          "description": "BILL-generated ID of the department. The value begins with `0de`."
        },
        "employeeId": {
          "type": "string",
          "description": "BILL-generated ID of the employee. The value begins with `emp`."
        },
        "jobId": {
          "type": "string",
          "description": "BILL-generated ID of the job. The value begins with `job`."
        },
        "locationId": {
          "type": "string",
          "description": "BILL-generated ID of the location. The value begins with `loc`."
        },
        "itemId": {
          "type": "string",
          "description": "BILL-generated ID of the item. The value begins with `0ii`."
        },
        "customerId": {
          "type": "string",
          "description": "BILL-generated ID of the customer. The value begins with `0cu`."
        }
      },
      "description": "DTO for Bill Line Item classifications."
    },
    "BillVendorCreditRequestItemDto": {
      "required": [
        "amount",
        "id"
      ],
      "type": "object",
      "properties": {
        "id": {
          "minLength": 1,
          "type": "string",
          "description": "BILL-generated ID of the vendor credit applied to the bill payment. The value begins with `vcr`."
        },
        "amount": {
          "minimum": 0,
          "type": "number",
          "description": "Credit amount"
        }
      },
      "description": "API level DTO for apply vendor credit to bill request item."
    },
    "Invoice": {
      "required": [
        "invoiceDate",
        "invoiceNumber"
      ],
      "type": "object",
      "properties": {
        "invoiceNumber": {
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "description": "User-generated invoice number. This value can be your chosen number scheme or bill due date."
        },
        "invoiceDate": {
          "type": "string",
          "description": "Date when the invoice is sent. This value is in the `yyyy-MM-dd` format.",
          "format": "date"
        }
      },
      "description": "Invoice linked to a bill."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/divvy-bill-create-request-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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