Zoho Inventory · Schema

Purchase Orders

A purchase order is an official document that you issue to your vendors, indicating relevant information about what you want to buy, the quantity, the price agreed for that particular product or service.

Inventory ManagementWarehousingSales OrdersPurchase OrdersStock AdjustmentShipmentsItemsE-commerce
View JSON Schema on GitHub

JSON Schema

purchaseorders.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Purchase Orders",
  "description": "A purchase order is an official document that you issue to your vendors, indicating relevant information about what you want to buy, the quantity, the price agreed for that particular product or service.",
  "definitions": {
    "gendoc-attributes-schema": {
      "$ref": "#/components/schemas/purchase_order-response"
    },
    "purchase_order-response": {
      "type": "object",
      "properties": {
        "purchaseorder_id": {
          "$ref": "#/components/schemas/purchaseorder_id"
        },
        "documents": {
          "$ref": "#/components/schemas/documents"
        },
        "purchaseorder_number": {
          "$ref": "#/components/schemas/purchaseorder_number"
        },
        "date": {
          "$ref": "#/components/schemas/date"
        },
        "expected_delivery_date": {
          "$ref": "#/components/schemas/expected_delivery_date"
        },
        "date_formatted": {
          "$ref": "#/components/schemas/date_formatted"
        },
        "expected_delivery_date_formatted": {
          "$ref": "#/components/schemas/expected_delivery_date_formatted"
        },
        "delivery_date_formatted": {
          "$ref": "#/components/schemas/delivery_date_formatted"
        },
        "status_formatted": {
          "$ref": "#/components/schemas/status_formatted"
        },
        "billed_status": {
          "$ref": "#/components/schemas/billed_status"
        },
        "is_emailed": {
          "$ref": "#/components/schemas/is_emailed"
        },
        "is_inclusive_tax": {
          "$ref": "#/components/schemas/is_inclusive_tax"
        },
        "is_backorder": {
          "$ref": "#/components/schemas/is_backorder"
        },
        "reference_number": {
          "$ref": "#/components/schemas/reference_number"
        },
        "status": {
          "$ref": "#/components/schemas/status"
        },
        "vendor_id": {
          "$ref": "#/components/schemas/vendor_id"
        },
        "vendor_name": {
          "$ref": "#/components/schemas/vendor_name"
        },
        "contact_persons_associated": {
          "$ref": "#/components/schemas/contact_persons_associated"
        },
        "comments": {
          "$ref": "#/components/schemas/comments"
        },
        "currency_id": {
          "$ref": "#/components/schemas/currency_id"
        },
        "currency_code": {
          "$ref": "#/components/schemas/currency_code"
        },
        "currency_symbol": {
          "$ref": "#/components/schemas/currency_symbol"
        },
        "exchange_rate": {
          "$ref": "#/components/schemas/exchange_rate"
        },
        "delivery_date": {
          "$ref": "#/components/schemas/delivery_date"
        },
        "salesorder_id": {
          "$ref": "#/components/schemas/salesorder_id"
        },
        "is_drop_shipment": {
          "$ref": "#/components/schemas/is_drop_shipment"
        },
        "custom_fields": {
          "$ref": "#/components/schemas/custom_fields"
        },
        "line_items": {
          "$ref": "#/components/schemas/line_items"
        },
        "location_id": {
          "$ref": "#/components/schemas/location_id"
        },
        "location_name": {
          "$ref": "#/components/schemas/location_name"
        },
        "sub_total": {
          "$ref": "#/components/schemas/sub_total"
        },
        "sub_total_formatted": {
          "$ref": "#/components/schemas/sub_total_formatted"
        },
        "tax_total": {
          "$ref": "#/components/schemas/tax_total"
        },
        "total": {
          "$ref": "#/components/schemas/total"
        },
        "taxes": {
          "$ref": "#/components/schemas/taxes"
        },
        "price_precision": {
          "$ref": "#/components/schemas/price_precision"
        },
        "pricebook_id": {
          "$ref": "#/components/schemas/pricebook_id"
        },
        "billing_address": {
          "$ref": "#/components/schemas/billing_address"
        },
        "notes": {
          "$ref": "#/components/schemas/notes"
        },
        "terms": {
          "$ref": "#/components/schemas/terms"
        },
        "ship_via": {
          "$ref": "#/components/schemas/ship_via"
        },
        "ship_via_id": {
          "$ref": "#/components/schemas/ship_via_id"
        },
        "attention": {
          "$ref": "#/components/schemas/attention"
        },
        "delivery_org_address_id": {
          "$ref": "#/components/schemas/delivery_org_address_id"
        },
        "delivery_customer_id": {
          "$ref": "#/components/schemas/delivery_customer_id"
        },
        "delivery_customer_name": {
          "$ref": "#/components/schemas/delivery_customer_name"
        },
        "delivery_address": {
          "$ref": "#/components/schemas/delivery_address"
        },
        "attachment_name": {
          "$ref": "#/components/schemas/attachment_name"
        },
        "can_send_in_mail": {
          "$ref": "#/components/schemas/can_send_in_mail"
        },
        "template_id": {
          "$ref": "#/components/schemas/template_id"
        },
        "template_name": {
          "$ref": "#/components/schemas/template_name"
        },
        "template_type": {
          "$ref": "#/components/schemas/template_type"
        },
        "created_time": {
          "$ref": "#/components/schemas/created_time"
        },
        "last_modified_time": {
          "$ref": "#/components/schemas/last_modified_time"
        },
        "purchasereceives": {
          "$ref": "#/components/schemas/purchasereceives"
        },
        "bills": {
          "$ref": "#/components/schemas/bills"
        },
        "gst_treatment": {
          "$ref": "#/components/schemas/gst_treatment"
        },
        "gst_no": {
          "$ref": "#/components/schemas/gst_no"
        },
        "source_of_supply": {
          "$ref": "#/components/schemas/source_of_supply"
        },
        "destination_of_supply": {
          "$ref": "#/components/schemas/destination_of_supply"
        },
        "is_pre_gst": {
          "$ref": "#/components/schemas/is_pre_gst"
        },
        "is_reverse_charge_applied": {
          "$ref": "#/components/schemas/is_reverse_charge_applied"
        }
      }
    },
    "purchaseorder_id": {
      "description": "Unique ID generated by the server for the Purchase Order.",
      "type": "string",
      "example": 4815000000044972
    },
    "location_id": {
      "description": "Location ID",
      "type": "string",
      "example": "460000000038080"
    },
    "location_name": {
      "description": "Name of the location",
      "type": "string"
    },
    "purchaseorder_number": {
      "description": "Purchase Order number.",
      "type": "string",
      "example": "PO-00002"
    },
    "date": {
      "description": "Date of Purchase Order",
      "type": "string",
      "example": "2015-05-28"
    },
    "expected_delivery_date": {
      "description": "Expected date of delivery for the items ordered.",
      "type": "string",
      "example": "2015-05-28"
    },
    "reference_number": {
      "description": "Reference number of purchase order.",
      "type": "string",
      "example": "REF-P-00002"
    },
    "status": {
      "description": "Status of Purchase Order.",
      "type": "string",
      "example": "Partially_Received"
    },
    "vendor_id": {
      "description": "Unique ID generated by the server for the vendor.",
      "type": "string",
      "example": 4815000000044080
    },
    "vendor_name": {
      "description": "Name of the vendor.",
      "type": "string",
      "example": "Molly"
    },
    "contact_person_id": {
      "description": "Unique ID of the Contact Person",
      "type": "string",
      "example": 4815000000044080
    },
    "first_name": {
      "description": "First Name of the Contact Person.",
      "type": "string",
      "example": "David"
    },
    "contact_person_email": {
      "description": "Email ID of the Contact Person.",
      "type": "string",
      "example": "[email protected]"
    },
    "phone": {
      "description": "Phone Number of the Contact Person.",
      "type": "string",
      "example": "+1-925-921-9201"
    },
    "last_name": {
      "description": "Last Name of the Contact Person.",
      "type": "string",
      "example": "John"
    },
    "contact_person_name": {
      "description": "Name of the Contact Person",
      "type": "string",
      "example": "David"
    },
    "mobile": {
      "description": "Mobile Number of the Contact Person.",
      "type": "string",
      "example": "+1-4054439562"
    },
    "is_email_enabled": {
      "description": "Used to check if Email communication preference is enabled for the contact person at transaction level.",
      "type": "boolean",
      "example": true
    },
    "is_sms_enabled": {
      "description": "Used to check if SMS communication preference is enabled for the contact person.",
      "type": "boolean",
      "example": true,
      "x-node_available_in": [
        "SMS integration"
      ]
    },
    "is_whatsapp_enabled": {
      "description": "Used to check if WhatsApp communication preference is enabled for the contact person at transaction level.",
      "type": "boolean",
      "example": true,
      "x-node_available_in": [
        "WhatsApp integration"
      ]
    },
    "communication_preference": {
      "description": "Preferred modes of communication for the contact person at transaction level.",
      "type": "object",
      "properties": {
        "is_email_enabled": {
          "$ref": "#/components/schemas/is_email_enabled"
        },
        "is_whatsapp_enabled": {
          "$ref": "#/components/schemas/is_whatsapp_enabled"
        }
      }
    },
    "contact_persons_associated": {
      "description": "Contact Persons associated with the transaction.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "contact_person_id": {
            "$ref": "#/components/schemas/contact_person_id"
          },
          "contact_person_name": {
            "$ref": "#/components/schemas/contact_person_name"
          },
          "first_name": {
            "$ref": "#/components/schemas/first_name"
          },
          "last_name": {
            "$ref": "#/components/schemas/last_name"
          },
          "contact_person_email": {
            "$ref": "#/components/schemas/contact_person_email"
          },
          "phone": {
            "$ref": "#/components/schemas/phone"
          },
          "mobile": {
            "$ref": "#/components/schemas/mobile"
          },
          "communication_preference": {
            "$ref": "#/components/schemas/communication_preference"
          }
        }
      }
    },
    "contact_persons_associated_payload": {
      "description": "Contact Persons associated with the transaction.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "contact_person_id": {
            "$ref": "#/components/schemas/contact_person_id"
          },
          "communication_preference": {
            "$ref": "#/components/schemas/communication_preference"
          }
        }
      }
    },
    "currency_id": {
      "description": "Unique ID generated by the server for the currency. This is used as an identifier.",
      "type": "string",
      "example": 4815000000000097
    },
    "currency_code": {
      "description": "Currency code.",
      "type": "string",
      "example": "USD"
    },
    "currency_symbol": {
      "description": "The symbol for the selected currency.",
      "type": "string",
      "example": "$"
    },
    "exchange_rate": {
      "description": "Exchange rate of the currency, with respect to the base currency.",
      "type": "number",
      "format": "double",
      "example": 1
    },
    "delivery_date": {
      "description": "Date of delivery of the product.",
      "type": "string",
      "example": "2015-06-01"
    },
    "is_emailed": {
      "description": "Checks whether the purchase order has been emailed or not.",
      "type": "boolean",
      "example": true
    },
    "salesorder_id": {
      "description": "Sales Order ID, in case of Drop Shipment.",
      "type": "string",
      "example": 4815000000044936
    },
    "is_drop_shipment": {
      "description": "Default is <code>FALSE</code>, in case of drop shipment value must be <code>TRUE</code>.",
      "type": "boolean",
      "example": true
    },
    "customfield_id": {
      "type": "string",
      "description": "Unique ID of the custom field.",
      "example": "46000000012845"
    },
    "value": {
      "description": "Value of the Custom Field",
      "type": "string",
      "example": "Normal"
    },
    "custom_fields": {
      "description": "Custom fields for a purchaseorder.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "customfield_id": {
            "$ref": "#/components/schemas/customfield_id"
          },
          "label": {
            "$ref": "#/components/schemas/label"
          },
          "value": {
            "$ref": "#/components/schemas/value"
          }
        }
      }
    },
    "item_id": {
      "description": "Unique ID generated by the server for the item. This is used as an identifier.",
      "type": "string",
      "example": 4815000000044100
    },
    "line_item_id": {
      "description": "Unique ID generated by the server for each line item. This is used as an identifier.",
      "type": "string",
      "example": 4815000000044897
    },
    "salesorder_item_id": {
      "description": "Unique ID generated by the server for each line item in a sales order. This is used for creating backorder or dropshipment",
      "type": "string",
      "example": 4815000000044892
    },
    "account_id": {
      "description": "Account ID of the item.",
      "type": "string",
      "example": 4815000000035003
    },
    "name": {
      "description": "Name of the line item.",
      "type": "string",
      "example": "Laptop-white/15inch/dell"
    },
    "description": {
      "description": "Description of the line item.",
      "type": "string",
      "example": "Just a sample description."
    },
    "item_order": {
      "description": "The order of the line items, starts from <code>0</code> by default.",
      "type": "integer",
      "example": 0
    },
    "bcy_rate": {
      "description": "Item rate in the organization's base currency.",
      "type": "number",
      "format": "double",
      "example": 122
    },
    "purchase_rate": {
      "description": "Purchase Price of the line item.",
      "type": "number",
      "format": "double",
      "example": 122
    },
    "quantity": {
      "description": "Quantity of the line item.",
      "type": "number",
      "format": "double",
      "example": 2
    },
    "quantity_received": {
      "description": "Quantity invoiced of the line item.",
      "type": "number",
      "format": "double",
      "example": 2
    },
    "unit": {
      "description": "Unit of line item.",
      "type": "string",
      "example": "qty"
    },
    "tax_id": {
      "description": "Unique ID generated by the server for the tax. This is used as an identifier.",
      "type": "string",
      "example": 4815000000044043
    },
    "tds_tax_id": {
      "type": "string",
      "description": "Unique identifier of the tds tax",
      "example": 90300000087370,
      "x-node_available_in": [
        "mx"
      ],
      "x-node_unavailable_in": []
    },
    "tax_name": {
      "description": "Name of the tax applied on the line item.",
      "type": "string",
      "example": "Sales Tax"
    },
    "tax_type": {
      "description": "Denotes the type of the tax. This can either be a single tax or a tax group.",
      "type": "string",
      "example": "tax"
    },
    "tax_percentage": {
      "description": "Percentage of the tax.",
      "type": "number",
      "format": "double",
      "example": 12
    },
    "item_total": {
      "description": "Total of line item.",
      "type": "number",
      "format": "double",
      "example": 244
    },
    "is_invoiced": {
      "description": "Checks whether the Sales Order has been invoiced or not.",
      "type": "boolean",
      "example": true
    },
    "image_id": {
      "description": "Unique ID generated by the server for the item image. This is used an identifier.",
      "type": "number",
      "format": "double",
      "example": 2077500000000002000
    },
    "image_name": {
      "description": "Name of the image of the line item.",
      "type": "string",
      "example": "dell.jpg"
    },
    "image_type": {
      "description": "The type (file format) of the image.",
      "type": "string",
      "example": "jpg"
    },
    "reverse_charge_tax_id": {
      "description": "Enter reverse charge tax ID",
      "type": "string",
      "example": 460000000026068
    },
    "reverse_charge_tax_name": {
      "description": "Enter reverse charge tax name",
      "type": "string",
      "example": "inter",
      "x-node_available_in": [
        "in"
      ],
      "x-node_unavailable_in": []
    },
    "reverse_charge_tax_percentage": {
      "description": "Enter reverse charge tax percentage",
      "type": "number",
      "format": "double",
      "example": 10,
      "x-node_available_in": [
        "in"
      ],
      "x-node_unavailable_in": []
    },
    "reverse_charge_tax_amount": {
      "description": "Tax amount for the reverse charge.",
      "type": "number",
      "format": "double",
      "example": 100,
      "x-node_available_in": [
        "in"
      ],
      "x-node_unavailable_in": []
    },
    "hsn_or_sac": {
      "description": "HSN or SAC Code for the Item",
      "type": "string",
      "x-node_available_in": [
        "in"
      ],
      "x-node_unavailable_in": []
    },
    "tax_exemption_code": {
      "description": "Code of the Tax Exemption",
      "type": "string",
      "x-node_available_in": [
        "in",
        "au",
        "ca",
        "mx"
      ],
      "x-node_unavailable_in": []
    },
    "tax_exemption_id": {
      "description": "ID of the Tax Exemption",
      "type": "string",
      "x-node_available_in": [
        "in",
        "au",
        "ca"
      ],
      "x-node_unavailable_in": []
    },
    "label": {
      "description": "Label of the Custom Field",
      "type": "string"
    },
    "item_custom_fields": {
      "type": "array",
      "description": "List of custom fields associated with the line item",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "$ref": "#/components/schemas/label"
          },
          "value": {
            "$ref": "#/components/schemas/value"
          }
        }
      }
    },
    "line_items": {
      "description": "List of line items in a purchase order",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "item_id": {
            "$ref": "#/components/schemas/item_id"
          },
          "line_item_id": {
            "$ref": "#/components/schemas/line_item_id"
          },
          "account_id": {
            "$ref": "#/components/schemas/account_id"
          },
          "name": {
            "$ref": "#/components/schemas/name"
          },
          "description": {
            "$ref": "#/components/schemas/description"
          },
          "item_order": {
            "$ref": "#/components/schemas/item_order"
          },
          "bcy_rate": {
            "$ref": "#/components/schemas/bcy_rate"
          },
          "purchase_rate": {
            "$ref": "#/components/schemas/purchase_rate"
          },
          "quantity": {
            "$ref": "#/components/schemas/quantity"
          },
          "quantity_received": {
            "$ref": "#/components/schemas/quantity_received"
          },
          "unit": {
            "$ref": "#/components/schemas/unit"
          },
          "item_total": {
            "$ref": "#/components/schemas/item_total"
          },
          "tax_id": {
            "$ref": "#/components/schemas/tax_id"
          },
          "tds_tax_id": {
            "$ref": "#/components/schemas/tds_tax_id"
          },
          "tax_name": {
            "$ref": "#/components/schemas/tax_name"
          },
          "tax_type": {
            "$ref": "#/components/schemas/tax_type"
          },
          "tax_percentage": {
            "$ref": "#/components/schemas/tax_percentage"
          },
          "image_id": {
            "$ref": "#/components/schemas/image_id"
          },
          "image_name": {
            "$ref": "#/components/schemas/image_name"
          },
          "image_type": {
            "$ref": "#/components/schemas/image_type"
          },
          "reverse_charge_tax_id": {
            "$ref": "#/components/schemas/reverse_charge_tax_id"
          },
          "reverse_charge_tax_name": {
            "$ref": "#/components/schemas/reverse_charge_tax_name"
          },
          "reverse_charge_tax_percentage": {
            "$ref": "#/components/schemas/reverse_charge_tax_percentage"
          },
          "reverse_charge_tax_amount": {
            "$ref": "#/components/schemas/reverse_charge_tax_amount"
          },
          "hsn_or_sac": {
            "$ref": "#/components/schemas/hsn_or_sac"
          },
          "tax_exemption_code": {
            "$ref": "#/components/schemas/tax_exemption_code"
          },
          "location_id": {
            "$ref": "#/components/schemas/location_id"
          },
          "location_name": {
            "$ref": "#/components/schemas/location_name"
          },
          "tax_exemption_id": {
            "$ref": "#/components/schemas/tax_exemption_id"
          },
          "salesorder_item_id": {
            "$ref": "#/components/schemas/salesorder_item_id"
          },
          "item_custom_fields": {
            "$ref": "#/components/schemas/item_custom_fields"
          }
        }
      }
    },
    "sub_total": {
      "description": "Sub total of the Purchase Order.",
      "type": "number",
      "format": "double",
      "example": 244
    },
    "sub_total_formatted": {
      "description": "Format of the sub total.",
      "type": "string"
    },
    "tax_total": {
      "description": "Tax total of the Purchase Order.",
      "type": "number",
      "format": "double",
      "example": 29
    },
    "tax_total_formatted": {
      "description": "Format of the sub total.",
      "type": "string"
    },
    "total": {
      "description": "Total amount of the Purchase Order.",
      "type": "number",
      "format": "double",
      "example": 350
    },
    "tax_amount": {
      "description": "Amount of the tax.",
      "type": "number",
      "format": "double",
      "example": 29
    },
    "taxes": {
      "description": "Number of taxes applied on the Purchase Order. Each tax contains: <code>tax_name</code> and <code>tax_amount</code>.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tax_name": {
            "$ref": "#/components/schemas/tax_name"
          },
          "tax_amount": {
            "$ref": "#/components/schemas/tax_amount"
          }
        }
      }
    },
    "price_precision": {
      "description": "The precision level for the price's decimal point in a Purchase Order.",
      "type": "integer",
      "example": 2
    },
    "pricebook_id": {
      "description": "Unique ID generated by the server for the Pricebook. This is used as an identifier.",
      "type": "string",
      "example": 4815000000044054
    },
    "address": {
      "description": "Name of the street of the customer's billing address.",
      "type": "string",
      "example": "No:234,90 Church Street"
    },
    "city": {
      "description": "Name of the city of the customer's billing address.",
      "type": "string",
      "example": "New York City"
    },
    "state": {
      "description": "Name of the state of the customer's billing address.",
      "type": "string",
      "example": "New York"
    },
    "zip": {
      "description": "Zip code of the customer's billing address.",
      "type": "string",
      "example": 10048
    },
    "country": {
      "description": "Name of the country of the customer's billing address.",
      "type": "string",
      "example": "U.S.A"
    },
    "fax": {
      "description": "Fax number of the customer's billing address.",
      "type": "string",
      "example": "324-524242"
    },
    "billing_address": {
      "description": "Customer's billing address. It contains - <code>address</code>, <code>city</code>, <code>state</code>, <code>zip</code>, <code>country</code> and <code>fax</code>.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/address"
          },
          "city": {
            "$ref": "#/components/schemas/city"
          },
          "state": {
            "$ref": "#/components/schemas/state"
          },
          "zip": {
            "$ref": "#/components/schemas/zip"
          },
          "country": {
            "$ref": "#/components/schemas/country"
          },
          "fax": {
            "$ref": "#/components/schemas/fax"
          }
        }
      }
    },
    "notes": {
      "description": "Notes for the Purchase Order.",
      "type": "string",
      "example": "Sample Note"
    },
    "terms": {
      "description": "Terms for the Purchase Order.",
      "type": "string",
      "example": "Terms and Conditions"
    },
    "ship_via": {
      "description": "Shipping method for the Purchase Order.",
      "type": "string",
      "example": "FedEx"
    },
    "ship_via_id": {
      "description": "Unique ID generated by the server. This is used as identifier.",
      "type": "string",
      "example": 4815000000044822
    },
    "attention": {
      "description": "Name of the person, whose attention is required.",
      "type": "string",
      "example": "Tony"
    },
    "delivery_org_address_id": {
      "description": "Unique ID generated by the server. This is used as identifier.",
      "type": "string",
      "example": 4815000000044077
    },
    "delivery_customer_id": {
      "description": "Customer ID for delivery address",
      "type": "string",
      "example": 4815000000044066
    },
    "delivery_customer_name": {
      "description": "Customer's name at the delivery address.",
      "type": "string",
      "example": "Tony"
    },
    "delivery_address": {
      "description": "Customer's delivery address. It contains - <code>address</code>, <code>city</code>, <code>state</code>, <code>zip</code>, <code>country</code> and <code>fax</code>.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "address": {
            "$ref": "#/components/schemas/address"
          },
          "city": {
            "$ref": "#/components/schemas/city"
          },
          "state": {
            "$ref": "#/components/schemas/state"
          },
          "zip": {
            "$ref": "#/components/schemas/zip"
          },
          "country": {
            "$ref": "#/components/schemas/country"
          },
          "fax": {
            "$ref": "#/components/schemas/fax"
          }
        }
      }
    },
    "attachment_name": {
      "description": "Name of attached file with Purchase Order.",
      "type": "string",
      "example": "sample.pdf"
    },
    "can_send_in_mail": {
      "description": "Checks whether it can be sent in a mail or not.",
      "type": "boolean",
      "example": true
    },
    "file_name": {
      "description": "This indicates the name of the file.",
      "type": "string",
      "example": "sample.pdf"
    },
    "file_type": {
      "description": "This indicates the type of the file.",
      "type": "string",
      "example": "pdf"
    },
    "file_size_formatted": {
      "description": "This indicates the size of the formatted file.",
      "type": "string",
      "example": "116.8 KB"
    },
    "attachment_order": {
      "description": "This indicates the chronological number of the attachment.",
      "type": "integer",
      "example": 1
    },
    "document_id": {
      "description": "Unique ID generated by the server for the document. This is used as an identifier.",
      "type": "string",
      "example": 16115000000096068
    },
    "file_size": {
      "description": "this indicates the size of the attached file.",
      "type": "integer",
      "format": "int64",
      "example": 11957
    },
    "documents": {
      "description": "Purchase order can have files attached to them. Each attachment has the following attributes <code>can_send_in_mail</code>, <code>file_name</code>, <code>file_type</code>, <code>file_size_formatted</code>, <code>attachment_order</code>, <code>document_id</code>, <code>file_size</code>.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "can_send_in_mail": {
            "$ref": "#/components/schemas/can_send_in_mail"
          },
          "file_name": {
            "$ref": "#/components/schemas/file_name"
          },
          "file_type": {
            "$ref": "#/components/schemas/file_type"
          },
          "file_size_formatted": {
            "$ref": "#/components/schemas/file_size_formatted"
          },
          "attachment_order": {
            "$ref": "#/components/schemas/attachment_order"
          },
          "document_id": {
            "$ref": "#/components/schemas/document_id"
          },
          "file_size": {
            "$ref": "#/components/schemas/file_size"
          }
        }
      }
    },
    "is_inclusive_tax": {
      "description": "This indicates whether the tax is inclusive or not.",
      "type": "boolean",
      "example": false
    },
    "is_backorder": {
      "description": "This indicates whether it is a Back order or not.",
      "type": "boolean",
      "example": false
    },
    "template_id": {
      "description": "Unique ID generated by the server for the Template. This is used as an identifier.",
      "type": "string",
      "example": 4815000000017003
    },
    "template_name": {
      "description": "Name of the template used for the Purchase Order.",
      "type": "string",
      "example": "Standard"
    },
    "template_type": {
      "description": "Type of Template used to create Purchase Order.",
      "type": "string",
      "example": "standard"
    },
    "created_time": {
      "description": "Time at which the Purchase Order was created.",
      "type": "string",
      "example": "2015-05-28T00:00:00+00:00"
    },
    "last_modified_time": {
      "description": "Time at which the Purchase Order details were last modified.",
      "type": "string",
      "example": "2015-05-28T00:00:00+00:00"
    },
    "can_mark_as_bill": {
      "description": "Checks whether a Purchase Order can be converted to a Bill or not.",
      "type": "boolean",
      "example": true
    },
    "can_mark_as_unbill": {
      "description": "Checks whether a Purchase Order can be unbilled or not.",
      "type": "boolean",
      "example": false
    },
    "receive_id": {
      "description": "Unique ID generated by the server for the Purchase Receive. This is used as identifier.",
      "type": "string",
      "example": 4815000000045035
    },
    "receive_number": {
      "description": "Number of the Purchase Receive.",
      "type": "string",
      "example": "PR-00002"
    },
    "purchasereceives": {
      "description": "Purchase receives for purchase order. Each Recieve contains- <code>receive_id</code>, <code>receive_number</code>, <code>date</code> and <code>note</code>.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "receive_id": {
            "$ref": "#/components/schemas/receive_id"
          },
          "receive_number": {
            "$ref": "#/components/schemas/receive_number"
          },
          "date": {
            "$ref": "#/components/schemas/date"
          },
          "notes": {
            "$ref": "#/components/schemas/notes"
          },
          "line_items": {
            "$ref": "#/components/schemas/line_items"
          }
        }
      }
    },
    "bill_id": {
      "description": "Unique ID generated by the server. This is used as iden

# --- truncated at 32 KB (65 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/zoho-inventory/refs/heads/main/json-schema/purchaseorders.json