Divvy · Schema

ReplaceCreditMemoRequestDto

Replace a credit memo

CompanyPaymentsSpend ManagementCorporate CardsExpense ManagementFintechBills

Properties

Name Type Description
customerId string BILL-generated ID of the customer. The value begins with `0cu`.
referenceNumber string User-generated credit memo number. This value can be in your chosen number scheme.
creditDate string Credit memo issued date. This value is in the `yyyy-MM-dd` format.
description string Credit memo description
salesTaxItemId string BILL-generated ID of the `SALES_TAX` item. The value begins with `0ii`. The tax rate is applied to all the credit memo line items set as taxable. You can set up a `SALES_TAX` percentage item with `POS
payToChartOfAccountId string BILL-generated ID of the chart of accounts used when the credit memo is applied to an invoice payment. The value begins with `0ca`.
payToBankAccountId string BILL-generated ID of the bank account used when the credit memo is applied to an invoice payment. The value begins with `bac`. **Note**: You can set only one of `payToChartOfAccountId` or `payToBankAc
classifications object
creditMemoLineItems array Credit memo line item information
View JSON Schema on GitHub

JSON Schema

divvy-replace-credit-memo-request-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-replace-credit-memo-request-dto-schema.json",
  "title": "ReplaceCreditMemoRequestDto",
  "description": "Replace a credit memo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-credit-memos-api-openapi.yml#/components/schemas/ReplaceCreditMemoRequestDto",
  "required": [
    "creditDate",
    "creditMemoLineItems",
    "customerId",
    "referenceNumber"
  ],
  "type": "object",
  "properties": {
    "customerId": {
      "minLength": 1,
      "type": "string",
      "description": "BILL-generated ID of the customer. The value begins with `0cu`."
    },
    "referenceNumber": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string",
      "description": "User-generated credit memo number. This value can be in your chosen number scheme."
    },
    "creditDate": {
      "type": "string",
      "description": "Credit memo issued date. This value is in the `yyyy-MM-dd` format.",
      "format": "date"
    },
    "description": {
      "type": "string",
      "description": "Credit memo description"
    },
    "salesTaxItemId": {
      "type": "string",
      "description": "BILL-generated ID of the `SALES_TAX` item. The value begins with `0ii`. The tax rate is applied to all the credit memo line items set as taxable.\n\nYou can set up a `SALES_TAX` percentage item with `POST /v3/classifications/items`."
    },
    "payToChartOfAccountId": {
      "type": "string",
      "description": "BILL-generated ID of the chart of accounts used when the credit memo is applied to an invoice payment. The value begins with `0ca`."
    },
    "payToBankAccountId": {
      "type": "string",
      "description": "BILL-generated ID of the bank account used when the credit memo is applied to an invoice payment. The value begins with `bac`.\n\n**Note**: You can set only one of `payToChartOfAccountId` or `payToBankAccountId`."
    },
    "classifications": {
      "allOf": [
        {
          "$ref": "#/$defs/InvoiceClassificationsDto"
        },
        {
          "description": "General ledger classifications information for the credit memo"
        }
      ]
    },
    "creditMemoLineItems": {
      "minItems": 1,
      "type": "array",
      "description": "Credit memo line item information",
      "items": {
        "$ref": "#/$defs/ReplaceCreditMemoLineItemDto"
      }
    }
  },
  "$defs": {
    "InvoiceClassificationsDto": {
      "type": "object",
      "properties": {
        "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`."
        },
        "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`."
        }
      },
      "description": "DTO for Invoice classifications."
    },
    "InvoiceLineItemClassificationsDto": {
      "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`."
        },
        "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`."
        }
      },
      "description": "DTO for Bill Line Item classifications."
    },
    "ReplaceCreditMemoLineItemDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "BILL-generated ID of the credit memo line item. The value begins with `cci`."
        },
        "description": {
          "type": "string",
          "description": "Credit memo line item description"
        },
        "price": {
          "type": "number",
          "description": "Credit memo line item unit price. For a credit memo in an international currency (not USD), this value is in the local currency."
        },
        "quantity": {
          "type": "number",
          "description": "Credit memo line item unit quantity"
        },
        "ratePercent": {
          "minimum": -100,
          "type": "number",
          "description": "Credit memo line item rate percent. Use `ratePercent` to apply a discount or markup in your credit memo.\n\nBILL applies the discount to the sum of the `amount` values of all the line items above the `ratePercent` line item.\n\n**Note**: Use a separate line item to set a `ratePercent` for the credit memo. Set the `ratePercent` line item as the final line item. Do not set `price` and `quantity` in the line item when you set `ratePercent`.\n\nFor example, let's say you have two line items in a credit memo with an `amount` sum of `$150`. If you create a third line item with `ratePercent` set as `-10`, a 10% discount (`$15`) is applied to the `amount` sum of `$150`."
        },
        "taxable": {
          "type": "boolean",
          "description": "Set as `true` if the credit memo line item is taxable"
        },
        "classifications": {
          "allOf": [
            {
              "$ref": "#/$defs/InvoiceLineItemClassificationsDto"
            },
            {
              "description": "General ledger classifications information for the credit memo line item"
            }
          ]
        }
      },
      "description": "Credit Memo Replace Request Line Item."
    }
  }
}

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-replace-credit-memo-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.