Xero · Schema

RepeatingInvoice

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Properties

Name Type Description
Type string See Invoice Types
Contact object
Schedule object
LineItems array See LineItems
LineAmountTypes string
Reference string ACCREC only – additional reference number
BrandingThemeID string See BrandingThemes
CurrencyCode string
Status string One of the following - DRAFT or AUTHORISED – See Invoice Status Codes
SubTotal number Total of invoice excluding taxes
TotalTax number Total tax on invoice
Total number Total of Invoice tax inclusive (i.e. SubTotal + TotalTax)
RepeatingInvoiceID string Xero generated unique identifier for repeating invoice template
ID string Xero generated unique identifier for repeating invoice template
HasAttachments boolean Boolean to indicate if an invoice has an attachment
Attachments array Displays array of attachments from the API
ApprovedForSending boolean Boolean to indicate whether the invoice has been approved for sending
SendCopy boolean Boolean to indicate whether a copy is sent to sender's email
MarkAsSent boolean Boolean to indicate whether the invoice in the Xero app displays as "sent"
IncludePDF boolean Boolean to indicate whether to include PDF attachment
View JSON Schema on GitHub

JSON Schema

xero-repeatinginvoice-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RepeatingInvoice",
  "title": "RepeatingInvoice",
  "externalDocs": {
    "url": "http://developer.xero.com/documentation/api/repeating-invoices/"
  },
  "properties": {
    "Type": {
      "description": "See Invoice Types",
      "type": "string",
      "enum": [
        "ACCPAY",
        "ACCREC"
      ]
    },
    "Contact": {
      "$ref": "#/components/schemas/Contact"
    },
    "Schedule": {
      "$ref": "#/components/schemas/Schedule"
    },
    "LineItems": {
      "description": "See LineItems",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LineItem"
      }
    },
    "LineAmountTypes": {
      "$ref": "#/components/schemas/LineAmountTypes",
      "type": "string"
    },
    "Reference": {
      "description": "ACCREC only \u2013 additional reference number",
      "type": "string"
    },
    "BrandingThemeID": {
      "description": "See BrandingThemes",
      "type": "string",
      "format": "uuid"
    },
    "CurrencyCode": {
      "$ref": "#/components/schemas/CurrencyCode",
      "type": "string"
    },
    "Status": {
      "description": "One of the following - DRAFT or AUTHORISED \u2013 See Invoice Status Codes",
      "type": "string",
      "enum": [
        "DRAFT",
        "AUTHORISED",
        "DELETED"
      ]
    },
    "SubTotal": {
      "description": "Total of invoice excluding taxes",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "TotalTax": {
      "description": "Total tax on invoice",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "Total": {
      "description": "Total of Invoice tax inclusive (i.e. SubTotal + TotalTax)",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "RepeatingInvoiceID": {
      "description": "Xero generated unique identifier for repeating invoice template",
      "type": "string",
      "format": "uuid"
    },
    "ID": {
      "description": "Xero generated unique identifier for repeating invoice template",
      "type": "string",
      "format": "uuid"
    },
    "HasAttachments": {
      "description": "Boolean to indicate if an invoice has an attachment",
      "readOnly": true,
      "type": "boolean",
      "default": "false",
      "example": "false"
    },
    "Attachments": {
      "description": "Displays array of attachments from the API",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Attachment"
      }
    },
    "ApprovedForSending": {
      "description": "Boolean to indicate whether the invoice has been approved for sending",
      "type": "boolean",
      "default": "false",
      "example": "false"
    },
    "SendCopy": {
      "description": "Boolean to indicate whether a copy is sent to sender's email",
      "type": "boolean",
      "default": "false",
      "example": "false"
    },
    "MarkAsSent": {
      "description": "Boolean to indicate whether the invoice in the Xero app displays as \"sent\"",
      "type": "boolean",
      "default": "false",
      "example": "false"
    },
    "IncludePDF": {
      "description": "Boolean to indicate whether to include PDF attachment",
      "type": "boolean",
      "default": "false",
      "example": "false"
    }
  },
  "type": "object"
}