create-credit-note
Generate a credit note in Xero using defined contact ID and line item details to adjust invoices or refund transactions accurately.
Instructions
Create a credit note in Xero.
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| contactId | Yes | ||
| lineItems | Yes | ||
| reference | No | 
Input Schema (JSON Schema)
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "properties": {
    "contactId": {
      "type": "string"
    },
    "lineItems": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "accountCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "taxType": {
            "type": "string"
          },
          "unitAmount": {
            "type": "number"
          }
        },
        "required": [
          "description",
          "quantity",
          "unitAmount",
          "accountCode",
          "taxType"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "reference": {
      "type": "string"
    }
  },
  "required": [
    "contactId",
    "lineItems"
  ],
  "type": "object"
}