Xero · Schema

Purchase

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Properties

Name Type Description
UnitPrice number Unit Price of the item. By default UnitPrice is rounded to two decimal places. You can use 4 decimal places by adding the unitdp=4 querystring parameter to your request.
AccountCode string Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items
COGSAccountCode string Cost of goods sold account. Only applicable to the purchase details of tracked items.
TaxType string The tax type from TaxRates
View JSON Schema on GitHub

JSON Schema

xero-purchase-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Purchase",
  "title": "Purchase",
  "externalDocs": {
    "url": "http://developer.xero.com/documentation/api/items/"
  },
  "properties": {
    "UnitPrice": {
      "description": "Unit Price of the item. By default UnitPrice is rounded to two decimal places. You can use 4 decimal places by adding the unitdp=4 querystring parameter to your request.",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "AccountCode": {
      "description": "Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items",
      "type": "string"
    },
    "COGSAccountCode": {
      "description": "Cost of goods sold account. Only applicable to the purchase details of tracked items.",
      "type": "string"
    },
    "TaxType": {
      "description": "The tax type from TaxRates",
      "type": "string"
    }
  },
  "type": "object"
}