> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.xero.accounting.CreatePurchaseOrder

- Component: `appmixer.xero.accounting.CreatePurchaseOrder`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.xero 2.3.0](https://connectors.appmixer.com/connector/appmixer.xero/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.xero/2.3.0/component/appmixer.xero.accounting.CreatePurchaseOrder>

Create a purchase order.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | - |
| Contact ID (`ContactID`) | text | The ID of the contact (supplier) for this purchase order. See [Contacts](https://developer.xero.com/documentation/api/accounting/contacts) |
| Line Items (`LineItems`) | textarea | JSON array of line items. Example: [{"Description":"Office supplies","Quantity":10,"UnitAmount":5.00,"AccountCode":"300"}]. See [Purchase Orders](https://developer.xero.com/documentation/api/accounting/purchaseorders) |
| `Date` | date-time | Date purchase order was issued – YYYY-MM-DD |
| Delivery Date (`DeliveryDate`) | date-time | Date the goods are to be delivered – YYYY-MM-DD |
| Line Amount Types (`LineAmountTypes`) | select | Line amounts are exclusive of tax by default if you don't specify this element. See [Line Amount Types](https://developer.xero.com/documentation/api/accounting/types#lineamount-types) |
| Purchase Order Number (`PurchaseOrderNumber`) | text | Unique alpha numeric code identifying the purchase order (when missing will auto-generate from your Organisation settings) |
| `Reference` | text | Additional reference number |
| `Status` | select | See [Purchase Order Status Codes](https://developer.xero.com/documentation/api/accounting/purchaseorders) |
| Currency Code (`CurrencyCode`) | select | 3 letter alpha code for the currency – see [Currency Codes](https://developer.xero.com/documentation/api/accounting/currencies) |
| Currency Rate (`CurrencyRate`) | number | The currency rate for a multicurrency purchase order. If no rate is specified, the XE.com day rate is used. |
| Sent To Contact (`SentToContact`) | toggle | Boolean to set whether the purchase order in the Xero app should be marked as sent. This can be set only on purchase orders that have been approved. |
| Delivery Address (`DeliveryAddress`) | textarea | The address the goods are to be delivered to |
| Attention To (`AttentionTo`) | text | The person that the delivery is going to |
| `Telephone` | text | The phone number for the person accepting the delivery |
| Delivery Instructions (`DeliveryInstructions`) | textarea | A free text field for instructions |
| Expected Arrival Date (`ExpectedArrivalDate`) | date-time | The date the goods are expected to arrive – YYYY-MM-DD |
| Branding Theme ID (`BrandingThemeID`) | text | See [Branding Themes](https://developer.xero.com/documentation/api/accounting/brandingthemes) |
| `Url` | text | URL link to a source document |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Purchase Order ID (`PurchaseOrderID`) | string | - |
| Purchase Order Number (`PurchaseOrderNumber`) | string | - |
| `Reference` | string | - |
| `Type` | string | - |
| `Status` | string | - |
| `Contact` | object | - |
| `Date` | string | - |
| Date String (`DateString`) | string | - |
| Delivery Date (`DeliveryDate`) | string | - |
| Delivery Date String (`DeliveryDateString`) | string | - |
| Line Amount Types (`LineAmountTypes`) | string | - |
| Line Items (`LineItems`) | array | - |
| Sub Total (`SubTotal`) | number | - |
| Total Tax (`TotalTax`) | number | - |
| `Total` | number | - |
| Total Discount (`TotalDiscount`) | number | - |
| Currency Code (`CurrencyCode`) | string | - |
| Currency Rate (`CurrencyRate`) | number | - |
| Updated Date UTC (`UpdatedDateUTC`) | string | - |
| Has Attachments (`HasAttachments`) | boolean | - |
| Has Errors (`HasErrors`) | boolean | - |
| Is Discounted (`IsDiscounted`) | boolean | - |
| Branding Theme ID (`BrandingThemeID`) | string | - |
| `Url` | string | - |
| Sent To Contact (`SentToContact`) | boolean | - |
| Delivery Address (`DeliveryAddress`) | string | - |
| Attention To (`AttentionTo`) | string | - |
| `Telephone` | string | - |
| Delivery Instructions (`DeliveryInstructions`) | string | - |
| Expected Arrival Date (`ExpectedArrivalDate`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.CreatePurchaseOrder",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a purchase order.",
  "private": false,
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.invoices"
    ]
  },
  "quota": {
    "manager": "appmixer:xero:accounting",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "ContactID": {
            "type": "string",
            "format": "uuid"
          },
          "LineItems": {
            "type": "string"
          },
          "Date": {
            "type": "string",
            "format": "date"
          },
          "DeliveryDate": {
            "type": "string",
            "format": "date"
          },
          "LineAmountTypes": {
            "type": "string",
            "enum": [
              "Exclusive",
              "Inclusive",
              "NoTax"
            ]
          },
          "PurchaseOrderNumber": {
            "type": "string",
            "maxLength": 255
          },
          "Reference": {
            "type": "string",
            "maxLength": 255
          },
          "CurrencyCode": {
            "type": "string"
          },
          "CurrencyRate": {
            "type": "number"
          },
          "Status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "SUBMITTED",
              "AUTHORISED",
              "BILLED",
              "DELETED"
            ]
          },
          "SentToContact": {
            "type": "boolean"
          },
          "DeliveryAddress": {
            "type": "string"
          },
          "AttentionTo": {
            "type": "string",
            "maxLength": 255
          },
          "Telephone": {
            "type": "string",
            "maxLength": 50
          },
          "DeliveryInstructions": {
            "type": "string"
          },
          "ExpectedArrivalDate": {
            "type": "string",
            "format": "date"
          },
          "BrandingThemeID": {
            "type": "string",
            "format": "uuid"
          },
          "Url": {
            "type": "string"
          }
        },
        "required": [
          "tenantId",
          "ContactID",
          "LineItems"
        ]
      },
      "inspector": {
        "inputs": {
          "tenantId": {
            "type": "text",
            "label": "Tenant ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
              "data": {
                "transform": "./transformers#tenantsToSelectArray"
              }
            }
          },
          "ContactID": {
            "type": "text",
            "label": "Contact ID",
            "tooltip": "The ID of the contact (supplier) for this purchase order. See <a target=\"_blank\" href=\"https://developer.xero.com/documentation/api/accounting/contacts\">Contacts</a>",
            "source": {
              "url": "/component/appmixer/xero/accounting/ListContacts?outPort=contacts",
              "data": {
                "messages": {
                  "in/tenantId": "inputs/in/tenantId"
                },
                "transform": "./transformers#contactsToSelectArray"
              }
            },
            "index": 2
          },
          "LineItems": {
            "type": "textarea",
            "label": "Line Items",
            "tooltip": "JSON array of line items. Example: [{\"Description\":\"Office supplies\",\"Quantity\":10,\"UnitAmount\":5.00,\"AccountCode\":\"300\"}]. See <a target=\"_blank\" href=\"https://developer.xero.com/documentation/api/accounting/purchaseorders\">Purchase Orders</a>",
            "index": 3
          },
          "Date": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "label": "Date",
            "tooltip": "Date purchase order was issued – YYYY-MM-DD",
            "index": 4
          },
          "DeliveryDate": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "label": "Delivery Date",
            "tooltip": "Date the goods are to be delivered – YYYY-MM-DD",
            "index": 5
          },
          "LineAmountTypes": {
            "type": "select",
            "label": "Line Amount Types",
            "tooltip": "Line amounts are exclusive of tax by default if you don't specify this element. See <a target=\"_blank\" href=\"https://developer.xero.com/documentation/api/accounting/types#lineamount-types\">Line Amount Types</a>",
            "options": [
              {
                "clearItem": true,
                "content": "None"
              },
              {
                "content": "Exclusive",
                "value": "Exclusive"
              },
              {
                "content": "Inclusive",
                "value": "Inclusive"
              },
              {
                "content": "NoTax",
                "value": "NoTax"
              }
            ],
            "index": 6
          },
          "PurchaseOrderNumber": {
            "type": "text",
            "label": "Purchase Order Number",
            "tooltip": "Unique alpha numeric code identifying the purchase order (when missing will auto-generate from your Organisation settings)",
            "index": 7
          },
          "Reference": {
            "type": "text",
            "label": "Reference",
            "tooltip": "Additional reference number",
            "index": 8
          },
          "Status": {
            "type": "select",
            "label": "Status",
            "tooltip": "See <a target=\"_blank\" href=\"https://developer.xero.com/documentation/api/accounting/purchaseorders\">Purchase Order Status Codes</a>",
            "options": [
              {
                "clearItem": true,
                "content": "None"
              },
              {
                "content": "DRAFT",
                "value": "DRAFT"
              },
              {
                "content": "SUBMITTED",
                "value": "SUBMITTED"
              },
              {
                "content": "AUTHORISED",
                "value": "AUTHORISED"
              },
              {
                "content": "BILLED",
                "value": "BILLED"
              },
              {
                "content": "DELETED",
                "value": "DELETED"
              }
            ],
            "index": 9
          },
          "CurrencyCode": {
            "type": "select",
            "label": "Currency Code",
            "tooltip": "3 letter alpha code for the currency – see <a target=\"_blank\" href=\"https://developer.xero.com/documentation/api/accounting/currencies\">Currency Codes</a>",
            "options": [
              {
                "clearItem": true,
                "content": "None"
              },
              {
                "content": "AED",
                "value": "AED"
              },
              {
                "content": "AFN",
                "value": "AFN"
              },
              {
                "content": "ALL",
                "value": "ALL"
              },
              {
                "content": "AMD",
                "value": "AMD"
              },
              {
                "content": "ANG",
                "value": "ANG"
              },
              {
                "content": "AOA",
                "value": "AOA"
              },
              {
                "content": "ARS",
                "value": "ARS"
              },
              {
                "content": "AUD",
                "value": "AUD"
              },
              {
                "content": "AWG",
                "value": "AWG"
              },
              {
                "content": "AZN",
                "value": "AZN"
              },
              {
                "content": "BAM",
                "value": "BAM"
              },
              {
                "content": "BBD",
                "value": "BBD"
              },
              {
                "content": "BDT",
                "value": "BDT"
              },
              {
                "content": "BGN",
                "value": "BGN"
              },
              {
                "content": "BHD",
                "value": "BHD"
              },
              {
                "content": "BIF",
                "value": "BIF"
              },
              {
                "content": "BMD",
                "value": "BMD"
              },
              {
                "content": "BND",
                "value": "BND"
              },
              {
                "content": "BOB",
                "value": "BOB"
              },
              {
                "content": "BRL",
                "value": "BRL"
              },
              {
                "content": "BSD",
                "value": "BSD"
              },
              {
                "content": "BTN",
                "value": "BTN"
              },
              {
                "content": "BWP",
                "value": "BWP"
              },
              {
                "content": "BYN",
                "value": "BYN"
              },
              {
                "content": "BZD",
                "value": "BZD"
              },
              {
                "content": "CAD",
                "value": "CAD"
              },
              {
                "content": "CDF",
                "value": "CDF"
              },
              {
                "content": "CHF",
                "value": "CHF"
              },
              {
                "content": "CLP",
                "value": "CLP"
              },
              {
                "content": "CNY",
                "value": "CNY"
              },
              {
                "content": "COP",
                "value": "COP"
              },
              {
                "content": "CRC",
                "value": "CRC"
              },
              {
                "content": "CUP",
                "value": "CUP"
              },
              {
                "content": "CVE",
                "value": "CVE"
              },
              {
                "content": "CZK",
                "value": "CZK"
              },
              {
                "content": "DJF",
                "value": "DJF"
              },
              {
                "content": "DKK",
                "value": "DKK"
              },
              {
                "content": "DOP",
                "value": "DOP"
              },
              {
                "content": "DZD",
                "value": "DZD"
              },
              {
                "content": "EGP",
                "value": "EGP"
              },
              {
                "content": "ERN",
                "value": "ERN"
              },
              {
                "content": "ETB",
                "value": "ETB"
              },
              {
                "content": "EUR",
                "value": "EUR"
              },
              {
                "content": "FJD",
                "value": "FJD"
              },
              {
                "content": "FKP",
                "value": "FKP"
              },
              {
                "content": "GBP",
                "value": "GBP"
              },
              {
                "content": "GEL",
                "value": "GEL"
              },
              {
                "content": "GHS",
                "value": "GHS"
              },
              {
                "content": "GIP",
                "value": "GIP"
              },
              {
                "content": "GMD",
                "value": "GMD"
              },
              {
                "content": "GNF",
                "value": "GNF"
              },
              {
                "content": "GTQ",
                "value": "GTQ"
              },
              {
                "content": "GYD",
                "value": "GYD"
              },
              {
                "content": "HKD",
                "value": "HKD"
              },
              {
                "content": "HNL",
                "value": "HNL"
              },
              {
                "content": "HTG",
                "value": "HTG"
              },
              {
                "content": "HUF",
                "value": "HUF"
              },
              {
                "content": "IDR",
                "value": "IDR"
              },
              {
                "content": "ILS",
                "value": "ILS"
              },
              {
                "content": "INR",
                "value": "INR"
              },
              {
                "content": "IQD",
                "value": "IQD"
              },
              {
                "content": "IRR",
                "value": "IRR"
              },
              {
                "content": "ISK",
                "value": "ISK"
              },
              {
                "content": "JMD",
                "value": "JMD"
              },
              {
                "content": "JOD",
                "value": "JOD"
              },
              {
                "content": "JPY",
                "value": "JPY"
              },
              {
                "content": "KES",
                "value": "KES"
              },
              {
                "content": "KGS",
                "value": "KGS"
              },
              {
                "content": "KHR",
                "value": "KHR"
              },
              {
                "content": "KMF",
                "value": "KMF"
              },
              {
                "content": "KRW",
                "value": "KRW"
              },
              {
                "content": "KWD",
                "value": "KWD"
              },
              {
                "content": "KYD",
                "value": "KYD"
              },
              {
                "content": "KZT",
                "value": "KZT"
              },
              {
                "content": "LAK",
                "value": "LAK"
              },
              {
                "content": "LBP",
                "value": "LBP"
              },
              {
                "content": "LKR",
                "value": "LKR"
              },
              {
                "content": "LRD",
                "value": "LRD"
              },
              {
                "content": "LSL",
                "value": "LSL"
              },
              {
                "content": "LYD",
                "value": "LYD"
              },
              {
                "content": "MAD",
                "value": "MAD"
              },
              {
                "content": "MDL",
                "value": "MDL"
              },
              {
                "content": "MGA",
                "value": "MGA"
              },
              {
                "content": "MKD",
                "value": "MKD"
              },
              {
                "content": "MMK",
                "value": "MMK"
              },
              {
                "content": "MNT",
                "value": "MNT"
              },
              {
                "content": "MOP",
                "value": "MOP"
              },
              {
                "content": "MRU",
                "value": "MRU"
              },
              {
                "content": "MUR",
                "value": "MUR"
              },
              {
                "content": "MVR",
                "value": "MVR"
              },
              {
                "content": "MWK",
                "value": "MWK"
              },
              {
                "content": "MXN",
                "value": "MXN"
              },
              {
                "content": "MYR",
                "value": "MYR"
              },
              {
                "content": "MZN",
                "value": "MZN"
              },
              {
                "content": "NAD",
                "value": "NAD"
              },
              {
                "content": "NGN",
                "value": "NGN"
              },
              {
                "content": "NIO",
                "value": "NIO"
              },
              {
                "content": "NOK",
                "value": "NOK"
              },
              {
                "content": "NPR",
                "value": "NPR"
              },
              {
                "content": "NZD",
                "value": "NZD"
              },
              {
                "content": "OMR",
                "value": "OMR"
              },
              {
                "content": "PAB",
                "value": "PAB"
              },
              {
                "content": "PEN",
                "value": "PEN"
              },
              {
                "content": "PGK",
                "value": "PGK"
              },
              {
                "content": "PHP",
                "value": "PHP"
              },
              {
                "content": "PKR",
                "value": "PKR"
              },
              {
                "content": "PLN",
                "value": "PLN"
              },
              {
                "content": "PYG",
                "value": "PYG"
              },
              {
                "content": "QAR",
                "value": "QAR"
              },
              {
                "content": "RON",
                "value": "RON"
              },
              {
                "content": "RSD",
                "value": "RSD"
              },
              {
                "content": "RUB",
                "value": "RUB"
              },
              {
                "content": "RWF",
                "value": "RWF"
              },
              {
                "content": "SAR",
                "value": "SAR"
              },
              {
                "content": "SBD",
                "value": "SBD"
              },
              {
                "content": "SCR",
                "value": "SCR"
              },
              {
                "content": "SDG",
                "value": "SDG"
              },
              {
                "content": "SEK",
                "value": "SEK"
              },
              {
                "content": "SGD",
                "value": "SGD"
              },
              {
                "content": "SHP",
                "value": "SHP"
              },
              {
                "content": "SLE",
                "value": "SLE"
              },
              {
                "content": "SOS",
                "value": "SOS"
              },
              {
                "content": "SRD",
                "value": "SRD"
              },
              {
                "content": "STN",
                "value": "STN"
              },
              {
                "content": "SVC",
                "value": "SVC"
              },
              {
                "content": "SYP",
                "value": "SYP"
              },
              {
                "content": "SZL",
                "value": "SZL"
              },
              {
                "content": "THB",
                "value": "THB"
              },
              {
                "content": "TJS",
                "value": "TJS"
              },
              {
                "content": "TMT",
                "value": "TMT"
              },
              {
                "content": "TND",
                "value": "TND"
              },
              {
                "content": "TOP",
                "value": "TOP"
              },
              {
                "content": "TRY",
                "value": "TRY"
              },
              {
                "content": "TTD",
                "value": "TTD"
              },
              {
                "content": "TWD",
                "value": "TWD"
              },
              {
                "content": "TZS",
                "value": "TZS"
              },
              {
                "content": "UAH",
                "value": "UAH"
              },
              {
                "content": "UGX",
                "value": "UGX"
              },
              {
                "content": "USD",
                "value": "USD"
              },
              {
                "content": "UYU",
                "value": "UYU"
              },
              {
                "content": "UZS",
                "value": "UZS"
              },
              {
                "content": "VES",
                "value": "VES"
              },
              {
                "content": "VND",
                "value": "VND"
              },
              {
                "content": "VUV",
                "value": "VUV"
              },
              {
                "content": "WST",
                "value": "WST"
              },
              {
                "content": "XAF",
                "value": "XAF"
              },
              {
                "content": "XCD",
                "value": "XCD"
              },
              {
                "content": "XOF",
                "value": "XOF"
              },
              {
                "content": "XPF",
                "value": "XPF"
              },
              {
                "content": "YER",
                "value": "YER"
              },
              {
                "content": "ZAR",
                "value": "ZAR"
              },
              {
                "content": "ZMW",
                "value": "ZMW"
              }
            ],
            "index": 10
          },
          "CurrencyRate": {
            "type": "number",
            "label": "Currency Rate",
            "tooltip": "The currency rate for a multicurrency purchase order. If no rate is specified, the XE.com day rate is used.",
            "index": 11
          },
          "SentToContact": {
            "type": "toggle",
            "label": "Sent To Contact",
            "tooltip": "Boolean to set whether the purchase order in the Xero app should be marked as sent. This can be set only on purchase orders that have been approved.",
            "index": 12
          },
          "DeliveryAddress": {
            "type": "textarea",
            "label": "Delivery Address",
            "tooltip": "The address the goods are to be delivered to",
            "index": 13
          },
          "AttentionTo": {
            "type": "text",
            "label": "Attention To",
            "tooltip": "The person that the delivery is going to",
            "index": 14
          },
          "Telephone": {
            "type": "text",
            "label": "Telephone",
            "tooltip": "The phone number for the person accepting the delivery",
            "index": 15
          },
          "DeliveryInstructions": {
            "type": "textarea",
            "label": "Delivery Instructions",
            "tooltip": "A free text field for instructions",
            "index": 16
          },
          "ExpectedArrivalDate": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "label": "Expected Arrival Date",
            "tooltip": "The date the goods are expected to arrive – YYYY-MM-DD",
            "index": 17
          },
          "BrandingThemeID": {
            "type": "text",
            "label": "Branding Theme ID",
            "tooltip": "See <a target=\"_blank\" href=\"https://developer.xero.com/documentation/api/accounting/brandingthemes\">Branding Themes</a>",
            "index": 18
          },
          "Url": {
            "type": "text",
            "label": "Url",
            "tooltip": "URL link to a source document",
            "index": 19
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Purchase Order ID",
          "value": "PurchaseOrderID",
          "schema": {
            "type": "string",
            "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
          }
        },
        {
          "label": "Purchase Order Number",
          "value": "PurchaseOrderNumber",
          "schema": {
            "type": "string",
            "example": "PO-0001"
          }
        },
        {
          "label": "Reference",
          "value": "Reference",
          "schema": {
            "type": "string",
            "example": "PO-REF-001"
          }
        },
        {
          "label": "Type",
          "value": "Type",
          "schema": {
            "type": "string",
            "example": "PURCHASEORDER"
          }
        },
        {
          "label": "Status",
          "value": "Status",
          "schema": {
            "type": "string",
            "example": "DRAFT"
          }
        },
        {
          "label": "Contact",
          "value": "Contact",
          "schema": {
            "type": "object",
            "example": {
              "ContactID": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
              "Name": "Acme Corp"
            }
          }
        },
        {
          "label": "Date",
          "value": "Date",
          "schema": {
            "type": "string",
            "example": "/Date(1704067200000+0000)/"
          }
        },
        {
          "label": "Date String",
          "value": "DateString",
          "schema": {
            "type": "string",
            "example": "2026-01-15"
          }
        },
        {
          "label": "Delivery Date",
          "value": "DeliveryDate",
          "schema": {
            "type": "string",
            "example": "/Date(1704067200000+0000)/"
          }
        },
        {
          "label": "Delivery Date String",
          "value": "DeliveryDateString",
          "schema": {
            "type": "string",
            "example": "2026-01-15"
          }
        },
        {
          "label": "Line Amount Types",
          "value": "LineAmountTypes",
          "schema": {
            "type": "string",
            "example": "Exclusive"
          }
        },
        {
          "label": "Line Items",
          "value": "LineItems",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "Description": {
                  "type": "string",
                  "title": "Description"
                },
                "UnitAmount": {
                  "type": "number",
                  "title": "UnitAmount"
                },
                "Quantity": {
                  "type": "number",
                  "title": "Quantity"
                },
                "LineAmount": {
                  "type": "number",
                  "title": "LineAmount"
                },
                "TaxAmount": {
                  "type": "number",
                  "title": "TaxAmount"
                },
                "TaxType": {
                  "type": "string",
                  "title": "TaxType"
                },
                "AccountCode": {
                  "type": "string",
                  "title": "AccountCode"
                },
                "ItemCode": {
                  "type": "string",
                  "title": "ItemCode"
                },
                "LineItemID": {
                  "type": "string",
                  "title": "LineItemID"
                },
                "DiscountRate": {
                  "type": "number",
                  "title": "DiscountRate"
                }
              }
            },
            "example": [
              {
                "Description": "Office supplies",
                "Quantity": 10,
                "UnitAmount": 5
              }
            ]
          }
        },
        {
          "label": "Sub Total",
          "value": "SubTotal",
          "schema": {
            "type": "number",
            "example": 1000
          }
        },
        {
          "label": "Total Tax",
          "value": "TotalTax",
          "schema": {
            "type": "number",
            "example": 100
          }
        },
        {
          "label": "Total",
          "value": "Total",
          "schema": {
            "type": "number",
            "example": 1100
          }
        },
        {
          "label": "Total Discount",
          "value": "TotalDiscount",
          "schema": {
            "type": "number",
            "example": 50
          }
        },
        {
          "label": "Currency Code",
          "value": "CurrencyCode",
          "schema": {
            "type": "string",
            "example": "USD"
          }
        },
        {
          "label": "Currency Rate",
          "value": "CurrencyRate",
          "schema": {
            "type": "number",
            "example": 1
          }
        },
        {
          "label": "Updated Date UTC",
          "value": "UpdatedDateUTC",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:30:00Z"
          }
        },
        {
          "label": "Has Attachments",
          "value": "HasAttachments",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Has Errors",
          "value": "HasErrors",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Is Discounted",
          "value": "IsDiscounted",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Branding Theme ID",
          "value": "BrandingThemeID",
          "schema": {
            "type": "string",
            "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
          }
        },
        {
          "label": "Url",
          "value": "Url",
          "schema": {
            "type": "string",
            "example": "https://example.com/po/1"
          }
        },
        {
          "label": "Sent To Contact",
          "value": "SentToContact",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Delivery Address",
          "value": "DeliveryAddress",
          "schema": {
            "type": "string",
            "example": "123 Main St, Springfield"
          }
        },
        {
          "label": "Attention To",
          "value": "AttentionTo",
          "schema": {
            "type": "string",
            "example": "John Smith"
          }
        },
        {
          "label": "Telephone",
          "value": "Telephone",
          "schema": {
            "type": "string",
            "example": "+1-555-0100"
          }
        },
        {
          "label": "Delivery Instructions",
          "value": "DeliveryInstructions",
          "schema": {
            "type": "string",
            "example": "Leave at reception"
          }
        },
        {
          "label": "Expected Arrival Date",
          "value": "ExpectedArrivalDate",
          "schema": {
            "type": "string",
            "example": "2026-01-20"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
