Xero · Schema

Prepayment

AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business

Properties

Name Type Description
Type string See Prepayment Types
Contact object
Date string The date the prepayment is created YYYY-MM-DD
Status string See Prepayment Status Codes
LineAmountTypes string
LineItems array See Prepayment Line Items
SubTotal number The subtotal of the prepayment excluding taxes
TotalTax number The total tax on the prepayment
Total number The total of the prepayment(subtotal + total tax)
Reference string Returns Invoice number field. Reference field isn't available.
InvoiceNumber string Returns Invoice number for prepayment receive document only.
UpdatedDateUTC string UTC timestamp of last update to the prepayment
CurrencyCode string
PrepaymentID string Xero generated unique identifier
CurrencyRate number The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used
RemainingCredit number The remaining credit balance on the prepayment
Allocations array See Allocations
Payments array See Payments
AppliedAmount number The amount of applied to an invoice
HasAttachments boolean boolean to indicate if a prepayment has an attachment
Attachments array See Attachments
View JSON Schema on GitHub

JSON Schema

xero-prepayment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Prepayment",
  "title": "Prepayment",
  "externalDocs": {
    "url": "http://developer.xero.com/documentation/api/prepayments/"
  },
  "properties": {
    "Type": {
      "description": "See Prepayment Types",
      "type": "string",
      "enum": [
        "RECEIVE-PREPAYMENT",
        "SPEND-PREPAYMENT",
        "ARPREPAYMENT",
        "APPREPAYMENT"
      ]
    },
    "Contact": {
      "$ref": "#/components/schemas/Contact"
    },
    "Date": {
      "description": "The date the prepayment is created YYYY-MM-DD",
      "type": "string",
      "x-is-msdate": true
    },
    "Status": {
      "description": "See Prepayment Status Codes",
      "type": "string",
      "enum": [
        "AUTHORISED",
        "PAID",
        "VOIDED"
      ]
    },
    "LineAmountTypes": {
      "$ref": "#/components/schemas/LineAmountTypes",
      "type": "string"
    },
    "LineItems": {
      "description": "See Prepayment Line Items",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LineItem"
      }
    },
    "SubTotal": {
      "description": "The subtotal of the prepayment excluding taxes",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "TotalTax": {
      "description": "The total tax on the prepayment",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "Total": {
      "description": "The total of the prepayment(subtotal + total tax)",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "Reference": {
      "description": "Returns Invoice number field. Reference field isn't available.",
      "type": "string",
      "readOnly": true
    },
    "InvoiceNumber": {
      "description": "Returns Invoice number for prepayment receive document only.",
      "type": "string",
      "readOnly": true
    },
    "UpdatedDateUTC": {
      "description": "UTC timestamp of last update to the prepayment",
      "type": "string",
      "x-is-msdate-time": true,
      "example": "/Date(1573755038314)/",
      "readOnly": true
    },
    "CurrencyCode": {
      "$ref": "#/components/schemas/CurrencyCode",
      "type": "string"
    },
    "PrepaymentID": {
      "description": "Xero generated unique identifier",
      "type": "string",
      "format": "uuid"
    },
    "CurrencyRate": {
      "description": "The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "RemainingCredit": {
      "description": "The remaining credit balance on the prepayment",
      "type": "number",
      "format": "double",
      "x-is-money": true
    },
    "Allocations": {
      "description": "See Allocations",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Allocation"
      }
    },
    "Payments": {
      "description": "See Payments",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Payment"
      }
    },
    "AppliedAmount": {
      "description": "The amount of applied to an invoice",
      "type": "number",
      "format": "double",
      "example": 2.0
    },
    "HasAttachments": {
      "description": "boolean to indicate if a prepayment has an attachment",
      "readOnly": true,
      "type": "boolean",
      "default": "false",
      "example": "false"
    },
    "Attachments": {
      "description": "See Attachments",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Attachment"
      }
    }
  },
  "type": "object"
}

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/xero-prepayment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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