CINXE.COM

Purchase Orders | Zoho Inventory | API Documentation

<html> <head> <title>Purchase Orders | Zoho Inventory | API Documentation</title> <meta name="description" content=""> <meta name="theme-color" content="#fff"> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href="/inventory/favicon.ico?v&#x3D;2" rel="shortcut icon"> <link rel="preload" as="font" href="https://webfonts.zoho.com/css?family=Roboto+Mono:100,300,400,500,700/Inter:100,200,300,400,500,600,700,800,900"> <link href="/inventory/api/v1/styles/style.css" rel="stylesheet" media="screen"> <link href="/inventory/api/v1/styles/vendor.css" rel="stylesheet" media="screen"> <script type="text/javascript" src="/inventory/api/v1/js/darkmode.js"></script> <script type="text/javascript"> (function (p, o, s, t, m, a, n) { !p[s] && (p[s] = function () { (p[t] || (p[t] = [])).push(arguments); }); !o.getElementById(s + t) && o.getElementsByTagName("head")[0].appendChild(( (n = o.createElement("script")), (n.id = s + t), (n.async = 1), (n.src = m), n )); }(window, document, "_pm", "PostmanRunObject", "https://run.pstmn.io/button.js")); </script> </head> <body class="index"> <div class="top-wrapper"> <div class="top-band"> <span class='navbar-toggle' onclick="showresource('tocify-wrapper')"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </span> <div class="innerwrapper"> <a href="https://inventory.zoho.com/home" target="_blank" class="brand-logo"> <img name="logo" src="/inventory/api/v1/images/inventory.svg" alt="Zoho Inventory" id="logo"> <span class="brand-name">Inventory</span> </a> <span class="title">API Docs</span> <div id="search-bar-wrapper"> <input id="search-bar" name="search" placeholder="Search Documentation" type="search" aria-label="Search" autocomplete="off"> <button style="background: url('/inventory/api/v1/images/close-rounded.svg') no-repeat scroll;" id="close-search-icon"></button> <div id="search-shortcut-icon">/</div> <div id="search-result"></div> <div id="search-result-empty">No Results Found</div> </div> <button onclick="showaction()" class="search-close close-icon"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 342.4 342.4" class="icon"><path d="M193.8 171.2 320.3 45.1c6.3-6.2 6.3-16.4 0-22.6-6.2-6.3-16.4-6.3-22.6 0L171.2 148.6 45.1 22.1c-6.2-6.3-16.4-6.3-22.6 0-6.3 6.2-6.3 16.4 0 22.6l126.1 126.5L22.1 297.3c-6.3 6.2-6.3 16.4 0 22.6 3.1 3.1 7.2 4.7 11.3 4.7 4.1 0 8.2-1.6 11.3-4.7l126.5-126.1 126.1 126.5c3.1 3.1 7.2 4.7 11.3 4.7 4.1 0 8.2-1.6 11.3-4.7 6.3-6.2 6.3-16.4 0-22.6L193.8 171.2z"/></svg> </button> <button class="navbar-links" type="button" data-target="#navbarLinks" aria-controls="navbarLinks" aria-expanded="false" aria-label="Toggle Top navigation" onclick="toggleNavbar(this)"> API Docs </button> <div class="navbar-top"> <div class="theme-toggle-label" id="dark-mode-toggle"> <div class="toggle-icon sun"><svg fill=currentColor xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve"><circle transform="rotate(-45.001 255.998 256.004)" cx="256" cy="256" r="128.5"/><path d="M486.4 231h-30.1c-13.8 0-25 11.2-25 25s11.2 25 25 25h30.1c13.8 0 25-11.2 25-25s-11.2-25-25-25zM80.7 256c0-13.8-11.2-25-25-25H25.6c-13.8 0-25 11.2-25 25s11.2 25 25 25h30.1c13.8 0 25-11.2 25-25zM415.3 379.9c-9.8-9.8-25.6-9.8-35.4 0-9.8 9.8-9.8 25.6 0 35.4l21.3 21.3c4.9 4.9 11.3 7.3 17.7 7.3 6.4 0 12.8-2.4 17.7-7.3 9.8-9.8 9.8-25.6 0-35.4l-21.3-21.3zM96.7 132.1c4.9 4.9 11.3 7.3 17.7 7.3s12.8-2.4 17.7-7.3c9.8-9.8 9.8-25.6 0-35.4l-21.3-21.3c-9.8-9.8-25.6-9.8-35.4 0-9.8 9.8-9.8 25.6 0 35.4l21.3 21.3zM397.6 139.4c6.4 0 12.8-2.4 17.7-7.3l21.3-21.3c9.8-9.8 9.8-25.6 0-35.4-9.8-9.8-25.6-9.8-35.4 0l-21.3 21.3c-9.8 9.8-9.8 25.6 0 35.4 4.9 4.9 11.3 7.3 17.7 7.3zM96.7 379.9l-21.3 21.3c-9.8 9.8-9.8 25.6 0 35.4 4.9 4.9 11.3 7.3 17.7 7.3s12.8-2.4 17.7-7.3l21.3-21.3c9.8-9.8 9.8-25.6 0-35.4-9.8-9.7-25.6-9.7-35.4 0zM256 80.7c13.8 0 25-11.2 25-25V25.6c0-13.8-11.2-25-25-25s-25 11.2-25 25v30.1c0 13.8 11.2 25 25 25zM256 431.3c-13.8 0-25 11.2-25 25v30.1c0 13.8 11.2 25 25 25s25-11.2 25-25v-30.1c0-13.8-11.2-25-25-25z"/></svg> </div> <div class="toggle-icon moon"><svg fill=currentColor xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve"><path d="M232.8 108.6c0-37.8 8.3-73.6 23.1-105.9C121.4 8.8 14.1 119.8 14.1 255.9c0 140 113.5 253.4 253.4 253.4 102.2 0 190.2-60.5 230.3-147.6-3.9.2-7.8.3-11.7.3-139.9 0-253.3-113.5-253.3-253.4z"/></svg> </div> </div> <div class="list-item"> <button type="button" class="dropdown-toggle" data-target="#navbarDropdown" aria-controls="navbarDropdown" aria-expanded="false" aria-haspopup="true" onclick="toggleNavbar(this)"> Resources </button> <div class="dropdown-menus"> <div class="dropdown-item"> <a href="/inventory/kb/general-overview/?source&#x3D;apidoc" target="_blank" rel="noopener noreferrer">FAQ</a> </div> <div class="dropdown-item"> <a href="/inventory/help/?source&#x3D;apidoc" target="_blank" rel="noopener noreferrer">Help Docs</a> </div> <div class="dropdown-divider"></div> <div class="dropdown-item"> <a href="/inventory/support/" target="_blank" rel="noopener noreferrer">All Resources</a> </div> </div> </div> <div class="nav-separator"></div> <div class="access-btn"> <a role="button" href="https://inventory.zoho.com/home" target="_blank" class="topbar-btn access" style="display:none;">Access Zoho Inventory</a> <a role="button" href="/inventory/login" target="_blank" class="topbar-btn signin">Sign In</a> </div> </div> </div> </div> </div> <div id="mobile-search"> <button class="btn p-0 ml-auto search-trigger ze-toggler" type="button" data-target="#searchForm" aria-controls="searchForm" aria-expanded="false" aria-label="Open Help Search" onclick="showaction()"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-ember-extension="1" class="icon"><path d="M469.5 470.9l-116.6-139c67.6-66.7 73.8-175.6 11.7-249.6-65.3-78-181.8-88.2-259.7-22.9C67.2 91.1 44 135.5 39.7 184.6c-4.3 49.1 10.7 96.9 42.4 134.6 31.6 37.7 76.1 60.9 125.1 65.2 5.5.5 11 .7 16.4.7 38.2 0 75.1-11.8 106.3-33.9l116.6 139.1c3 3.5 7.2 5.4 11.5 5.4 3.4 0 6.8-1.2 9.6-3.5 6.4-5.5 7.3-14.9 1.9-21.3zm-364.4-171C78.6 268.3 66 228.3 69.6 187.2s23-78.3 54.6-104.8c28.9-24.2 64.1-36 99.1-36 44.1 0 87.9 18.8 118.4 55.1 54.7 65.2 46.1 162.8-19.1 217.5-31.6 26.5-71.6 39.1-112.7 35.5-41.1-3.6-78.3-23-104.8-54.6z" fill="#9392a1"></path></svg> </button> </div> <div class="fixed-band">Purchase Orders</div> <div class="main-wrapper"> <div class="main-outer-wrapper"> <div class="tocify-wrapper"> <div> <button type="button" class="btn close-icon" data-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="true" aria-label="Close Sidebar Menu" onclick="showresource('tocify-wrapper')"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 342.4 342.4" class="icon"><path d="M193.8 171.2 320.3 45.1c6.3-6.2 6.3-16.4 0-22.6-6.2-6.3-16.4-6.3-22.6 0L171.2 148.6 45.1 22.1c-6.2-6.3-16.4-6.3-22.6 0-6.3 6.2-6.3 16.4 0 22.6l126.1 126.5L22.1 297.3c-6.3 6.2-6.3 16.4 0 22.6 3.1 3.1 7.2 4.7 11.3 4.7 4.1 0 8.2-1.6 11.3-4.7l126.5-126.1 126.1 126.5c3.1 3.1 7.2 4.7 11.3 4.7 4.1 0 8.2-1.6 11.3-4.7 6.3-6.2 6.3-16.4 0-22.6L193.8 171.2z"/></svg> </button> <ul> <li class="nested-menu" id='introduction-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Introduction</a> <ul class='panel -acc-wrapper'> <li class='item overview' id='overview-item'> <a href="/inventory/api/v1/introduction/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item organization-id' id='organization-id-item'> <a href="/inventory/api/v1/introduction/#organization-id" onclick="toggleAccordionMenu(this)">Organization ID</a> </li> <li class='item multidc' id='multidc-item'> <a href="/inventory/api/v1/introduction/#multidc" onclick="toggleAccordionMenu(this)">Multiple Data Centers</a> </li> <li class='item api-call-limit' id='api-call-limit-item'> <a href="/inventory/api/v1/introduction/#api-call-limit" onclick="toggleAccordionMenu(this)">API Call Limit</a> </li> </ul> </li> <li class="nested-menu" id='oauth-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >OAuth</a> <ul class='panel -acc-wrapper'> <li class='item overview' id='overview-item'> <a href="/inventory/api/v1/oauth/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> </ul> </li> <li class="nested-menu" id='http-methods-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >HTTP Methods</a> <ul class='panel -acc-wrapper'> <li class='item overview' id='overview-item'> <a href="/inventory/api/v1/http-methods/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> </ul> </li> <li class="nested-menu" id='response-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Response</a> <ul class='panel -acc-wrapper'> <li class='item overview' id='overview-item'> <a href="/inventory/api/v1/response/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> </ul> </li> <li class="nested-menu" id='errors-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Errors</a> <ul class='panel -acc-wrapper'> <li class='item overview' id='overview-item'> <a href="/inventory/api/v1/errors/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> </ul> </li> <li class="nested-menu" id='pagination-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Pagination</a> <ul class='panel -acc-wrapper'> <li class='item overview' id='overview-item'> <a href="/inventory/api/v1/pagination/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> </ul> </li> <li class="nested-menu" id='organizations-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Organizations</a> <ul class='panel -acc-wrapper'> <li class='item organizations-overview' id='organizations-overview-item'> <a href="/inventory/api/v1/organizations/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-an-organization' id='create-an-organization-item'> <a href="/inventory/api/v1/organizations/#create-an-organization" onclick="toggleAccordionMenu(this)">Create an organization</a> </li> <li class='item list-organizations' id='list-organizations-item'> <a href="/inventory/api/v1/organizations/#list-organizations" onclick="toggleAccordionMenu(this)">List organizations</a> </li> <li class='item update-an-organization' id='update-an-organization-item'> <a href="/inventory/api/v1/organizations/#update-an-organization" onclick="toggleAccordionMenu(this)">Update an organization</a> </li> <li class='item get-an-organization' id='get-an-organization-item'> <a href="/inventory/api/v1/organizations/#get-an-organization" onclick="toggleAccordionMenu(this)">Get an organization</a> </li> </ul> </li> <li class="nested-menu" id='contacts-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Contacts</a> <ul class='panel -acc-wrapper'> <li class='item contacts-overview' id='contacts-overview-item'> <a href="/inventory/api/v1/contacts/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-contact' id='create-a-contact-item'> <a href="/inventory/api/v1/contacts/#create-a-contact" onclick="toggleAccordionMenu(this)">Create a Contact</a> </li> <li class='item list-contacts' id='list-contacts-item'> <a href="/inventory/api/v1/contacts/#list-contacts" onclick="toggleAccordionMenu(this)">List contacts</a> </li> <li class='item update-a-contact' id='update-a-contact-item'> <a href="/inventory/api/v1/contacts/#update-a-contact" onclick="toggleAccordionMenu(this)">Update a contact</a> </li> <li class='item get-contact' id='get-contact-item'> <a href="/inventory/api/v1/contacts/#get-contact" onclick="toggleAccordionMenu(this)">Get contact</a> </li> <li class='item delete-a-contact' id='delete-a-contact-item'> <a href="/inventory/api/v1/contacts/#delete-a-contact" onclick="toggleAccordionMenu(this)">Delete a contact</a> </li> <li class='item get-contact-address' id='get-contact-address-item'> <a href="/inventory/api/v1/contacts/#get-contact-address" onclick="toggleAccordionMenu(this)">Get contact address</a> </li> <li class='item mark-as-active' id='mark-as-active-item'> <a href="/inventory/api/v1/contacts/#mark-as-active" onclick="toggleAccordionMenu(this)">Mark as active</a> </li> <li class='item mark-as-inactive' id='mark-as-inactive-item'> <a href="/inventory/api/v1/contacts/#mark-as-inactive" onclick="toggleAccordionMenu(this)">Mark as Inactive</a> </li> <li class='item email-statement' id='email-statement-item'> <a href="/inventory/api/v1/contacts/#email-statement" onclick="toggleAccordionMenu(this)">Email statement</a> </li> <li class='item get-statement-mail-content' id='get-statement-mail-content-item'> <a href="/inventory/api/v1/contacts/#get-statement-mail-content" onclick="toggleAccordionMenu(this)">Get Statement mail content</a> </li> <li class='item email-contact' id='email-contact-item'> <a href="/inventory/api/v1/contacts/#email-contact" onclick="toggleAccordionMenu(this)">Email contact</a> </li> <li class='item list-comments' id='list-comments-item'> <a href="/inventory/api/v1/contacts/#list-comments" onclick="toggleAccordionMenu(this)">List Comments</a> </li> </ul> </li> <li class="nested-menu" id='contact-persons-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Contact Persons</a> <ul class='panel -acc-wrapper'> <li class='item contact-persons-overview' id='contact-persons-overview-item'> <a href="/inventory/api/v1/contact-persons/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-contact-person' id='create-a-contact-person-item'> <a href="/inventory/api/v1/contact-persons/#create-a-contact-person" onclick="toggleAccordionMenu(this)">Create a contact person</a> </li> <li class='item update-a-contact-person' id='update-a-contact-person-item'> <a href="/inventory/api/v1/contact-persons/#update-a-contact-person" onclick="toggleAccordionMenu(this)">Update a contact person</a> </li> <li class='item delete-a-contact-person' id='delete-a-contact-person-item'> <a href="/inventory/api/v1/contact-persons/#delete-a-contact-person" onclick="toggleAccordionMenu(this)">Delete a contact person</a> </li> <li class='item list-contact-persons' id='list-contact-persons-item'> <a href="/inventory/api/v1/contact-persons/#list-contact-persons" onclick="toggleAccordionMenu(this)">List contact persons</a> </li> <li class='item get-a-contact-person' id='get-a-contact-person-item'> <a href="/inventory/api/v1/contact-persons/#get-a-contact-person" onclick="toggleAccordionMenu(this)">Get a contact person</a> </li> <li class='item mark-as-primary-contact-person' id='mark-as-primary-contact-person-item'> <a href="/inventory/api/v1/contact-persons/#mark-as-primary-contact-person" onclick="toggleAccordionMenu(this)">Mark as primary contact person</a> </li> </ul> </li> <li class="nested-menu" id='itemgroups-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Item Groups</a> <ul class='panel -acc-wrapper'> <li class='item itemgroups-overview' id='itemgroups-overview-item'> <a href="/inventory/api/v1/itemgroups/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-an-item-group' id='create-an-item-group-item'> <a href="/inventory/api/v1/itemgroups/#create-an-item-group" onclick="toggleAccordionMenu(this)">Create an Item Group</a> </li> <li class='item list-all-item-groups' id='list-all-item-groups-item'> <a href="/inventory/api/v1/itemgroups/#list-all-item-groups" onclick="toggleAccordionMenu(this)">List all Item Groups</a> </li> <li class='item update-an-item-group' id='update-an-item-group-item'> <a href="/inventory/api/v1/itemgroups/#update-an-item-group" onclick="toggleAccordionMenu(this)">Update an Item Group</a> </li> <li class='item retrieve-an-item-group' id='retrieve-an-item-group-item'> <a href="/inventory/api/v1/itemgroups/#retrieve-an-item-group" onclick="toggleAccordionMenu(this)">Retrieve an Item Group</a> </li> <li class='item delete-an-item-group' id='delete-an-item-group-item'> <a href="/inventory/api/v1/itemgroups/#delete-an-item-group" onclick="toggleAccordionMenu(this)">Delete an Item Group</a> </li> <li class='item mark-as-active' id='mark-as-active-item'> <a href="/inventory/api/v1/itemgroups/#mark-as-active" onclick="toggleAccordionMenu(this)">Mark as Active</a> </li> <li class='item mark-as-inactive' id='mark-as-inactive-item'> <a href="/inventory/api/v1/itemgroups/#mark-as-inactive" onclick="toggleAccordionMenu(this)">Mark as Inactive.</a> </li> </ul> </li> <li class="nested-menu" id='items-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Items</a> <ul class='panel -acc-wrapper'> <li class='item items-overview' id='items-overview-item'> <a href="/inventory/api/v1/items/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-an-item' id='create-an-item-item'> <a href="/inventory/api/v1/items/#create-an-item" onclick="toggleAccordionMenu(this)">Create an item</a> </li> <li class='item list-all-the-items' id='list-all-the-items-item'> <a href="/inventory/api/v1/items/#list-all-the-items" onclick="toggleAccordionMenu(this)">List all the items</a> </li> <li class='item bulk-fetch-item-details' id='bulk-fetch-item-details-item'> <a href="/inventory/api/v1/items/#bulk-fetch-item-details" onclick="toggleAccordionMenu(this)">Bulk fetch item details</a> </li> <li class='item update-an-item' id='update-an-item-item'> <a href="/inventory/api/v1/items/#update-an-item" onclick="toggleAccordionMenu(this)">Update an item</a> </li> <li class='item retrieve-an-item' id='retrieve-an-item-item'> <a href="/inventory/api/v1/items/#retrieve-an-item" onclick="toggleAccordionMenu(this)">Retrieve an item</a> </li> <li class='item delete-an-item' id='delete-an-item-item'> <a href="/inventory/api/v1/items/#delete-an-item" onclick="toggleAccordionMenu(this)">Delete an item</a> </li> <li class='item update-custom-field-in-existing-items' id='update-custom-field-in-existing-items-item'> <a href="/inventory/api/v1/items/#update-custom-field-in-existing-items" onclick="toggleAccordionMenu(this)">Update custom field in existing items</a> </li> <li class='item delete-an-item-image' id='delete-an-item-image-item'> <a href="/inventory/api/v1/items/#delete-an-item-image" onclick="toggleAccordionMenu(this)">Delete an item image</a> </li> <li class='item mark-as-active' id='mark-as-active-item'> <a href="/inventory/api/v1/items/#mark-as-active" onclick="toggleAccordionMenu(this)">Mark as active</a> </li> <li class='item mark-as-inactive' id='mark-as-inactive-item'> <a href="/inventory/api/v1/items/#mark-as-inactive" onclick="toggleAccordionMenu(this)">Mark as inactive</a> </li> </ul> </li> <li class="nested-menu" id='compositeitems-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Composite Items</a> <ul class='panel -acc-wrapper'> <li class='item compositeitems-overview' id='compositeitems-overview-item'> <a href="/inventory/api/v1/compositeitems/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item creating-a-composite-item' id='creating-a-composite-item-item'> <a href="/inventory/api/v1/compositeitems/#creating-a-composite-item" onclick="toggleAccordionMenu(this)">Creating a Composite Item</a> </li> <li class='item list-all-composite-items' id='list-all-composite-items-item'> <a href="/inventory/api/v1/compositeitems/#list-all-composite-items" onclick="toggleAccordionMenu(this)">List All Composite Items</a> </li> <li class='item updating-a-composite-item' id='updating-a-composite-item-item'> <a href="/inventory/api/v1/compositeitems/#updating-a-composite-item" onclick="toggleAccordionMenu(this)">Updating a composite item</a> </li> <li class='item retrieving-a-composite-item' id='retrieving-a-composite-item-item'> <a href="/inventory/api/v1/compositeitems/#retrieving-a-composite-item" onclick="toggleAccordionMenu(this)">Retrieving a Composite Item</a> </li> <li class='item deleting-a-composite-item' id='deleting-a-composite-item-item'> <a href="/inventory/api/v1/compositeitems/#deleting-a-composite-item" onclick="toggleAccordionMenu(this)">Deleting a Composite Item</a> </li> <li class='item mark-as-active' id='mark-as-active-item'> <a href="/inventory/api/v1/compositeitems/#mark-as-active" onclick="toggleAccordionMenu(this)">Mark as Active</a> </li> <li class='item mark-as-inactive' id='mark-as-inactive-item'> <a href="/inventory/api/v1/compositeitems/#mark-as-inactive" onclick="toggleAccordionMenu(this)">Mark as Inactive</a> </li> <li class='item create-bundle' id='create-bundle-item'> <a href="/inventory/api/v1/compositeitems/#create-bundle" onclick="toggleAccordionMenu(this)">Create Bundle</a> </li> <li class='item bundling-history' id='bundling-history-item'> <a href="/inventory/api/v1/compositeitems/#bundling-history" onclick="toggleAccordionMenu(this)">Bundling History</a> </li> <li class='item retrieve-bundle' id='retrieve-bundle-item'> <a href="/inventory/api/v1/compositeitems/#retrieve-bundle" onclick="toggleAccordionMenu(this)">Retrieve Bundle</a> </li> <li class='item delete-bundle' id='delete-bundle-item'> <a href="/inventory/api/v1/compositeitems/#delete-bundle" onclick="toggleAccordionMenu(this)">Delete Bundle</a> </li> </ul> </li> <li class="nested-menu" id='itemadjustments-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Item Adjustments</a> <ul class='panel -acc-wrapper'> <li class='item itemadjustments-overview' id='itemadjustments-overview-item'> <a href="/inventory/api/v1/itemadjustments/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-an-item-adjustment' id='create-an-item-adjustment-item'> <a href="/inventory/api/v1/itemadjustments/#create-an-item-adjustment" onclick="toggleAccordionMenu(this)">Create an item adjustment</a> </li> <li class='item list-all-the-item-adjustments' id='list-all-the-item-adjustments-item'> <a href="/inventory/api/v1/itemadjustments/#list-all-the-item-adjustments" onclick="toggleAccordionMenu(this)">List all the item adjustments</a> </li> <li class='item update-an-item-adjustment' id='update-an-item-adjustment-item'> <a href="/inventory/api/v1/itemadjustments/#update-an-item-adjustment" onclick="toggleAccordionMenu(this)">Update an item adjustment</a> </li> <li class='item retrieve-an-item-adjustment' id='retrieve-an-item-adjustment-item'> <a href="/inventory/api/v1/itemadjustments/#retrieve-an-item-adjustment" onclick="toggleAccordionMenu(this)">Retrieve an item adjustment</a> </li> <li class='item delete-an-item-adjustment' id='delete-an-item-adjustment-item'> <a href="/inventory/api/v1/itemadjustments/#delete-an-item-adjustment" onclick="toggleAccordionMenu(this)">Delete an item adjustment</a> </li> </ul> </li> <li class="nested-menu" id='transferorders-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Transfer Orders</a> <ul class='panel -acc-wrapper'> <li class='item transferorders-overview' id='transferorders-overview-item'> <a href="/inventory/api/v1/transferorders/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-transfer-order' id='create-a-transfer-order-item'> <a href="/inventory/api/v1/transferorders/#create-a-transfer-order" onclick="toggleAccordionMenu(this)">Create a transfer order</a> </li> <li class='item list-all-the-transfer-orders' id='list-all-the-transfer-orders-item'> <a href="/inventory/api/v1/transferorders/#list-all-the-transfer-orders" onclick="toggleAccordionMenu(this)">List all the transfer orders</a> </li> <li class='item update-a-transfer-order' id='update-a-transfer-order-item'> <a href="/inventory/api/v1/transferorders/#update-a-transfer-order" onclick="toggleAccordionMenu(this)">Update a transfer order</a> </li> <li class='item retrieve-a-transfer-order' id='retrieve-a-transfer-order-item'> <a href="/inventory/api/v1/transferorders/#retrieve-a-transfer-order" onclick="toggleAccordionMenu(this)">Retrieve a transfer order</a> </li> <li class='item delete-a-transfer-order' id='delete-a-transfer-order-item'> <a href="/inventory/api/v1/transferorders/#delete-a-transfer-order" onclick="toggleAccordionMenu(this)">Delete a transfer order</a> </li> <li class='item mark-as-received' id='mark-as-received-item'> <a href="/inventory/api/v1/transferorders/#mark-as-received" onclick="toggleAccordionMenu(this)">Mark as Received</a> </li> </ul> </li> <li class="nested-menu" id='salesorders-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Sales Orders</a> <ul class='panel -acc-wrapper'> <li class='item salesorders-overview' id='salesorders-overview-item'> <a href="/inventory/api/v1/salesorders/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-sales-order' id='create-a-sales-order-item'> <a href="/inventory/api/v1/salesorders/#create-a-sales-order" onclick="toggleAccordionMenu(this)">Create a Sales Order</a> </li> <li class='item list-all-sales-orders' id='list-all-sales-orders-item'> <a href="/inventory/api/v1/salesorders/#list-all-sales-orders" onclick="toggleAccordionMenu(this)">List all Sales Orders</a> </li> <li class='item bulk-delete-sales-orders' id='bulk-delete-sales-orders-item'> <a href="/inventory/api/v1/salesorders/#bulk-delete-sales-orders" onclick="toggleAccordionMenu(this)">Bulk delete Sales Orders</a> </li> <li class='item update-a-sales-order' id='update-a-sales-order-item'> <a href="/inventory/api/v1/salesorders/#update-a-sales-order" onclick="toggleAccordionMenu(this)">Update a Sales Order</a> </li> <li class='item retrieve-a-sales-order' id='retrieve-a-sales-order-item'> <a href="/inventory/api/v1/salesorders/#retrieve-a-sales-order" onclick="toggleAccordionMenu(this)">Retrieve a Sales Order</a> </li> <li class='item delete-a-sales-order' id='delete-a-sales-order-item'> <a href="/inventory/api/v1/salesorders/#delete-a-sales-order" onclick="toggleAccordionMenu(this)">Delete a Sales Order</a> </li> <li class='item mark-as-confirmed' id='mark-as-confirmed-item'> <a href="/inventory/api/v1/salesorders/#mark-as-confirmed" onclick="toggleAccordionMenu(this)">Mark as Confirmed</a> </li> <li class='item mark-as-void' id='mark-as-void-item'> <a href="/inventory/api/v1/salesorders/#mark-as-void" onclick="toggleAccordionMenu(this)">Mark as Void</a> </li> <li class='item bulk-confirm-sales-orders' id='bulk-confirm-sales-orders-item'> <a href="/inventory/api/v1/salesorders/#bulk-confirm-sales-orders" onclick="toggleAccordionMenu(this)">Bulk confirm Sales Orders</a> </li> </ul> </li> <li class="nested-menu" id='packages-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Packages</a> <ul class='panel -acc-wrapper'> <li class='item packages-overview' id='packages-overview-item'> <a href="/inventory/api/v1/packages/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item creating-a-package' id='creating-a-package-item'> <a href="/inventory/api/v1/packages/#creating-a-package" onclick="toggleAccordionMenu(this)">Creating a package</a> </li> <li class='item list-all-packages' id='list-all-packages-item'> <a href="/inventory/api/v1/packages/#list-all-packages" onclick="toggleAccordionMenu(this)">List all packages</a> </li> <li class='item updating-a-package' id='updating-a-package-item'> <a href="/inventory/api/v1/packages/#updating-a-package" onclick="toggleAccordionMenu(this)">Updating a package</a> </li> <li class='item retrieving-a-package' id='retrieving-a-package-item'> <a href="/inventory/api/v1/packages/#retrieving-a-package" onclick="toggleAccordionMenu(this)">Retrieving a package</a> </li> <li class='item deleting-a-package' id='deleting-a-package-item'> <a href="/inventory/api/v1/packages/#deleting-a-package" onclick="toggleAccordionMenu(this)">Deleting a package</a> </li> <li class='item bulk-print-packages' id='bulk-print-packages-item'> <a href="/inventory/api/v1/packages/#bulk-print-packages" onclick="toggleAccordionMenu(this)">Bulk print packages</a> </li> </ul> </li> <li class="nested-menu" id='shipmentorders-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Shipment Orders</a> <ul class='panel -acc-wrapper'> <li class='item shipmentorders-overview' id='shipmentorders-overview-item'> <a href="/inventory/api/v1/shipmentorders/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-shipment-order' id='create-a-shipment-order-item'> <a href="/inventory/api/v1/shipmentorders/#create-a-shipment-order" onclick="toggleAccordionMenu(this)">Create a Shipment Order</a> </li> <li class='item update-a-shipment-order' id='update-a-shipment-order-item'> <a href="/inventory/api/v1/shipmentorders/#update-a-shipment-order" onclick="toggleAccordionMenu(this)">Update a Shipment Order</a> </li> <li class='item retrieve-a-shipment-order' id='retrieve-a-shipment-order-item'> <a href="/inventory/api/v1/shipmentorders/#retrieve-a-shipment-order" onclick="toggleAccordionMenu(this)">Retrieve a Shipment Order</a> </li> <li class='item delete-a-shipment-order' id='delete-a-shipment-order-item'> <a href="/inventory/api/v1/shipmentorders/#delete-a-shipment-order" onclick="toggleAccordionMenu(this)">Delete a Shipment Order</a> </li> <li class='item mark-as-delivered' id='mark-as-delivered-item'> <a href="/inventory/api/v1/shipmentorders/#mark-as-delivered" onclick="toggleAccordionMenu(this)">Mark as Delivered</a> </li> </ul> </li> <li class="nested-menu" id='invoices-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Invoices</a> <ul class='panel -acc-wrapper'> <li class='item invoices-overview' id='invoices-overview-item'> <a href="/inventory/api/v1/invoices/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-an-invoice' id='create-an-invoice-item'> <a href="/inventory/api/v1/invoices/#create-an-invoice" onclick="toggleAccordionMenu(this)">Create an invoice</a> </li> <li class='item list-invoices' id='list-invoices-item'> <a href="/inventory/api/v1/invoices/#list-invoices" onclick="toggleAccordionMenu(this)">List invoices</a> </li> <li class='item update-an-invoice' id='update-an-invoice-item'> <a href="/inventory/api/v1/invoices/#update-an-invoice" onclick="toggleAccordionMenu(this)">Update an invoice</a> </li> <li class='item get-an-invoice' id='get-an-invoice-item'> <a href="/inventory/api/v1/invoices/#get-an-invoice" onclick="toggleAccordionMenu(this)">Get an invoice</a> </li> <li class='item delete-an-invoice' id='delete-an-invoice-item'> <a href="/inventory/api/v1/invoices/#delete-an-invoice" onclick="toggleAccordionMenu(this)">Delete an invoice</a> </li> <li class='item update-custom-field-in-existing-invoices' id='update-custom-field-in-existing-invoices-item'> <a href="/inventory/api/v1/invoices/#update-custom-field-in-existing-invoices" onclick="toggleAccordionMenu(this)">Update custom field in existing invoices</a> </li> <li class='item mark-an-invoice-as-sent' id='mark-an-invoice-as-sent-item'> <a href="/inventory/api/v1/invoices/#mark-an-invoice-as-sent" onclick="toggleAccordionMenu(this)">Mark an invoice as sent</a> </li> <li class='item void-an-invoice' id='void-an-invoice-item'> <a href="/inventory/api/v1/invoices/#void-an-invoice" onclick="toggleAccordionMenu(this)">Void an invoice</a> </li> <li class='item mark-as-draft' id='mark-as-draft-item'> <a href="/inventory/api/v1/invoices/#mark-as-draft" onclick="toggleAccordionMenu(this)">Mark as draft</a> </li> <li class='item email-an-invoice' id='email-an-invoice-item'> <a href="/inventory/api/v1/invoices/#email-an-invoice" onclick="toggleAccordionMenu(this)">Email an invoice</a> </li> <li class='item get-invoice-email-content' id='get-invoice-email-content-item'> <a href="/inventory/api/v1/invoices/#get-invoice-email-content" onclick="toggleAccordionMenu(this)">Get invoice email content</a> </li> <li class='item email-invoices' id='email-invoices-item'> <a href="/inventory/api/v1/invoices/#email-invoices" onclick="toggleAccordionMenu(this)">Email invoices</a> </li> <li class='item get-payment-reminder-mail-content' id='get-payment-reminder-mail-content-item'> <a href="/inventory/api/v1/invoices/#get-payment-reminder-mail-content" onclick="toggleAccordionMenu(this)">Get payment reminder mail content</a> </li> <li class='item bulk-export-invoices' id='bulk-export-invoices-item'> <a href="/inventory/api/v1/invoices/#bulk-export-invoices" onclick="toggleAccordionMenu(this)">Bulk export Invoices</a> </li> <li class='item bulk-print-invoices' id='bulk-print-invoices-item'> <a href="/inventory/api/v1/invoices/#bulk-print-invoices" onclick="toggleAccordionMenu(this)">Bulk print invoices</a> </li> <li class='item disable-payment-reminder' id='disable-payment-reminder-item'> <a href="/inventory/api/v1/invoices/#disable-payment-reminder" onclick="toggleAccordionMenu(this)">Disable payment reminder</a> </li> <li class='item enable-payment-reminder' id='enable-payment-reminder-item'> <a href="/inventory/api/v1/invoices/#enable-payment-reminder" onclick="toggleAccordionMenu(this)">Enable payment reminder</a> </li> <li class='item write-off-invoice' id='write-off-invoice-item'> <a href="/inventory/api/v1/invoices/#write-off-invoice" onclick="toggleAccordionMenu(this)">Write off invoice</a> </li> <li class='item cancel-write-off' id='cancel-write-off-item'> <a href="/inventory/api/v1/invoices/#cancel-write-off" onclick="toggleAccordionMenu(this)">Cancel write off</a> </li> <li class='item update-billing-address' id='update-billing-address-item'> <a href="/inventory/api/v1/invoices/#update-billing-address" onclick="toggleAccordionMenu(this)">Update billing address</a> </li> <li class='item update-shipping-address' id='update-shipping-address-item'> <a href="/inventory/api/v1/invoices/#update-shipping-address" onclick="toggleAccordionMenu(this)">Update shipping address</a> </li> <li class='item list-invoice-templates' id='list-invoice-templates-item'> <a href="/inventory/api/v1/invoices/#list-invoice-templates" onclick="toggleAccordionMenu(this)">List invoice templates</a> </li> <li class='item update-invoice-template' id='update-invoice-template-item'> <a href="/inventory/api/v1/invoices/#update-invoice-template" onclick="toggleAccordionMenu(this)">Update invoice template</a> </li> <li class='item list-invoice-payments' id='list-invoice-payments-item'> <a href="/inventory/api/v1/invoices/#list-invoice-payments" onclick="toggleAccordionMenu(this)">List invoice payments</a> </li> <li class='item list-credits-applied' id='list-credits-applied-item'> <a href="/inventory/api/v1/invoices/#list-credits-applied" onclick="toggleAccordionMenu(this)">List credits applied</a> </li> <li class='item apply-credits' id='apply-credits-item'> <a href="/inventory/api/v1/invoices/#apply-credits" onclick="toggleAccordionMenu(this)">Apply credits</a> </li> <li class='item delete-a-payment' id='delete-a-payment-item'> <a href="/inventory/api/v1/invoices/#delete-a-payment" onclick="toggleAccordionMenu(this)">Delete a payment</a> </li> <li class='item delete-applied-credit' id='delete-applied-credit-item'> <a href="/inventory/api/v1/invoices/#delete-applied-credit" onclick="toggleAccordionMenu(this)">Delete applied credit</a> </li> <li class='item add-attachment-to-an-invoice' id='add-attachment-to-an-invoice-item'> <a href="/inventory/api/v1/invoices/#add-attachment-to-an-invoice" onclick="toggleAccordionMenu(this)">Add attachment to an invoice</a> </li> <li class='item update-attachment-preference' id='update-attachment-preference-item'> <a href="/inventory/api/v1/invoices/#update-attachment-preference" onclick="toggleAccordionMenu(this)">Update attachment preference</a> </li> <li class='item get-an-invoice-attachment' id='get-an-invoice-attachment-item'> <a href="/inventory/api/v1/invoices/#get-an-invoice-attachment" onclick="toggleAccordionMenu(this)">Get an invoice attachment</a> </li> <li class='item delete-an-attachment' id='delete-an-attachment-item'> <a href="/inventory/api/v1/invoices/#delete-an-attachment" onclick="toggleAccordionMenu(this)">Delete an attachment</a> </li> <li class='item add-comment' id='add-comment-item'> <a href="/inventory/api/v1/invoices/#add-comment" onclick="toggleAccordionMenu(this)">Add comment</a> </li> <li class='item list-invoice-comments-and-history' id='list-invoice-comments-and-history-item'> <a href="/inventory/api/v1/invoices/#list-invoice-comments-and-history" onclick="toggleAccordionMenu(this)">List invoice comments &amp; history</a> </li> <li class='item update-comment' id='update-comment-item'> <a href="/inventory/api/v1/invoices/#update-comment" onclick="toggleAccordionMenu(this)">Update comment</a> </li> <li class='item delete-a-comment' id='delete-a-comment-item'> <a href="/inventory/api/v1/invoices/#delete-a-comment" onclick="toggleAccordionMenu(this)">Delete a comment</a> </li> </ul> </li> <li class="nested-menu" id='retainer-invoices-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Retainer Invoices</a> <ul class='panel -acc-wrapper'> <li class='item retainer-invoices-overview' id='retainer-invoices-overview-item'> <a href="/inventory/api/v1/retainer-invoices/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-retainerinvoice' id='create-a-retainerinvoice-item'> <a href="/inventory/api/v1/retainer-invoices/#create-a-retainerinvoice" onclick="toggleAccordionMenu(this)">Create a retainerinvoice</a> </li> <li class='item list-a-retainer-invoices' id='list-a-retainer-invoices-item'> <a href="/inventory/api/v1/retainer-invoices/#list-a-retainer-invoices" onclick="toggleAccordionMenu(this)">List a retainer invoices</a> </li> <li class='item update-a-retainerinvoice' id='update-a-retainerinvoice-item'> <a href="/inventory/api/v1/retainer-invoices/#update-a-retainerinvoice" onclick="toggleAccordionMenu(this)">update a retainerinvoice</a> </li> <li class='item get-a-retainer-invoice' id='get-a-retainer-invoice-item'> <a href="/inventory/api/v1/retainer-invoices/#get-a-retainer-invoice" onclick="toggleAccordionMenu(this)">Get a retainer invoice</a> </li> <li class='item delete-a-retainer-invoice' id='delete-a-retainer-invoice-item'> <a href="/inventory/api/v1/retainer-invoices/#delete-a-retainer-invoice" onclick="toggleAccordionMenu(this)">Delete a retainer invoice</a> </li> <li class='item mark-a-retainer-invoice-as-sent' id='mark-a-retainer-invoice-as-sent-item'> <a href="/inventory/api/v1/retainer-invoices/#mark-a-retainer-invoice-as-sent" onclick="toggleAccordionMenu(this)">Mark a retainer invoice as sent</a> </li> <li class='item update-retainer-invoice-template' id='update-retainer-invoice-template-item'> <a href="/inventory/api/v1/retainer-invoices/#update-retainer-invoice-template" onclick="toggleAccordionMenu(this)">Update retainer invoice template</a> </li> <li class='item void-a-retainer-invoice' id='void-a-retainer-invoice-item'> <a href="/inventory/api/v1/retainer-invoices/#void-a-retainer-invoice" onclick="toggleAccordionMenu(this)">Void a retainer invoice</a> </li> <li class='item mark-as-draft' id='mark-as-draft-item'> <a href="/inventory/api/v1/retainer-invoices/#mark-as-draft" onclick="toggleAccordionMenu(this)">Mark as draft</a> </li> <li class='item submit-a-retainer-invoice-for-approval' id='submit-a-retainer-invoice-for-approval-item'> <a href="/inventory/api/v1/retainer-invoices/#submit-a-retainer-invoice-for-approval" onclick="toggleAccordionMenu(this)">Submit a retainer invoice for approval</a> </li> <li class='item approve-a-retainer-invoice' id='approve-a-retainer-invoice-item'> <a href="/inventory/api/v1/retainer-invoices/#approve-a-retainer-invoice" onclick="toggleAccordionMenu(this)">Approve a retainer invoice.</a> </li> <li class='item email-a-retainer-invoice' id='email-a-retainer-invoice-item'> <a href="/inventory/api/v1/retainer-invoices/#email-a-retainer-invoice" onclick="toggleAccordionMenu(this)">Email a retainer invoice</a> </li> <li class='item get-retainer-invoice-email-content' id='get-retainer-invoice-email-content-item'> <a href="/inventory/api/v1/retainer-invoices/#get-retainer-invoice-email-content" onclick="toggleAccordionMenu(this)">Get retainer invoice email content</a> </li> <li class='item update-billing-address' id='update-billing-address-item'> <a href="/inventory/api/v1/retainer-invoices/#update-billing-address" onclick="toggleAccordionMenu(this)">Update billing address</a> </li> <li class='item list-retainer-invoice-templates' id='list-retainer-invoice-templates-item'> <a href="/inventory/api/v1/retainer-invoices/#list-retainer-invoice-templates" onclick="toggleAccordionMenu(this)">List retainer invoice templates</a> </li> <li class='item add-attachment-to-a-retainer-invoice' id='add-attachment-to-a-retainer-invoice-item'> <a href="/inventory/api/v1/retainer-invoices/#add-attachment-to-a-retainer-invoice" onclick="toggleAccordionMenu(this)">Add attachment to a retainer invoice</a> </li> <li class='item get-a-retainer-invoice-attachment' id='get-a-retainer-invoice-attachment-item'> <a href="/inventory/api/v1/retainer-invoices/#get-a-retainer-invoice-attachment" onclick="toggleAccordionMenu(this)">Get a retainer invoice attachment</a> </li> <li class='item delete-an-attachment' id='delete-an-attachment-item'> <a href="/inventory/api/v1/retainer-invoices/#delete-an-attachment" onclick="toggleAccordionMenu(this)">Delete an attachment</a> </li> <li class='item add-comment' id='add-comment-item'> <a href="/inventory/api/v1/retainer-invoices/#add-comment" onclick="toggleAccordionMenu(this)">Add comment</a> </li> <li class='item list-retainer-invoice-comments-and-history' id='list-retainer-invoice-comments-and-history-item'> <a href="/inventory/api/v1/retainer-invoices/#list-retainer-invoice-comments-and-history" onclick="toggleAccordionMenu(this)">List retainer invoice comments &amp; history</a> </li> <li class='item update-comment' id='update-comment-item'> <a href="/inventory/api/v1/retainer-invoices/#update-comment" onclick="toggleAccordionMenu(this)">Update comment</a> </li> <li class='item delete-a-comment' id='delete-a-comment-item'> <a href="/inventory/api/v1/retainer-invoices/#delete-a-comment" onclick="toggleAccordionMenu(this)">Delete a comment</a> </li> </ul> </li> <li class="nested-menu" id='customer-payments-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Customer Payments</a> <ul class='panel -acc-wrapper'> <li class='item customer-payments-overview' id='customer-payments-overview-item'> <a href="/inventory/api/v1/customer-payments/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-payment' id='create-a-payment-item'> <a href="/inventory/api/v1/customer-payments/#create-a-payment" onclick="toggleAccordionMenu(this)">Create a payment</a> </li> <li class='item list-customer-payments' id='list-customer-payments-item'> <a href="/inventory/api/v1/customer-payments/#list-customer-payments" onclick="toggleAccordionMenu(this)">List Customer Payments</a> </li> <li class='item update-custom-field-in-existing-customerpayments' id='update-custom-field-in-existing-customerpayments-item'> <a href="/inventory/api/v1/customer-payments/#update-custom-field-in-existing-customerpayments" onclick="toggleAccordionMenu(this)">Update custom field in existing customerpayments</a> </li> <li class='item update-a-payment' id='update-a-payment-item'> <a href="/inventory/api/v1/customer-payments/#update-a-payment" onclick="toggleAccordionMenu(this)">Update a payment</a> </li> <li class='item retrieve-a-payment' id='retrieve-a-payment-item'> <a href="/inventory/api/v1/customer-payments/#retrieve-a-payment" onclick="toggleAccordionMenu(this)">Retrieve a payment</a> </li> <li class='item delete-a-payment' id='delete-a-payment-item'> <a href="/inventory/api/v1/customer-payments/#delete-a-payment" onclick="toggleAccordionMenu(this)">Delete a payment</a> </li> </ul> </li> <li class="nested-menu" id='salesreturns-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Sales Returns</a> <ul class='panel -acc-wrapper'> <li class='item salesreturns-overview' id='salesreturns-overview-item'> <a href="/inventory/api/v1/salesreturns/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-sales-return' id='create-a-sales-return-item'> <a href="/inventory/api/v1/salesreturns/#create-a-sales-return" onclick="toggleAccordionMenu(this)">Create a Sales Return</a> </li> <li class='item list-all-sales-returns' id='list-all-sales-returns-item'> <a href="/inventory/api/v1/salesreturns/#list-all-sales-returns" onclick="toggleAccordionMenu(this)">List all Sales Returns</a> </li> <li class='item update-a-sales-return' id='update-a-sales-return-item'> <a href="/inventory/api/v1/salesreturns/#update-a-sales-return" onclick="toggleAccordionMenu(this)">Update a Sales Return</a> </li> <li class='item retrieve-a-sales-return' id='retrieve-a-sales-return-item'> <a href="/inventory/api/v1/salesreturns/#retrieve-a-sales-return" onclick="toggleAccordionMenu(this)">Retrieve a Sales Return</a> </li> <li class='item delete-a-sales-return' id='delete-a-sales-return-item'> <a href="/inventory/api/v1/salesreturns/#delete-a-sales-return" onclick="toggleAccordionMenu(this)">Delete a Sales Return</a> </li> <li class='item create-a-sales-return-receive' id='create-a-sales-return-receive-item'> <a href="/inventory/api/v1/salesreturns/#create-a-sales-return-receive" onclick="toggleAccordionMenu(this)">Create a Sales Return Receive</a> </li> <li class='item delete-a-sales-return-receive' id='delete-a-sales-return-receive-item'> <a href="/inventory/api/v1/salesreturns/#delete-a-sales-return-receive" onclick="toggleAccordionMenu(this)">Delete a Sales Return Receive</a> </li> </ul> </li> <li class="nested-menu" id='credit-notes-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Credit Notes</a> <ul class='panel -acc-wrapper'> <li class='item credit-notes-overview' id='credit-notes-overview-item'> <a href="/inventory/api/v1/credit-notes/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-credit-note' id='create-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#create-a-credit-note" onclick="toggleAccordionMenu(this)">Create a credit note</a> </li> <li class='item list-all-credit-notes' id='list-all-credit-notes-item'> <a href="/inventory/api/v1/credit-notes/#list-all-credit-notes" onclick="toggleAccordionMenu(this)">List all Credit Notes</a> </li> <li class='item update-a-credit-note' id='update-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#update-a-credit-note" onclick="toggleAccordionMenu(this)">Update a credit note</a> </li> <li class='item get-a-credit-note' id='get-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#get-a-credit-note" onclick="toggleAccordionMenu(this)">Get a credit note</a> </li> <li class='item delete-a-credit-note' id='delete-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#delete-a-credit-note" onclick="toggleAccordionMenu(this)">Delete a credit note</a> </li> <li class='item email-a-credit-note' id='email-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#email-a-credit-note" onclick="toggleAccordionMenu(this)">Email a credit note</a> </li> <li class='item get-email-content' id='get-email-content-item'> <a href="/inventory/api/v1/credit-notes/#get-email-content" onclick="toggleAccordionMenu(this)">Get email content</a> </li> <li class='item void-a-credit-note' id='void-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#void-a-credit-note" onclick="toggleAccordionMenu(this)">Void a Credit Note</a> </li> <li class='item convert-credit-note-to-draft' id='convert-credit-note-to-draft-item'> <a href="/inventory/api/v1/credit-notes/#convert-credit-note-to-draft" onclick="toggleAccordionMenu(this)">Convert Credit Note to Draft.</a> </li> <li class='item convert-credit-note-to-open' id='convert-credit-note-to-open-item'> <a href="/inventory/api/v1/credit-notes/#convert-credit-note-to-open" onclick="toggleAccordionMenu(this)">Convert credit note to Open</a> </li> <li class='item submit-a-credit-note-for-approval' id='submit-a-credit-note-for-approval-item'> <a href="/inventory/api/v1/credit-notes/#submit-a-credit-note-for-approval" onclick="toggleAccordionMenu(this)">Submit a credit note for approval</a> </li> <li class='item approve-a-credit-note' id='approve-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#approve-a-credit-note" onclick="toggleAccordionMenu(this)">Approve a credit note.</a> </li> <li class='item email-history' id='email-history-item'> <a href="/inventory/api/v1/credit-notes/#email-history" onclick="toggleAccordionMenu(this)">Email history</a> </li> <li class='item update-billing-address' id='update-billing-address-item'> <a href="/inventory/api/v1/credit-notes/#update-billing-address" onclick="toggleAccordionMenu(this)">Update billing address</a> </li> <li class='item update-shipping-address' id='update-shipping-address-item'> <a href="/inventory/api/v1/credit-notes/#update-shipping-address" onclick="toggleAccordionMenu(this)">Update Shipping address</a> </li> <li class='item list-the-credit-note-templates' id='list-the-credit-note-templates-item'> <a href="/inventory/api/v1/credit-notes/#list-the-credit-note-templates" onclick="toggleAccordionMenu(this)">List the credit note templates</a> </li> <li class='item update-a-credit-note-template' id='update-a-credit-note-template-item'> <a href="/inventory/api/v1/credit-notes/#update-a-credit-note-template" onclick="toggleAccordionMenu(this)">Update a credit note template</a> </li> <li class='item apply-credits-to-invoices' id='apply-credits-to-invoices-item'> <a href="/inventory/api/v1/credit-notes/#apply-credits-to-invoices" onclick="toggleAccordionMenu(this)">Apply credits to invoices</a> </li> <li class='item list-invoices-credited' id='list-invoices-credited-item'> <a href="/inventory/api/v1/credit-notes/#list-invoices-credited" onclick="toggleAccordionMenu(this)">List invoices credited</a> </li> <li class='item delete-credits-applied-to-an-invoice' id='delete-credits-applied-to-an-invoice-item'> <a href="/inventory/api/v1/credit-notes/#delete-credits-applied-to-an-invoice" onclick="toggleAccordionMenu(this)">Delete credits applied to an invoice</a> </li> <li class='item add-a-comment' id='add-a-comment-item'> <a href="/inventory/api/v1/credit-notes/#add-a-comment" onclick="toggleAccordionMenu(this)">Add a comment</a> </li> <li class='item list-credit-note-comments-and-history' id='list-credit-note-comments-and-history-item'> <a href="/inventory/api/v1/credit-notes/#list-credit-note-comments-and-history" onclick="toggleAccordionMenu(this)">List credit note comments &amp; history</a> </li> <li class='item delete-a-comment' id='delete-a-comment-item'> <a href="/inventory/api/v1/credit-notes/#delete-a-comment" onclick="toggleAccordionMenu(this)">Delete a Comment</a> </li> <li class='item list-credit-note-refunds' id='list-credit-note-refunds-item'> <a href="/inventory/api/v1/credit-notes/#list-credit-note-refunds" onclick="toggleAccordionMenu(this)">List credit note refunds</a> </li> <li class='item refund-credit-note' id='refund-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#refund-credit-note" onclick="toggleAccordionMenu(this)">Refund credit note</a> </li> <li class='item list-refunds-of-a-credit-note' id='list-refunds-of-a-credit-note-item'> <a href="/inventory/api/v1/credit-notes/#list-refunds-of-a-credit-note" onclick="toggleAccordionMenu(this)">List refunds of a credit note</a> </li> <li class='item update-credit-note-refund' id='update-credit-note-refund-item'> <a href="/inventory/api/v1/credit-notes/#update-credit-note-refund" onclick="toggleAccordionMenu(this)">Update credit note refund</a> </li> <li class='item get-credit-note-refund' id='get-credit-note-refund-item'> <a href="/inventory/api/v1/credit-notes/#get-credit-note-refund" onclick="toggleAccordionMenu(this)">Get credit note refund</a> </li> <li class='item delete-credit-note-refund' id='delete-credit-note-refund-item'> <a href="/inventory/api/v1/credit-notes/#delete-credit-note-refund" onclick="toggleAccordionMenu(this)">Delete credit note refund</a> </li> </ul> </li> <li class="nested-menu" id='purchaseorders-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Purchase Orders</a> <ul class='panel -acc-wrapper'> <li class='item purchaseorders-overview' id='purchaseorders-overview-item'> <a href="/inventory/api/v1/purchaseorders/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-purchase-order' id='create-a-purchase-order-item'> <a href="/inventory/api/v1/purchaseorders/#create-a-purchase-order" onclick="toggleAccordionMenu(this)">Create a Purchase Order</a> </li> <li class='item list-all-purchase-orders' id='list-all-purchase-orders-item'> <a href="/inventory/api/v1/purchaseorders/#list-all-purchase-orders" onclick="toggleAccordionMenu(this)">List all Purchase Orders</a> </li> <li class='item update-a-purchase-order' id='update-a-purchase-order-item'> <a href="/inventory/api/v1/purchaseorders/#update-a-purchase-order" onclick="toggleAccordionMenu(this)">Update a Purchase Order</a> </li> <li class='item retrieve-a-purchase-order' id='retrieve-a-purchase-order-item'> <a href="/inventory/api/v1/purchaseorders/#retrieve-a-purchase-order" onclick="toggleAccordionMenu(this)">Retrieve a Purchase Order</a> </li> <li class='item delete-a-purchase-order' id='delete-a-purchase-order-item'> <a href="/inventory/api/v1/purchaseorders/#delete-a-purchase-order" onclick="toggleAccordionMenu(this)">Delete a Purchase Order</a> </li> <li class='item mark-as-issued' id='mark-as-issued-item'> <a href="/inventory/api/v1/purchaseorders/#mark-as-issued" onclick="toggleAccordionMenu(this)">Mark as Issued</a> </li> <li class='item mark-as-cancelled' id='mark-as-cancelled-item'> <a href="/inventory/api/v1/purchaseorders/#mark-as-cancelled" onclick="toggleAccordionMenu(this)">Mark as Cancelled</a> </li> </ul> </li> <li class="nested-menu" id='purchasereceives-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Purchase Receives</a> <ul class='panel -acc-wrapper'> <li class='item purchasereceives-overview' id='purchasereceives-overview-item'> <a href="/inventory/api/v1/purchasereceives/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-purchase-receive' id='create-a-purchase-receive-item'> <a href="/inventory/api/v1/purchasereceives/#create-a-purchase-receive" onclick="toggleAccordionMenu(this)">Create a purchase receive</a> </li> <li class='item update-a-purchase-receive' id='update-a-purchase-receive-item'> <a href="/inventory/api/v1/purchasereceives/#update-a-purchase-receive" onclick="toggleAccordionMenu(this)">Update a Purchase Receive</a> </li> <li class='item retrieve-a-purchase-receive' id='retrieve-a-purchase-receive-item'> <a href="/inventory/api/v1/purchasereceives/#retrieve-a-purchase-receive" onclick="toggleAccordionMenu(this)">Retrieve a Purchase Receive</a> </li> <li class='item delete-a-purchase-receive' id='delete-a-purchase-receive-item'> <a href="/inventory/api/v1/purchasereceives/#delete-a-purchase-receive" onclick="toggleAccordionMenu(this)">Delete a Purchase Receive</a> </li> </ul> </li> <li class="nested-menu" id='bills-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Bills</a> <ul class='panel -acc-wrapper'> <li class='item bills-overview' id='bills-overview-item'> <a href="/inventory/api/v1/bills/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-bill' id='create-a-bill-item'> <a href="/inventory/api/v1/bills/#create-a-bill" onclick="toggleAccordionMenu(this)">Create a Bill</a> </li> <li class='item list-all-bills' id='list-all-bills-item'> <a href="/inventory/api/v1/bills/#list-all-bills" onclick="toggleAccordionMenu(this)">List all Bills.</a> </li> <li class='item update-a-bill' id='update-a-bill-item'> <a href="/inventory/api/v1/bills/#update-a-bill" onclick="toggleAccordionMenu(this)">Update a Bill</a> </li> <li class='item retrieve-a-bill' id='retrieve-a-bill-item'> <a href="/inventory/api/v1/bills/#retrieve-a-bill" onclick="toggleAccordionMenu(this)">Retrieve a Bill</a> </li> <li class='item delete-a-bill' id='delete-a-bill-item'> <a href="/inventory/api/v1/bills/#delete-a-bill" onclick="toggleAccordionMenu(this)">Delete a Bill.</a> </li> <li class='item update-custom-field-in-existing-bills' id='update-custom-field-in-existing-bills-item'> <a href="/inventory/api/v1/bills/#update-custom-field-in-existing-bills" onclick="toggleAccordionMenu(this)">Update custom field in existing bills</a> </li> <li class='item mark-as-open' id='mark-as-open-item'> <a href="/inventory/api/v1/bills/#mark-as-open" onclick="toggleAccordionMenu(this)">Mark as Open</a> </li> <li class='item mark-as-void' id='mark-as-void-item'> <a href="/inventory/api/v1/bills/#mark-as-void" onclick="toggleAccordionMenu(this)">Mark as Void</a> </li> </ul> </li> <li class="nested-menu" id='vendor-credits-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Vendor Credits</a> <ul class='panel -acc-wrapper'> <li class='item vendor-credits-overview' id='vendor-credits-overview-item'> <a href="/inventory/api/v1/vendor-credits/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-vendor-credit' id='create-a-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#create-a-vendor-credit" onclick="toggleAccordionMenu(this)">Create a vendor credit</a> </li> <li class='item list-vendor-credits' id='list-vendor-credits-item'> <a href="/inventory/api/v1/vendor-credits/#list-vendor-credits" onclick="toggleAccordionMenu(this)">List vendor credits</a> </li> <li class='item update-vendor-credit' id='update-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#update-vendor-credit" onclick="toggleAccordionMenu(this)">Update vendor credit</a> </li> <li class='item get-vendor-credit' id='get-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#get-vendor-credit" onclick="toggleAccordionMenu(this)">Get vendor credit</a> </li> <li class='item delete-vendor-credit' id='delete-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#delete-vendor-credit" onclick="toggleAccordionMenu(this)">Delete vendor credit</a> </li> <li class='item convert-to-open' id='convert-to-open-item'> <a href="/inventory/api/v1/vendor-credits/#convert-to-open" onclick="toggleAccordionMenu(this)">Convert to open</a> </li> <li class='item void-vendor-credit' id='void-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#void-vendor-credit" onclick="toggleAccordionMenu(this)">Void vendor credit</a> </li> <li class='item submit-a-vendor-credit-for-approval' id='submit-a-vendor-credit-for-approval-item'> <a href="/inventory/api/v1/vendor-credits/#submit-a-vendor-credit-for-approval" onclick="toggleAccordionMenu(this)">Submit a Vendor credit for approval</a> </li> <li class='item approve-a-vendor-credit' id='approve-a-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#approve-a-vendor-credit" onclick="toggleAccordionMenu(this)">Approve a Vendor credit</a> </li> <li class='item apply-credits-to-a-bill' id='apply-credits-to-a-bill-item'> <a href="/inventory/api/v1/vendor-credits/#apply-credits-to-a-bill" onclick="toggleAccordionMenu(this)">Apply credits to a bill</a> </li> <li class='item list-bills-credited' id='list-bills-credited-item'> <a href="/inventory/api/v1/vendor-credits/#list-bills-credited" onclick="toggleAccordionMenu(this)">List bills credited</a> </li> <li class='item delete-bills-credited' id='delete-bills-credited-item'> <a href="/inventory/api/v1/vendor-credits/#delete-bills-credited" onclick="toggleAccordionMenu(this)">Delete bills credited</a> </li> <li class='item refund-a-vendor-credit' id='refund-a-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#refund-a-vendor-credit" onclick="toggleAccordionMenu(this)">Refund a vendor credit</a> </li> <li class='item list-refunds-of-a-vendor-credit' id='list-refunds-of-a-vendor-credit-item'> <a href="/inventory/api/v1/vendor-credits/#list-refunds-of-a-vendor-credit" onclick="toggleAccordionMenu(this)">List refunds of a vendor credit</a> </li> <li class='item update-vendor-credit-refund' id='update-vendor-credit-refund-item'> <a href="/inventory/api/v1/vendor-credits/#update-vendor-credit-refund" onclick="toggleAccordionMenu(this)">Update vendor credit refund</a> </li> <li class='item get-vendor-credit-refund' id='get-vendor-credit-refund-item'> <a href="/inventory/api/v1/vendor-credits/#get-vendor-credit-refund" onclick="toggleAccordionMenu(this)">Get vendor credit refund</a> </li> <li class='item delete-vendor-credit-refund' id='delete-vendor-credit-refund-item'> <a href="/inventory/api/v1/vendor-credits/#delete-vendor-credit-refund" onclick="toggleAccordionMenu(this)">Delete vendor credit refund</a> </li> <li class='item list-vendor-credit-refunds' id='list-vendor-credit-refunds-item'> <a href="/inventory/api/v1/vendor-credits/#list-vendor-credit-refunds" onclick="toggleAccordionMenu(this)">List vendor credit refunds</a> </li> <li class='item add-a-comment' id='add-a-comment-item'> <a href="/inventory/api/v1/vendor-credits/#add-a-comment" onclick="toggleAccordionMenu(this)">Add a comment</a> </li> <li class='item list-vendor-credit-comments-and-history' id='list-vendor-credit-comments-and-history-item'> <a href="/inventory/api/v1/vendor-credits/#list-vendor-credit-comments-and-history" onclick="toggleAccordionMenu(this)">List vendor credit comments &amp; history</a> </li> <li class='item delete-a-comment' id='delete-a-comment-item'> <a href="/inventory/api/v1/vendor-credits/#delete-a-comment" onclick="toggleAccordionMenu(this)">Delete a comment</a> </li> </ul> </li> <li class="nested-menu" id='multi-warehouse-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Warehouse Settings</a> <ul class='panel -acc-wrapper'> <li class='item multi-warehouse-overview' id='multi-warehouse-overview-item'> <a href="/inventory/api/v1/multi-warehouse/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item enable-multi-warehouse' id='enable-multi-warehouse-item'> <a href="/inventory/api/v1/multi-warehouse/#enable-multi-warehouse" onclick="toggleAccordionMenu(this)">Enable Multi warehouse</a> </li> <li class='item create-a-warehouse' id='create-a-warehouse-item'> <a href="/inventory/api/v1/multi-warehouse/#create-a-warehouse" onclick="toggleAccordionMenu(this)">Create a Warehouse</a> </li> <li class='item list-all-warehouses' id='list-all-warehouses-item'> <a href="/inventory/api/v1/multi-warehouse/#list-all-warehouses" onclick="toggleAccordionMenu(this)">List all warehouses</a> </li> <li class='item update-warehouse' id='update-warehouse-item'> <a href="/inventory/api/v1/multi-warehouse/#update-warehouse" onclick="toggleAccordionMenu(this)">Update Warehouse</a> </li> <li class='item delete-a-warehouse' id='delete-a-warehouse-item'> <a href="/inventory/api/v1/multi-warehouse/#delete-a-warehouse" onclick="toggleAccordionMenu(this)">Delete a Warehouse</a> </li> <li class='item mark-as-active' id='mark-as-active-item'> <a href="/inventory/api/v1/multi-warehouse/#mark-as-active" onclick="toggleAccordionMenu(this)">Mark as Active</a> </li> <li class='item mark-as-inactive' id='mark-as-inactive-item'> <a href="/inventory/api/v1/multi-warehouse/#mark-as-inactive" onclick="toggleAccordionMenu(this)">Mark as Inactive</a> </li> <li class='item mark-as-primary' id='mark-as-primary-item'> <a href="/inventory/api/v1/multi-warehouse/#mark-as-primary" onclick="toggleAccordionMenu(this)">Mark as Primary</a> </li> </ul> </li> <li class="nested-menu" id='pricelists-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Price Lists</a> <ul class='panel -acc-wrapper'> <li class='item pricelists-overview' id='pricelists-overview-item'> <a href="/inventory/api/v1/pricelists/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-pricebook' id='create-a-pricebook-item'> <a href="/inventory/api/v1/pricelists/#create-a-pricebook" onclick="toggleAccordionMenu(this)">Create a pricebook</a> </li> <li class='item list-all-pricebooks' id='list-all-pricebooks-item'> <a href="/inventory/api/v1/pricelists/#list-all-pricebooks" onclick="toggleAccordionMenu(this)">List all pricebooks</a> </li> <li class='item update-pricebook' id='update-pricebook-item'> <a href="/inventory/api/v1/pricelists/#update-pricebook" onclick="toggleAccordionMenu(this)">Update pricebook</a> </li> <li class='item delete-the-pricebook' id='delete-the-pricebook-item'> <a href="/inventory/api/v1/pricelists/#delete-the-pricebook" onclick="toggleAccordionMenu(this)">Delete the pricebook</a> </li> <li class='item mark-as-active' id='mark-as-active-item'> <a href="/inventory/api/v1/pricelists/#mark-as-active" onclick="toggleAccordionMenu(this)">Mark as Active</a> </li> <li class='item mark-as-inactive' id='mark-as-inactive-item'> <a href="/inventory/api/v1/pricelists/#mark-as-inactive" onclick="toggleAccordionMenu(this)">Mark as Inactive</a> </li> </ul> </li> <li class="nested-menu" id='users-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Users</a> <ul class='panel -acc-wrapper'> <li class='item users-overview' id='users-overview-item'> <a href="/inventory/api/v1/users/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-user' id='create-a-user-item'> <a href="/inventory/api/v1/users/#create-a-user" onclick="toggleAccordionMenu(this)">Create a user</a> </li> <li class='item list-users' id='list-users-item'> <a href="/inventory/api/v1/users/#list-users" onclick="toggleAccordionMenu(this)">List Users</a> </li> <li class='item update-a-user' id='update-a-user-item'> <a href="/inventory/api/v1/users/#update-a-user" onclick="toggleAccordionMenu(this)">Update a user</a> </li> <li class='item get-a-user' id='get-a-user-item'> <a href="/inventory/api/v1/users/#get-a-user" onclick="toggleAccordionMenu(this)">Get a user</a> </li> <li class='item delete-a-user' id='delete-a-user-item'> <a href="/inventory/api/v1/users/#delete-a-user" onclick="toggleAccordionMenu(this)">Delete a user</a> </li> <li class='item get-current-user' id='get-current-user-item'> <a href="/inventory/api/v1/users/#get-current-user" onclick="toggleAccordionMenu(this)">Get current user</a> </li> <li class='item invite-a-user' id='invite-a-user-item'> <a href="/inventory/api/v1/users/#invite-a-user" onclick="toggleAccordionMenu(this)">Invite a user</a> </li> <li class='item mark-user-as-active' id='mark-user-as-active-item'> <a href="/inventory/api/v1/users/#mark-user-as-active" onclick="toggleAccordionMenu(this)">Mark user as active</a> </li> <li class='item mark-user-as-inactive' id='mark-user-as-inactive-item'> <a href="/inventory/api/v1/users/#mark-user-as-inactive" onclick="toggleAccordionMenu(this)">Mark user as inactive</a> </li> </ul> </li> <li class="nested-menu" id='taxes-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Taxes</a> <ul class='panel -acc-wrapper'> <li class='item taxes-overview' id='taxes-overview-item'> <a href="/inventory/api/v1/taxes/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-tax' id='create-a-tax-item'> <a href="/inventory/api/v1/taxes/#create-a-tax" onclick="toggleAccordionMenu(this)">Create a tax</a> </li> <li class='item list-taxes' id='list-taxes-item'> <a href="/inventory/api/v1/taxes/#list-taxes" onclick="toggleAccordionMenu(this)">List taxes</a> </li> <li class='item update-a-tax' id='update-a-tax-item'> <a href="/inventory/api/v1/taxes/#update-a-tax" onclick="toggleAccordionMenu(this)">Update a tax</a> </li> <li class='item get-a-tax' id='get-a-tax-item'> <a href="/inventory/api/v1/taxes/#get-a-tax" onclick="toggleAccordionMenu(this)">Get a tax</a> </li> <li class='item delete-a-tax' id='delete-a-tax-item'> <a href="/inventory/api/v1/taxes/#delete-a-tax" onclick="toggleAccordionMenu(this)">Delete a tax</a> </li> <li class='item update-a-tax-group' id='update-a-tax-group-item'> <a href="/inventory/api/v1/taxes/#update-a-tax-group" onclick="toggleAccordionMenu(this)">Update a tax group</a> </li> <li class='item get-a-tax-group' id='get-a-tax-group-item'> <a href="/inventory/api/v1/taxes/#get-a-tax-group" onclick="toggleAccordionMenu(this)">Get a tax group</a> </li> <li class='item delete-a-tax-group' id='delete-a-tax-group-item'> <a href="/inventory/api/v1/taxes/#delete-a-tax-group" onclick="toggleAccordionMenu(this)">Delete a tax group</a> </li> <li class='item create-a-tax-group' id='create-a-tax-group-item'> <a href="/inventory/api/v1/taxes/#create-a-tax-group" onclick="toggleAccordionMenu(this)">Create a tax group</a> </li> <li class='item create-a-tax-authority-us-and-ca-edition-only' id='create-a-tax-authority-us-and-ca-edition-only-item'> <a href="/inventory/api/v1/taxes/#create-a-tax-authority-us-and-ca-edition-only" onclick="toggleAccordionMenu(this)">Create a tax authority [US and CA Edition only]</a> </li> <li class='item list-tax-authorities-us-edition-only' id='list-tax-authorities-us-edition-only-item'> <a href="/inventory/api/v1/taxes/#list-tax-authorities-us-edition-only" onclick="toggleAccordionMenu(this)">List tax authorities [US Edition only]</a> </li> <li class='item update-a-tax-authority-us-and-ca-edition-only' id='update-a-tax-authority-us-and-ca-edition-only-item'> <a href="/inventory/api/v1/taxes/#update-a-tax-authority-us-and-ca-edition-only" onclick="toggleAccordionMenu(this)">Update a tax authority [US and CA Edition only]</a> </li> <li class='item get-a-tax-authority-us-and-ca-edition-only' id='get-a-tax-authority-us-and-ca-edition-only-item'> <a href="/inventory/api/v1/taxes/#get-a-tax-authority-us-and-ca-edition-only" onclick="toggleAccordionMenu(this)">Get a tax authority [US and CA Edition only]</a> </li> <li class='item delete-a-tax-authority-us-and-ca-edition-only' id='delete-a-tax-authority-us-and-ca-edition-only-item'> <a href="/inventory/api/v1/taxes/#delete-a-tax-authority-us-and-ca-edition-only" onclick="toggleAccordionMenu(this)">Delete a tax authority [US and CA Edition only]</a> </li> <li class='item create-a-tax-exemption-us-edition-only' id='create-a-tax-exemption-us-edition-only-item'> <a href="/inventory/api/v1/taxes/#create-a-tax-exemption-us-edition-only" onclick="toggleAccordionMenu(this)">Create a tax exemption [US Edition only]</a> </li> <li class='item list-tax-exemptions-us-edition-only' id='list-tax-exemptions-us-edition-only-item'> <a href="/inventory/api/v1/taxes/#list-tax-exemptions-us-edition-only" onclick="toggleAccordionMenu(this)">List tax exemptions [US Edition only]</a> </li> <li class='item update-a-tax-exemption-us-edition-only' id='update-a-tax-exemption-us-edition-only-item'> <a href="/inventory/api/v1/taxes/#update-a-tax-exemption-us-edition-only" onclick="toggleAccordionMenu(this)">Update a tax exemption [US Edition only]</a> </li> <li class='item get-a-tax-exemption-us-edition-only' id='get-a-tax-exemption-us-edition-only-item'> <a href="/inventory/api/v1/taxes/#get-a-tax-exemption-us-edition-only" onclick="toggleAccordionMenu(this)">Get a tax exemption [US Edition only]</a> </li> <li class='item delete-a-tax-exemption-us-edition-only' id='delete-a-tax-exemption-us-edition-only-item'> <a href="/inventory/api/v1/taxes/#delete-a-tax-exemption-us-edition-only" onclick="toggleAccordionMenu(this)">Delete a tax exemption [US Edition only]</a> </li> </ul> </li> <li class="nested-menu" id='currency-menu'> <a class="accordian" onclick="registerAccordionClick(this)" >Currency</a> <ul class='panel -acc-wrapper'> <li class='item currency-overview' id='currency-overview-item'> <a href="/inventory/api/v1/currency/#overview" onclick="toggleAccordionMenu(this)">Overview</a> </li> <li class='item create-a-currency' id='create-a-currency-item'> <a href="/inventory/api/v1/currency/#create-a-currency" onclick="toggleAccordionMenu(this)">Create a Currency</a> </li> <li class='item list-currency' id='list-currency-item'> <a href="/inventory/api/v1/currency/#list-currency" onclick="toggleAccordionMenu(this)">List Currency</a> </li> <li class='item update-a-currency' id='update-a-currency-item'> <a href="/inventory/api/v1/currency/#update-a-currency" onclick="toggleAccordionMenu(this)">Update a Currency</a> </li> <li class='item get-a-currency' id='get-a-currency-item'> <a href="/inventory/api/v1/currency/#get-a-currency" onclick="toggleAccordionMenu(this)">Get a Currency</a> </li> <li class='item delete-a-currency' id='delete-a-currency-item'> <a href="/inventory/api/v1/currency/#delete-a-currency" onclick="toggleAccordionMenu(this)">Delete a currency</a> </li> </ul> </li> </ul> </div> </div> <div class="page-wrapper" id='page-wrapper'> <div class="content"> <div class="wrapper module-section"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h1 id="purchaseorders-overview" class="scroll-observer pt-70">Purchase Orders</h1> <p>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. </p> </div> <div class="flex-wrapper-right endpoints-top pt-70"> <div class="endpoints-wrapper "> <div class="endpoints-header"> End Points </div> <div class="endpoints-innerwrapper"> <span role="tooltip" class="tooltip tooltip-content">Create a Purchase Order <div class="arrow" data-popper-arrow></div> </span> <div style="display: flex;"> <a href="/inventory/api/v1/purchaseorders/#create-a-purchase-order" onclick="toggleAccordionMenu(this)" style="word-break:none;"> <div class="endpoints content" style="display: flex;"> <div class="endpoints-content"> <div class="endpoints-bottom-text-method post"> POST&nbsp;&nbsp; </div> <div class="endpoints-bottom-text-url">/purchaseorders</div> </div> </div> </a> </div> <span role="tooltip" class="tooltip tooltip-content">List all Purchase Orders <div class="arrow" data-popper-arrow></div> </span> <div style="display: flex;"> <a href="/inventory/api/v1/purchaseorders/#list-all-purchase-orders" onclick="toggleAccordionMenu(this)" style="word-break:none;"> <div class="endpoints content" style="display: flex;"> <div class="endpoints-content"> <div class="endpoints-bottom-text-method get"> GET&nbsp;&nbsp;&nbsp; </div> <div class="endpoints-bottom-text-url">/purchaseorders</div> </div> </div> </a> </div> <span role="tooltip" class="tooltip tooltip-content">Update a Purchase Order <div class="arrow" data-popper-arrow></div> </span> <div style="display: flex;"> <a href="/inventory/api/v1/purchaseorders/#update-a-purchase-order" onclick="toggleAccordionMenu(this)" style="word-break:none;"> <div class="endpoints content" style="display: flex;"> <div class="endpoints-content"> <div class="endpoints-bottom-text-method put"> PUT&nbsp;&nbsp;&nbsp; </div> <div class="endpoints-bottom-text-url">/purchaseorders/{purchaseorder_id}</div> </div> </div> </a> </div> <span role="tooltip" class="tooltip tooltip-content">Retrieve a Purchase Order <div class="arrow" data-popper-arrow></div> </span> <div style="display: flex;"> <a href="/inventory/api/v1/purchaseorders/#retrieve-a-purchase-order" onclick="toggleAccordionMenu(this)" style="word-break:none;"> <div class="endpoints content" style="display: flex;"> <div class="endpoints-content"> <div class="endpoints-bottom-text-method get"> GET&nbsp;&nbsp;&nbsp; </div> <div class="endpoints-bottom-text-url">/purchaseorders/{purchaseorder_id}</div> </div> </div> </a> </div> <span role="tooltip" class="tooltip tooltip-content">Delete a Purchase Order <div class="arrow" data-popper-arrow></div> </span> <div style="display: flex;"> <a href="/inventory/api/v1/purchaseorders/#delete-a-purchase-order" onclick="toggleAccordionMenu(this)" style="word-break:none;"> <div class="endpoints content" style="display: flex;"> <div class="endpoints-content"> <div class="endpoints-bottom-text-method delete"> DELETE </div> <div class="endpoints-bottom-text-url">/purchaseorders/{purchaseorder_id}</div> </div> </div> </a> </div> <span role="tooltip" class="tooltip tooltip-content">Mark as Issued <div class="arrow" data-popper-arrow></div> </span> <div style="display: flex;"> <a href="/inventory/api/v1/purchaseorders/#mark-as-issued" onclick="toggleAccordionMenu(this)" style="word-break:none;"> <div class="endpoints content" style="display: flex;"> <div class="endpoints-content"> <div class="endpoints-bottom-text-method post"> POST&nbsp;&nbsp; </div> <div class="endpoints-bottom-text-url">/purchaseorders/{purchaseorder_id}/status/issued</div> </div> </div> </a> </div> <span role="tooltip" class="tooltip tooltip-content">Mark as Cancelled <div class="arrow" data-popper-arrow></div> </span> <div style="display: flex;"> <a href="/inventory/api/v1/purchaseorders/#mark-as-cancelled" onclick="toggleAccordionMenu(this)" style="word-break:none;"> <div class="endpoints content" style="display: flex;"> <div class="endpoints-content"> <div class="endpoints-bottom-text-method post"> POST&nbsp;&nbsp; </div> <div class="endpoints-bottom-text-url">/purchaseorders/{purchaseorder_id}/status/cancelled</div> </div> </div> </a> </div> </div> </div> </div> </div> </div> <div class="attribute-section"> <div class="flex-wrapper-left"> <h3 id="attributes" class="properties"> Attribute </h3> <div class="parameter"> <div class="row" id=overview-purchaseorder_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchaseorder_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the Purchase Order.</div> </div> </div> <div class="row" id=overview-documents> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> documents </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">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>.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-documents-can_send_in_mail> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> can_send_in_mail </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Checks whether it can be sent in a mail or not.</div> </div> </div> <div class="row attribute small-line" id=overview-documents-file_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the name of the file.</div> </div> </div> <div class="row attribute small-line" id=overview-documents-file_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the type of the file.</div> </div> </div> <div class="row attribute small-line" id=overview-documents-file_size_formatted> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_size_formatted </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the size of the formatted file.</div> </div> </div> <div class="row attribute small-line" id=overview-documents-attachment_order> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> attachment_order </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the chronological number of the attachment.</div> </div> </div> <div class="row attribute small-line" id=overview-documents-document_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> document_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the document. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-documents-file_size> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_size </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">this indicates the size of the attached file.</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-purchaseorder_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchaseorder_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Purchase Order number.</div> </div> </div> <div class="row" id=overview-date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Date of Purchase Order</div> </div> </div> <div class="row" id=overview-expected_delivery_date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> expected_delivery_date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Expected date of delivery for the items ordered.</div> </div> </div> <div class="row" id=overview-date_formatted> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> date_formatted </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the date format.</div> </div> </div> <div class="row" id=overview-expected_delivery_date_formatted> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> expected_delivery_date_formatted </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the date format.</div> </div> </div> <div class="row" id=overview-delivery_date_formatted> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_date_formatted </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the delivery date format.</div> </div> </div> <div class="row" id=overview-status_formatted> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> status_formatted </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the Format of the status.</div> </div> </div> <div class="row" id=overview-billed_status> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> billed_status </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indiacates the Status of the bill.</div> </div> </div> <div class="row" id=overview-is_emailed> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_emailed </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Checks whether the purchase order has been emailed or not.</div> </div> </div> <div class="row" id=overview-is_inclusive_tax> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_inclusive_tax </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates whether the tax is inclusive or not.</div> </div> </div> <div class="row" id=overview-is_backorder> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_backorder </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates whether it is a Back order or not.</div> </div> </div> <div class="row" id=overview-reference_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reference_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Reference number of purchase order.</div> </div> </div> <div class="row" id=overview-status> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> status </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Status of Purchase Order.</div> </div> </div> <div class="row" id=overview-vendor_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> vendor_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the vendor.</div> </div> </div> <div class="row" id=overview-vendor_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> vendor_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the vendor.</div> </div> </div> <div class="row" id=overview-contact_persons> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> contact_persons </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Array of contact person IDs.</div> </div> </div> <div class="row" id=overview-comments> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> comments </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">History related to the purchase order.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-comments-comment_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> comment_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the comment(history). This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-comments-purchaseorder_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchaseorder_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the Purchase Order.</div> </div> </div> <div class="row attribute small-line" id=overview-comments-commented_by> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> commented_by </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the User who performed the action on the purchase oder</div> </div> </div> <div class="row attribute small-line" id=overview-comments-comment_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> comment_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the type of the action</div> </div> </div> <div class="row attribute small-line" id=overview-comments-date_description> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> date_description </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the time duration since the action was performed</div> </div> </div> <div class="row attribute small-line" id=overview-comments-time> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> time </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the time when the action was performed</div> </div> </div> <div class="row attribute small-line" id=overview-comments-operation_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> operation_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Type of operation performed</div> </div> </div> <div class="row attribute small-line" id=overview-comments-transaction_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> transaction_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the transaction. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-comments-transaction_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> transaction_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Indicates the type of the transaction.</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-currency_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> currency_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the currency. This is used as an identifier.</div> </div> </div> <div class="row" id=overview-currency_code> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> currency_code </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Currency code.</div> </div> </div> <div class="row" id=overview-currency_symbol> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> currency_symbol </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The symbol for the selected currency.</div> </div> </div> <div class="row" id=overview-exchange_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> exchange_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Exchange rate of the currency, with respect to the base currency.</div> </div> </div> <div class="row" id=overview-delivery_date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Date of delivery of the product.</div> </div> </div> <div class="row" id=overview-salesorder_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> salesorder_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Sales Order ID, in case of Drop Shipment.</div> </div> </div> <div class="row" id=overview-is_drop_shipment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_drop_shipment </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Default is <code>FALSE</code>, in case of drop shipment value must be <code>TRUE</code>.</div> </div> </div> <div class="row" id=overview-custom_fields> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> custom_fields </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Custom fields for a purchaseorder.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-custom_fields-customfield_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> customfield_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> </div> </div> <div class="row attribute small-line" id=overview-custom_fields-value> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> value </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Value of the Custom Field</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-line_items> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> line_items </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">List of line items in a purchase order</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-line_items-item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-line_item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> line_item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for each line item. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-account_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> account_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Account ID of the item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-description> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> description </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Description of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-item_order> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_order </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The order of the line items, starts from <code>0</code> by default.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-bcy_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> bcy_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Item rate in the organization's base currency.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-purchase_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchase_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Purchase Price of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-quantity> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-quantity_received> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity_received </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity invoiced of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-unit> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> unit </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unit of line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-item_total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Total of line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the tax. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-tds_tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tds_tax_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> </div> </div> <div class="row attribute small-line" id=overview-line_items-tax_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the tax applied on the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-tax_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Denotes the type of the tax. This can either be a single tax or a tax group.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-tax_percentage> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_percentage </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Percentage of the tax.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-image_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_id </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item image. This is used an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-image_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the image of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-image_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The type (file format) of the image.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-reverse_charge_tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Enter reverse charge tax ID</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-reverse_charge_tax_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Enter reverse charge tax name</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-reverse_charge_tax_percentage> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_percentage </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Enter reverse charge tax percentage</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-reverse_charge_tax_amount> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_amount </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Tax amount for the reverse charge.</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-hsn_or_sac> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> hsn_or_sac </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">HSN or SAC Code for the Item</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-tax_exemption_code> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_code </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Code of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-warehouse_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> warehouse_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the ware houses</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-tax_exemption_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">ID of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=overview-line_items-salesorder_item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> salesorder_item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for each line item in a sales order. This is used for creating backorder or dropshipment</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-sub_total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> sub_total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Sub total of the Purchase Order.</div> </div> </div> <div class="row" id=overview-sub_total_formatted> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> sub_total_formatted </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Format of the sub total.</div> </div> </div> <div class="row" id=overview-tax_total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Tax total of the Purchase Order.</div> </div> </div> <div class="row" id=overview-total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Total amount of the Purchase Order.</div> </div> </div> <div class="row" id=overview-taxes> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> taxes </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Number of taxes applied on the Purchase Order. Each tax contains: <code>tax_name</code> and <code>tax_amount</code>.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-taxes-tax_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the tax applied on the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-taxes-tax_amount> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_amount </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Amount of the tax.</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-price_precision> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> price_precision </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The precision level for the price's decimal point in a Purchase Order.</div> </div> </div> <div class="row" id=overview-pricebook_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> pricebook_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the Pricebook. This is used as an identifier.</div> </div> </div> <div class="row" id=overview-billing_address> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> billing_address </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">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>.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-billing_address-address> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> address </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the street of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-billing_address-city> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> city </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the city of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-billing_address-state> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> state </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the state of the customer's billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-billing_address-zip> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> zip </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Zip code of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-billing_address-country> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> country </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the country of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-billing_address-fax> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> fax </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Fax number of the customer鈥檚 billing address.</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-notes> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> notes </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Notes for the Purchase Order.</div> </div> </div> <div class="row" id=overview-terms> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> terms </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Terms for the Purchase Order.</div> </div> </div> <div class="row" id=overview-ship_via> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> ship_via </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Shipping method for the Purchase Order.</div> </div> </div> <div class="row" id=overview-ship_via_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> ship_via_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server. This is used as identifier.</div> </div> </div> <div class="row" id=overview-attention> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> attention </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the person, whose attention is required.</div> </div> </div> <div class="row" id=overview-delivery_org_address_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_org_address_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server. This is used as identifier.</div> </div> </div> <div class="row" id=overview-delivery_customer_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_customer_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Customer ID for delivery address</div> </div> </div> <div class="row" id=overview-delivery_customer_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_customer_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Customer's name at the delivery address.</div> </div> </div> <div class="row" id=overview-delivery_address> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_address </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">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>.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-delivery_address-address> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> address </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the street of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-delivery_address-city> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> city </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the city of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-delivery_address-state> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> state </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the state of the customer's billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-delivery_address-zip> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> zip </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Zip code of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-delivery_address-country> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> country </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the country of the customer鈥檚 billing address.</div> </div> </div> <div class="row attribute small-line" id=overview-delivery_address-fax> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> fax </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Fax number of the customer鈥檚 billing address.</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-attachment_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> attachment_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of attached file with Purchase Order.</div> </div> </div> <div class="row" id=overview-can_send_in_mail> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> can_send_in_mail </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Checks whether it can be sent in a mail or not.</div> </div> </div> <div class="row" id=overview-template_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> template_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the Template. This is used as an identifier.</div> </div> </div> <div class="row" id=overview-template_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> template_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the template used for the Purchase Order.</div> </div> </div> <div class="row" id=overview-template_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> template_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Type of Template used to create Purchase Order.</div> </div> </div> <div class="row" id=overview-created_time> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> created_time </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Time at which the Purchase Order was created.</div> </div> </div> <div class="row" id=overview-last_modified_time> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> last_modified_time </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Time at which the Purchase Order details were last modified.</div> </div> </div> <div class="row" id=overview-purchasereceives> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchasereceives </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Purchase receives for purchase order. Each Recieve contains- <code>receive_id</code>, <code>receive_number</code>, <code>date</code> and <code>note</code>.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-purchasereceives-receive_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> receive_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the Purchase Receive. This is used as identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-receive_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> receive_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Number of the Purchase Receive.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Date of Purchase Order</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-notes> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> notes </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Notes for the Purchase Order.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> line_items </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">List of line items in a purchase order</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=nested-attribute-wrapper> <div class="row attribute small-line" id=overview-purchasereceives-line_items-item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-line_item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> line_item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for each line item. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-account_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> account_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Account ID of the item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-description> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> description </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Description of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-item_order> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_order </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The order of the line items, starts from <code>0</code> by default.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-bcy_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> bcy_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Item rate in the organization's base currency.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-purchase_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchase_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Purchase Price of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-quantity> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-quantity_received> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity_received </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity invoiced of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-unit> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> unit </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unit of line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-item_total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Total of line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the tax. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-tds_tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tds_tax_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-tax_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the tax applied on the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-tax_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Denotes the type of the tax. This can either be a single tax or a tax group.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-tax_percentage> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_percentage </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Percentage of the tax.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-image_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_id </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item image. This is used an identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-image_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the image of the line item.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-image_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The type (file format) of the image.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-reverse_charge_tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Enter reverse charge tax ID</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-reverse_charge_tax_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Enter reverse charge tax name</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-reverse_charge_tax_percentage> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_percentage </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Enter reverse charge tax percentage</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-reverse_charge_tax_amount> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_amount </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Tax amount for the reverse charge.</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-hsn_or_sac> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> hsn_or_sac </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">HSN or SAC Code for the Item</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-tax_exemption_code> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_code </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Code of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-warehouse_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> warehouse_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the ware houses</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-tax_exemption_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">ID of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=overview-purchasereceives-line_items-salesorder_item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> salesorder_item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for each line item in a sales order. This is used for creating backorder or dropshipment</div> </div> </div> </div> </details> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-bills> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> bills </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Bills raised for purchase order. Each bill contains these fields: <code>bill_id</code>, <code>bill_number</code>, <code>status</code>, <code>date</code>, <code>due_date</code>, <code>total</code>, <code>balance</code>.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=overview-bills-bill_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> bill_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server. This is used as identifier.</div> </div> </div> <div class="row attribute small-line" id=overview-bills-bill_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> bill_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Bill number of Purchase Order.</div> </div> </div> <div class="row attribute small-line" id=overview-bills-status> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> status </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Status of Purchase Order.</div> </div> </div> <div class="row attribute small-line" id=overview-bills-date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Date of Purchase Order</div> </div> </div> <div class="row attribute small-line" id=overview-bills-due_date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> due_date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Due date of the Bill.</div> </div> </div> <div class="row attribute small-line" id=overview-bills-total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Total amount of the Purchase Order.</div> </div> </div> <div class="row attribute small-line" id=overview-bills-balance> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> balance </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Balance amount for the Bill.</div> </div> </div> </div> </details> </div> </div> <div class="row" id=overview-gst_treatment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> gst_treatment </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Choose whether the contact is GST registered/unregistered/consumer/overseas. Allowed values are <code> business_gst </code> , <code> business_none </code> , <code> overseas </code> , <code> consumer </code>.</div> </div> </div> <div class="row" id=overview-gst_no> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> gst_no </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">15 digit GST identification number of the vendor.</div> </div> </div> <div class="row" id=overview-source_of_supply> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> source_of_supply </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Place from where the goods/services are supplied. (If not given, <code>place of contact</code> given for the contact will be taken)</div> </div> </div> <div class="row" id=overview-destination_of_supply> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> destination_of_supply </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Place where the goods/services are supplied to. (If not given, organisation's home state will be taken)</div> </div> </div> <div class="row" id=overview-is_pre_gst> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_pre_gst </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Applicable for transactions that fall before july 1, 2017</div> </div> </div> <div class="row" id=overview-is_reverse_charge_applied> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_reverse_charge_applied </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Applicable for transactions where you pay reverse charge</div> </div> </div> </div> </div> <div class="flex-wrapper-right"> <div class="attributeheader"> <p class="response-topbar header-example"> Example </p> <div class="codebag" data-simplebar> <div class="example"> <code><span class="token punctuation">{</span> <span class="token property">"purchaseorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044972</span><span class="token punctuation">,</span> <span class="token property">"documents"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"can_send_in_mail"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"file_name"</span><span class="token operator">:</span> <span class="token string">"sample.pdf"</span><span class="token punctuation">,</span> <span class="token property">"file_type"</span><span class="token operator">:</span> <span class="token string">"pdf"</span><span class="token punctuation">,</span> <span class="token property">"file_size_formatted"</span><span class="token operator">:</span> <span class="token string">"116.8 KB"</span><span class="token punctuation">,</span> <span class="token property">"attachment_order"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"document_id"</span><span class="token operator">:</span> <span class="token number">16115000000096068</span><span class="token punctuation">,</span> <span class="token property">"file_size"</span><span class="token operator">:</span> <span class="token number">11957</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"purchaseorder_number"</span><span class="token operator">:</span> <span class="token string">"PO-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"expected_delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"date_formatted"</span><span class="token operator">:</span> <span class="token string">"2015/05/28"</span><span class="token punctuation">,</span> <span class="token property">"expected_delivery_date_formatted"</span><span class="token operator">:</span> <span class="token string">"2015/05/28"</span><span class="token punctuation">,</span> <span class="token property">"delivery_date_formatted"</span><span class="token operator">:</span> <span class="token string">"2015/05/28"</span><span class="token punctuation">,</span> <span class="token property">"status_formatted"</span><span class="token operator">:</span> <span class="token string">"Draft"</span><span class="token punctuation">,</span> <span class="token property">"billed_status"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"is_emailed"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"is_inclusive_tax"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"is_backorder"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"reference_number"</span><span class="token operator">:</span> <span class="token string">"REF-P-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"vendor_id"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"vendor_name"</span><span class="token operator">:</span> <span class="token string">"Molly"</span><span class="token punctuation">,</span> <span class="token property">"contact_persons"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"comments"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"comment_id"</span><span class="token operator">:</span> <span class="token number">16115000000097016</span><span class="token punctuation">,</span> <span class="token property">"purchaseorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044972</span><span class="token punctuation">,</span> <span class="token property">"commented_by"</span><span class="token operator">:</span> <span class="token string">"John"</span><span class="token punctuation">,</span> <span class="token property">"comment_type"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"date_description"</span><span class="token operator">:</span> <span class="token string">"few seconds ago"</span><span class="token punctuation">,</span> <span class="token property">"time"</span><span class="token operator">:</span> <span class="token string">"2:18 PM"</span><span class="token punctuation">,</span> <span class="token property">"operation_type"</span><span class="token operator">:</span> <span class="token string">"Updated"</span><span class="token punctuation">,</span> <span class="token property">"transaction_id"</span><span class="token operator">:</span> <span class="token number">1232423434</span><span class="token punctuation">,</span> <span class="token property">"transaction_type"</span><span class="token operator">:</span> <span class="token string">"purchaseorder"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"currency_id"</span><span class="token operator">:</span> <span class="token number">4815000000000097</span><span class="token punctuation">,</span> <span class="token property">"currency_code"</span><span class="token operator">:</span> <span class="token string">"USD"</span><span class="token punctuation">,</span> <span class="token property">"currency_symbol"</span><span class="token operator">:</span> <span class="token string">"$"</span><span class="token punctuation">,</span> <span class="token property">"exchange_rate"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-01"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044936</span><span class="token punctuation">,</span> <span class="token property">"is_drop_shipment"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"custom_fields"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"customfield_id"</span><span class="token operator">:</span> <span class="token string">"46000000012845"</span><span class="token punctuation">,</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"Normal"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"sub_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"sub_total_formatted"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_total"</span><span class="token operator">:</span> <span class="token number">29</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"taxes"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_amount"</span><span class="token operator">:</span> <span class="token number">29</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"price_precision"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"pricebook_id"</span><span class="token operator">:</span> <span class="token number">4815000000044054</span><span class="token punctuation">,</span> <span class="token property">"billing_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"terms"</span><span class="token operator">:</span> <span class="token string">"Terms and Conditions"</span><span class="token punctuation">,</span> <span class="token property">"ship_via"</span><span class="token operator">:</span> <span class="token string">"FedEx"</span><span class="token punctuation">,</span> <span class="token property">"ship_via_id"</span><span class="token operator">:</span> <span class="token number">4815000000044822</span><span class="token punctuation">,</span> <span class="token property">"attention"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_org_address_id"</span><span class="token operator">:</span> <span class="token number">4815000000044077</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_id"</span><span class="token operator">:</span> <span class="token number">4815000000044066</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_name"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"attachment_name"</span><span class="token operator">:</span> <span class="token string">"sample.pdf"</span><span class="token punctuation">,</span> <span class="token property">"can_send_in_mail"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"template_id"</span><span class="token operator">:</span> <span class="token number">4815000000017003</span><span class="token punctuation">,</span> <span class="token property">"template_name"</span><span class="token operator">:</span> <span class="token string">"Standard"</span><span class="token punctuation">,</span> <span class="token property">"template_type"</span><span class="token operator">:</span> <span class="token string">"standard"</span><span class="token punctuation">,</span> <span class="token property">"created_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"last_modified_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"purchasereceives"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"receive_id"</span><span class="token operator">:</span> <span class="token number">4815000000045035</span><span class="token punctuation">,</span> <span class="token property">"receive_number"</span><span class="token operator">:</span> <span class="token string">"PR-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"bills"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"bill_id"</span><span class="token operator">:</span> <span class="token number">4815000000045067</span><span class="token punctuation">,</span> <span class="token property">"bill_number"</span><span class="token operator">:</span> <span class="token string">"BL-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"due_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-28"</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"balance"</span><span class="token operator">:</span> <span class="token number">100</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"gst_treatment"</span><span class="token operator">:</span> <span class="token string">"business_gst"</span><span class="token punctuation">,</span> <span class="token property">"gst_no"</span><span class="token operator">:</span> <span class="token string">"22AAAAA0000A1Z5"</span><span class="token punctuation">,</span> <span class="token property">"source_of_supply"</span><span class="token operator">:</span> <span class="token string">"AP"</span><span class="token punctuation">,</span> <span class="token property">"destination_of_supply"</span><span class="token operator">:</span> <span class="token string">"TN"</span><span class="token punctuation">,</span> <span class="token property">"is_pre_gst"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"is_reverse_charge_applied"</span><span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> </div> <div class="divider"></div> <div class="wrapper"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h2 id="create-a-purchase-order" class="scroll-observer pt-70">Create a Purchase Order</h2> <p> Creates a new Purchase Order in Zoho Inventory. Description about extra parameter ignore_auto_number_generation - Ignore auto purchase order number generation for this Purchase order. This mandates the Purchase Order number to be entered. Allowed Values <code>true</code> and <code>false</code>. <br> <code>OAuth Scope : <span class="oauth-scope">ZohoInventory.purchaseorders.CREATE</span></code> </p> <h3 id="arguments" class="properties"> Arguments </h3> <div class="parameter"> <div class="row" id=create-a-purchase-order-purchaseorder_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchaseorder_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Required"> (Required) </div> </div> <div class="prop-descrip">Purchase Order number.</div> </div> </div> <div class="row" id=create-a-purchase-order-date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Date of Purchase Order</div> </div> </div> <div class="row" id=create-a-purchase-order-delivery_date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Date of delivery of the product.</div> </div> </div> <div class="row" id=create-a-purchase-order-reference_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reference_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Reference number of purchase order.</div> </div> </div> <div class="row" id=create-a-purchase-order-ship_via> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> ship_via </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Shipping method for the Purchase Order.</div> </div> </div> <div class="row" id=create-a-purchase-order-vendor_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> vendor_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Required"> (Required) </div> </div> <div class="prop-descrip">Unique ID generated by the server for the vendor.</div> </div> </div> <div class="row" id=create-a-purchase-order-salesorder_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> salesorder_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Sales Order ID, in case of Drop Shipment.</div> </div> </div> <div class="row" id=create-a-purchase-order-is_drop_shipment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_drop_shipment </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Default is <code>FALSE</code>, in case of drop shipment value must be <code>TRUE</code>.</div> </div> </div> <div class="row" id=create-a-purchase-order-is_inclusive_tax> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_inclusive_tax </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates whether the tax is inclusive or not.</div> </div> </div> <div class="row" id=create-a-purchase-order-is_backorder> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_backorder </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates whether it is a Back order or not.</div> </div> </div> <div class="row" id=create-a-purchase-order-template_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> template_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the Template. This is used as an identifier.</div> </div> </div> <div class="row" id=create-a-purchase-order-contact_persons> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> contact_persons </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Array of contact person IDs.</div> </div> </div> <div class="row" id=create-a-purchase-order-attention> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> attention </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the person, whose attention is required.</div> </div> </div> <div class="row" id=create-a-purchase-order-delivery_org_address_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_org_address_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server. This is used as identifier.</div> </div> </div> <div class="row" id=create-a-purchase-order-delivery_customer_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_customer_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Customer ID for delivery address</div> </div> </div> <div class="row" id=create-a-purchase-order-notes> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> notes </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Notes for the Purchase Order.</div> </div> </div> <div class="row" id=create-a-purchase-order-terms> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> terms </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Terms for the Purchase Order.</div> </div> </div> <div class="row" id=create-a-purchase-order-exchange_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> exchange_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Exchange rate of the currency, with respect to the base currency.</div> </div> </div> <div class="row" id=create-a-purchase-order-custom_fields> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> custom_fields </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Custom fields for a purchaseorder.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=create-a-purchase-order-custom_fields-customfield_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> customfield_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-custom_fields-value> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> value </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Value of the Custom Field</div> </div> </div> </div> </details> </div> </div> <div class="row" id=create-a-purchase-order-line_items> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> line_items </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Required"> (Required) </div> </div> <div class="prop-descrip">List of line items in a purchase order</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=create-a-purchase-order-line_items-item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-account_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> account_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Account ID of the item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-description> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> description </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Description of the line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-item_order> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_order </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The order of the line items, starts from <code>0</code> by default.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-bcy_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> bcy_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Item rate in the organization's base currency.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-purchase_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchase_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Purchase Price of the line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-quantity> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity of the line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-quantity_received> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity_received </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity invoiced of the line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-unit> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> unit </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unit of line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-item_total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Total of line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the tax. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-tds_tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tds_tax_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-tax_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the tax applied on the line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-tax_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Denotes the type of the tax. This can either be a single tax or a tax group.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-tax_percentage> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_percentage </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Percentage of the tax.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-image_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_id </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item image. This is used an identifier.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-image_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the image of the line item.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-image_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The type (file format) of the image.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-reverse_charge_tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Enter reverse charge tax ID</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-hsn_or_sac> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> hsn_or_sac </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">HSN or SAC Code for the Item</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-tax_exemption_code> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_code </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Code of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-warehouse_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> warehouse_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the ware houses</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-tax_exemption_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">ID of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-line_items-salesorder_item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> salesorder_item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for each line item in a sales order. This is used for creating backorder or dropshipment</div> </div> </div> </div> </details> </div> </div> <div class="row" id=create-a-purchase-order-documents> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> documents </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">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>.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=create-a-purchase-order-documents-can_send_in_mail> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> can_send_in_mail </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Checks whether it can be sent in a mail or not.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-documents-file_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the name of the file.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-documents-file_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the type of the file.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-documents-file_size_formatted> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_size_formatted </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the size of the formatted file.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-documents-attachment_order> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> attachment_order </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">This indicates the chronological number of the attachment.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-documents-document_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> document_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the document. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=create-a-purchase-order-documents-file_size> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> file_size </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">this indicates the size of the attached file.</div> </div> </div> </div> </details> </div> </div> <div class="row" id=create-a-purchase-order-gst_treatment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> gst_treatment </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Choose whether the contact is GST registered/unregistered/consumer/overseas. Allowed values are <code> business_gst </code> , <code> business_none </code> , <code> overseas </code> , <code> consumer </code>.</div> </div> </div> <div class="row" id=create-a-purchase-order-tax_treatment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_treatment </div> <div class="property-datatype"> </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">VAT treatment for the purchase order. Choose whether the vendor falls under: <code>home_country_mexico</code>,<code>border_region_mexico</code>,<code>non_mexico</code> supported only for <b>MX</b>.</div> </div> </div> <div class="row" id=create-a-purchase-order-gst_no> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> gst_no </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">15 digit GST identification number of the vendor.</div> </div> </div> <div class="row" id=create-a-purchase-order-source_of_supply> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> source_of_supply </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Place from where the goods/services are supplied. (If not given, <code>place of contact</code> given for the contact will be taken)</div> </div> </div> <div class="row" id=create-a-purchase-order-destination_of_supply> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> destination_of_supply </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Place where the goods/services are supplied to. (If not given, organisation's home state will be taken)</div> </div> </div> </div> <h3 id="queryparams" class="properties"> Query Parameters </h3> <div class="parameter"> <div class="row" id=create-a-purchase-order-ignore_auto_number_generation> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> ignore_auto_number_generation </div> <div class="property-datatype"> </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Ignore auto purchase order number generation for this purchase order. This mandates the purchase order number. Allowed values are <code> true </code> , <code> false </code>.</div> </div> </div> </div> </div> <div class="flex-wrapper-right request-top pt-70"> <div class="request-topbar"> <p> Request Example </p> <div class="ml-auto d-flex align-items-center"> <div class="dropdown-container"> <button role="button" class="dropdown-btn" onclick="dropDownClicked(this)"></button> <div class="dropdown-content d-none"> <ul class="m-3 pl-0 list-none"> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;cURL&quot;,&quot;id&quot;:&quot;shell_curl&quot;})">cURL</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Deluge&quot;,&quot;id&quot;:&quot;deluge&quot;})">Deluge</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Java&quot;,&quot;id&quot;:&quot;java_okhttp&quot;})">Java</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Node.js&quot;,&quot;id&quot;:&quot;node_native&quot;})">Node.js</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Javascript&quot;,&quot;id&quot;:&quot;javascript_fetch&quot;})">Javascript</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Python&quot;,&quot;id&quot;:&quot;python_python3&quot;})">Python</button> </li> </ul> </div> </div> <div class="tooltiptext"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('snippet_create-a-purchase-order',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> </div> <div class="codebag codebag-code code-snippets" data-simplebar > <div class="deluge d-none"> <code data-snippet-id="deluge_create-a-purchase-order">parameters_data<span class="token operator">=</span><span class="token string">'{"field1":"value1","field2":"value2"}'</span><span class="token punctuation">;</span> headers_data <span class="token operator">=</span> <span class="token function">Map</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> headers_data<span class="token operator">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token operator">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> response <span class="token operator">=</span> <span class="token keyword">invokeUrl</span> <span class="token punctuation">[</span> <span class="token property">url</span><span class="token punctuation">:</span> <span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695"</span> <span class="token property">type</span><span class="token punctuation">:</span> <span class="token keyword">POST</span> <span class="token property">headers</span><span class="token punctuation">:</span> headers_data <span class="token property">content-type</span><span class="token punctuation">:</span> application<span class="token operator">/</span>json <span class="token property">parameters</span><span class="token punctuation">:</span> parameters_data <span class="token property">connection</span><span class="token punctuation">:</span> <span class="token operator">&lt;</span>connection_name<span class="token operator">></span> <span class="token punctuation">]</span> <span class="token keyword">info</span> response<span class="token punctuation">;</span></code> </div> <div class="java_okhttp d-none"> <code data-snippet-id="java_okhttp_create-a-purchase-order"><span class="token class-name">OkHttpClient</span> client <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">OkHttpClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">MediaType</span> mediaType <span class="token operator">=</span> <span class="token class-name">MediaType</span><span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">"application/json"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">RequestBody</span> body <span class="token operator">=</span> <span class="token class-name">RequestBody</span><span class="token punctuation">.</span><span class="token function">create</span><span class="token punctuation">(</span>mediaType<span class="token punctuation">,</span> <span class="token string">"{\"field1\":\"value1\",\"field2\":\"value2\"}"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Request</span> request <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Request<span class="token punctuation">.</span>Builder</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">url</span><span class="token punctuation">(</span><span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">post</span><span class="token punctuation">(</span>body<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token punctuation">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"content-type"</span><span class="token punctuation">,</span> <span class="token string">"application/json"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Response</span> response <span class="token operator">=</span> client<span class="token punctuation">.</span><span class="token function">newCall</span><span class="token punctuation">(</span>request<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="javascript_fetch d-none"> <code data-snippet-id="javascript_fetch_create-a-purchase-order"><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token literal-property property">method</span><span class="token operator">:</span> <span class="token string">'POST'</span><span class="token punctuation">,</span> <span class="token literal-property property">headers</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token literal-property property">Authorization</span><span class="token operator">:</span> <span class="token string">'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span><span class="token punctuation">,</span> <span class="token string-property property">'content-type'</span><span class="token operator">:</span> <span class="token string">'application/json'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token literal-property property">body</span><span class="token operator">:</span> <span class="token string">'{"field1":"value1","field2":"value2"}'</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token function">fetch</span><span class="token punctuation">(</span><span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695'</span><span class="token punctuation">,</span> options<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> response<span class="token punctuation">.</span><span class="token function">json</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>response<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="python_python3 d-none"> <code data-snippet-id="python_python3_create-a-purchase-order"><span class="token keyword">import</span> http<span class="token punctuation">.</span>client conn <span class="token operator">=</span> http<span class="token punctuation">.</span>client<span class="token punctuation">.</span>HTTPSConnection<span class="token punctuation">(</span><span class="token string">"www.zohoapis.com"</span><span class="token punctuation">)</span> payload <span class="token operator">=</span> <span class="token string">"{\"field1\":\"value1\",\"field2\":\"value2\"}"</span> headers <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string">'Authorization'</span><span class="token punctuation">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">,</span> <span class="token string">'content-type'</span><span class="token punctuation">:</span> <span class="token string">"application/json"</span> <span class="token punctuation">}</span> conn<span class="token punctuation">.</span>request<span class="token punctuation">(</span><span class="token string">"POST"</span><span class="token punctuation">,</span> <span class="token string">"/inventory/v1/purchaseorders?organization_id=10234695"</span><span class="token punctuation">,</span> payload<span class="token punctuation">,</span> headers<span class="token punctuation">)</span> res <span class="token operator">=</span> conn<span class="token punctuation">.</span>getresponse<span class="token punctuation">(</span><span class="token punctuation">)</span> data <span class="token operator">=</span> res<span class="token punctuation">.</span>read<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">print</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>decode<span class="token punctuation">(</span><span class="token string">"utf-8"</span><span class="token punctuation">)</span><span class="token punctuation">)</span></code> </div> <div class="node_native d-none"> <code data-snippet-id="node_native_create-a-purchase-order"><span class="token keyword">const</span> http <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">"https"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string-property property">"method"</span><span class="token operator">:</span> <span class="token string">"POST"</span><span class="token punctuation">,</span> <span class="token string-property property">"hostname"</span><span class="token operator">:</span> <span class="token string">"www.zohoapis.com"</span><span class="token punctuation">,</span> <span class="token string-property property">"port"</span><span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token string-property property">"path"</span><span class="token operator">:</span> <span class="token string">"/inventory/v1/purchaseorders?organization_id=10234695"</span><span class="token punctuation">,</span> <span class="token string-property property">"headers"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token string-property property">"Authorization"</span><span class="token operator">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">,</span> <span class="token string-property property">"content-type"</span><span class="token operator">:</span> <span class="token string">"application/json"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token keyword">const</span> req <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">request</span><span class="token punctuation">(</span>options<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> chunks <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"data"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">chunk</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> chunks<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>chunk<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"end"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> body <span class="token operator">=</span> Buffer<span class="token punctuation">.</span><span class="token function">concat</span><span class="token punctuation">(</span>chunks<span class="token punctuation">)</span><span class="token punctuation">;</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>body<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">write</span><span class="token punctuation">(</span><span class="token constant">JSON</span><span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">field1</span><span class="token operator">:</span> <span class="token string">'value1'</span><span class="token punctuation">,</span> <span class="token literal-property property">field2</span><span class="token operator">:</span> <span class="token string">'value2'</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">end</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="shell_curl d-none"> <code data-snippet-id="shell_curl_create-a-purchase-order"><span class="token function">curl</span> <span class="token parameter variable">--request</span> POST <span class="token punctuation">\</span> <span class="token parameter variable">--url</span> <span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'content-type: application/json'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--data</span> <span class="token string">'{"field1":"value1","field2":"value2"}'</span></code> </div> </div> <div class="request-topbar mt-60"> <p> Body Parameters </p> <div class="tooltiptext ml-auto"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('params_create-a-purchase-order',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> <div class="codebag codebag-code" data-simplebar> <div class="codesnippets" style="display: inline;"> <code data-snippet-id="params_create-a-purchase-order"><span class="token punctuation">{</span> <span class="token property">"purchaseorder_number"</span><span class="token operator">:</span> <span class="token string">"PO-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-01"</span><span class="token punctuation">,</span> <span class="token property">"reference_number"</span><span class="token operator">:</span> <span class="token string">"REF-P-00002"</span><span class="token punctuation">,</span> <span class="token property">"ship_via"</span><span class="token operator">:</span> <span class="token string">"FedEx"</span><span class="token punctuation">,</span> <span class="token property">"vendor_id"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"salesorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044936</span><span class="token punctuation">,</span> <span class="token property">"is_drop_shipment"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"is_inclusive_tax"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"is_backorder"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"template_id"</span><span class="token operator">:</span> <span class="token number">4815000000017003</span><span class="token punctuation">,</span> <span class="token property">"contact_persons"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"attention"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_org_address_id"</span><span class="token operator">:</span> <span class="token number">4815000000044077</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_id"</span><span class="token operator">:</span> <span class="token number">4815000000044066</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"terms"</span><span class="token operator">:</span> <span class="token string">"Terms and Conditions"</span><span class="token punctuation">,</span> <span class="token property">"exchange_rate"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"custom_fields"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"customfield_id"</span><span class="token operator">:</span> <span class="token string">"46000000012845"</span><span class="token punctuation">,</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"Normal"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"documents"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"can_send_in_mail"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"file_name"</span><span class="token operator">:</span> <span class="token string">"sample.pdf"</span><span class="token punctuation">,</span> <span class="token property">"file_type"</span><span class="token operator">:</span> <span class="token string">"pdf"</span><span class="token punctuation">,</span> <span class="token property">"file_size_formatted"</span><span class="token operator">:</span> <span class="token string">"116.8 KB"</span><span class="token punctuation">,</span> <span class="token property">"attachment_order"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"document_id"</span><span class="token operator">:</span> <span class="token number">16115000000096068</span><span class="token punctuation">,</span> <span class="token property">"file_size"</span><span class="token operator">:</span> <span class="token number">11957</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"gst_treatment"</span><span class="token operator">:</span> <span class="token string">"business_gst"</span><span class="token punctuation">,</span> <span class="token property">"tax_treatment"</span><span class="token operator">:</span> <span class="token string">"vat_registered"</span><span class="token punctuation">,</span> <span class="token property">"gst_no"</span><span class="token operator">:</span> <span class="token string">"22AAAAA0000A1Z5"</span><span class="token punctuation">,</span> <span class="token property">"source_of_supply"</span><span class="token operator">:</span> <span class="token string">"AP"</span><span class="token punctuation">,</span> <span class="token property">"destination_of_supply"</span><span class="token operator">:</span> <span class="token string">"TN"</span> <span class="token punctuation">}</span></code> </div> </div> <p class="response-topbar mt-60"> Response Example </p> <div class="responsebg pd-bottom" data-simplebar> <code><span class="token punctuation">{</span> <span class="token property">"code"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"success"</span><span class="token punctuation">,</span> <span class="token property">"purchase_order"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token property">"purchaseorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044972</span><span class="token punctuation">,</span> <span class="token property">"documents"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"can_send_in_mail"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"file_name"</span><span class="token operator">:</span> <span class="token string">"sample.pdf"</span><span class="token punctuation">,</span> <span class="token property">"file_type"</span><span class="token operator">:</span> <span class="token string">"pdf"</span><span class="token punctuation">,</span> <span class="token property">"file_size_formatted"</span><span class="token operator">:</span> <span class="token string">"116.8 KB"</span><span class="token punctuation">,</span> <span class="token property">"attachment_order"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"document_id"</span><span class="token operator">:</span> <span class="token number">16115000000096068</span><span class="token punctuation">,</span> <span class="token property">"file_size"</span><span class="token operator">:</span> <span class="token number">11957</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"purchaseorder_number"</span><span class="token operator">:</span> <span class="token string">"PO-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"expected_delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"date_formatted"</span><span class="token operator">:</span> <span class="token string">"2015/05/28"</span><span class="token punctuation">,</span> <span class="token property">"expected_delivery_date_formatted"</span><span class="token operator">:</span> <span class="token string">"2015/05/28"</span><span class="token punctuation">,</span> <span class="token property">"delivery_date_formatted"</span><span class="token operator">:</span> <span class="token string">"2015/05/28"</span><span class="token punctuation">,</span> <span class="token property">"status_formatted"</span><span class="token operator">:</span> <span class="token string">"Draft"</span><span class="token punctuation">,</span> <span class="token property">"billed_status"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"is_emailed"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"is_inclusive_tax"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"is_backorder"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"reference_number"</span><span class="token operator">:</span> <span class="token string">"REF-P-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"vendor_id"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"vendor_name"</span><span class="token operator">:</span> <span class="token string">"Molly"</span><span class="token punctuation">,</span> <span class="token property">"contact_persons"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"comments"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"comment_id"</span><span class="token operator">:</span> <span class="token number">16115000000097016</span><span class="token punctuation">,</span> <span class="token property">"purchaseorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044972</span><span class="token punctuation">,</span> <span class="token property">"commented_by"</span><span class="token operator">:</span> <span class="token string">"John"</span><span class="token punctuation">,</span> <span class="token property">"comment_type"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"date_description"</span><span class="token operator">:</span> <span class="token string">"few seconds ago"</span><span class="token punctuation">,</span> <span class="token property">"time"</span><span class="token operator">:</span> <span class="token string">"2:18 PM"</span><span class="token punctuation">,</span> <span class="token property">"operation_type"</span><span class="token operator">:</span> <span class="token string">"Updated"</span><span class="token punctuation">,</span> <span class="token property">"transaction_id"</span><span class="token operator">:</span> <span class="token number">1232423434</span><span class="token punctuation">,</span> <span class="token property">"transaction_type"</span><span class="token operator">:</span> <span class="token string">"purchaseorder"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"currency_id"</span><span class="token operator">:</span> <span class="token number">4815000000000097</span><span class="token punctuation">,</span> <span class="token property">"currency_code"</span><span class="token operator">:</span> <span class="token string">"USD"</span><span class="token punctuation">,</span> <span class="token property">"currency_symbol"</span><span class="token operator">:</span> <span class="token string">"$"</span><span class="token punctuation">,</span> <span class="token property">"exchange_rate"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-01"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044936</span><span class="token punctuation">,</span> <span class="token property">"is_drop_shipment"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"custom_fields"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"customfield_id"</span><span class="token operator">:</span> <span class="token string">"46000000012845"</span><span class="token punctuation">,</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"Normal"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"sub_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"sub_total_formatted"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_total"</span><span class="token operator">:</span> <span class="token number">29</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"taxes"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_amount"</span><span class="token operator">:</span> <span class="token number">29</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"price_precision"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"pricebook_id"</span><span class="token operator">:</span> <span class="token number">4815000000044054</span><span class="token punctuation">,</span> <span class="token property">"billing_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"terms"</span><span class="token operator">:</span> <span class="token string">"Terms and Conditions"</span><span class="token punctuation">,</span> <span class="token property">"ship_via"</span><span class="token operator">:</span> <span class="token string">"FedEx"</span><span class="token punctuation">,</span> <span class="token property">"ship_via_id"</span><span class="token operator">:</span> <span class="token number">4815000000044822</span><span class="token punctuation">,</span> <span class="token property">"attention"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_org_address_id"</span><span class="token operator">:</span> <span class="token number">4815000000044077</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_id"</span><span class="token operator">:</span> <span class="token number">4815000000044066</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_name"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"attachment_name"</span><span class="token operator">:</span> <span class="token string">"sample.pdf"</span><span class="token punctuation">,</span> <span class="token property">"can_send_in_mail"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"template_id"</span><span class="token operator">:</span> <span class="token number">4815000000017003</span><span class="token punctuation">,</span> <span class="token property">"template_name"</span><span class="token operator">:</span> <span class="token string">"Standard"</span><span class="token punctuation">,</span> <span class="token property">"template_type"</span><span class="token operator">:</span> <span class="token string">"standard"</span><span class="token punctuation">,</span> <span class="token property">"created_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"last_modified_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"purchasereceives"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"receive_id"</span><span class="token operator">:</span> <span class="token number">4815000000045035</span><span class="token punctuation">,</span> <span class="token property">"receive_number"</span><span class="token operator">:</span> <span class="token string">"PR-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"bills"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"bill_id"</span><span class="token operator">:</span> <span class="token number">4815000000045067</span><span class="token punctuation">,</span> <span class="token property">"bill_number"</span><span class="token operator">:</span> <span class="token string">"BL-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"due_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-28"</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"balance"</span><span class="token operator">:</span> <span class="token number">100</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"gst_treatment"</span><span class="token operator">:</span> <span class="token string">"business_gst"</span><span class="token punctuation">,</span> <span class="token property">"gst_no"</span><span class="token operator">:</span> <span class="token string">"22AAAAA0000A1Z5"</span><span class="token punctuation">,</span> <span class="token property">"source_of_supply"</span><span class="token operator">:</span> <span class="token string">"AP"</span><span class="token punctuation">,</span> <span class="token property">"destination_of_supply"</span><span class="token operator">:</span> <span class="token string">"TN"</span><span class="token punctuation">,</span> <span class="token property">"is_pre_gst"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"is_reverse_charge_applied"</span><span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> <div class="divider"></div> <div class="wrapper"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h2 id="list-all-purchase-orders" class="scroll-observer pt-70">List all Purchase Orders</h2> <p> Lists all the Purchase Orders present in Zoho Inventory. <br> <code>OAuth Scope : <span class="oauth-scope">ZohoInventory.purchaseorders.READ</span></code> </p> </div> <div class="flex-wrapper-right request-top pt-70"> <div class="request-topbar"> <p> Request Example </p> <div class="ml-auto d-flex align-items-center"> <div class="dropdown-container"> <button role="button" class="dropdown-btn" onclick="dropDownClicked(this)"></button> <div class="dropdown-content d-none"> <ul class="m-3 pl-0 list-none"> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;cURL&quot;,&quot;id&quot;:&quot;shell_curl&quot;})">cURL</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Deluge&quot;,&quot;id&quot;:&quot;deluge&quot;})">Deluge</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Java&quot;,&quot;id&quot;:&quot;java_okhttp&quot;})">Java</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Node.js&quot;,&quot;id&quot;:&quot;node_native&quot;})">Node.js</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Javascript&quot;,&quot;id&quot;:&quot;javascript_fetch&quot;})">Javascript</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Python&quot;,&quot;id&quot;:&quot;python_python3&quot;})">Python</button> </li> </ul> </div> </div> <div class="tooltiptext"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('snippet_list-all-purchase-orders',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> </div> <div class="codebag codebag-code code-snippets" data-simplebar > <div class="deluge d-none"> <code data-snippet-id="deluge_list-all-purchase-orders">headers_data <span class="token operator">=</span> <span class="token function">Map</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> headers_data<span class="token operator">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token operator">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> response <span class="token operator">=</span> <span class="token keyword">invokeUrl</span> <span class="token punctuation">[</span> <span class="token property">url</span><span class="token punctuation">:</span> <span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695"</span> <span class="token property">type</span><span class="token punctuation">:</span> <span class="token keyword">GET</span> <span class="token property">headers</span><span class="token punctuation">:</span> headers_data <span class="token property">connection</span><span class="token punctuation">:</span> <span class="token operator">&lt;</span>connection_name<span class="token operator">></span> <span class="token punctuation">]</span> <span class="token keyword">info</span> response<span class="token punctuation">;</span></code> </div> <div class="java_okhttp d-none"> <code data-snippet-id="java_okhttp_list-all-purchase-orders"><span class="token class-name">OkHttpClient</span> client <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">OkHttpClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Request</span> request <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Request<span class="token punctuation">.</span>Builder</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">url</span><span class="token punctuation">(</span><span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token punctuation">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Response</span> response <span class="token operator">=</span> client<span class="token punctuation">.</span><span class="token function">newCall</span><span class="token punctuation">(</span>request<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="javascript_fetch d-none"> <code data-snippet-id="javascript_fetch_list-all-purchase-orders"><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token literal-property property">method</span><span class="token operator">:</span> <span class="token string">'GET'</span><span class="token punctuation">,</span> <span class="token literal-property property">headers</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token literal-property property">Authorization</span><span class="token operator">:</span> <span class="token string">'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token function">fetch</span><span class="token punctuation">(</span><span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695'</span><span class="token punctuation">,</span> options<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> response<span class="token punctuation">.</span><span class="token function">json</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>response<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="python_python3 d-none"> <code data-snippet-id="python_python3_list-all-purchase-orders"><span class="token keyword">import</span> http<span class="token punctuation">.</span>client conn <span class="token operator">=</span> http<span class="token punctuation">.</span>client<span class="token punctuation">.</span>HTTPSConnection<span class="token punctuation">(</span><span class="token string">"www.zohoapis.com"</span><span class="token punctuation">)</span> headers <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string">'Authorization'</span><span class="token punctuation">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> conn<span class="token punctuation">.</span>request<span class="token punctuation">(</span><span class="token string">"GET"</span><span class="token punctuation">,</span> <span class="token string">"/inventory/v1/purchaseorders?organization_id=10234695"</span><span class="token punctuation">,</span> headers<span class="token operator">=</span>headers<span class="token punctuation">)</span> res <span class="token operator">=</span> conn<span class="token punctuation">.</span>getresponse<span class="token punctuation">(</span><span class="token punctuation">)</span> data <span class="token operator">=</span> res<span class="token punctuation">.</span>read<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">print</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>decode<span class="token punctuation">(</span><span class="token string">"utf-8"</span><span class="token punctuation">)</span><span class="token punctuation">)</span></code> </div> <div class="node_native d-none"> <code data-snippet-id="node_native_list-all-purchase-orders"><span class="token keyword">const</span> http <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">"https"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string-property property">"method"</span><span class="token operator">:</span> <span class="token string">"GET"</span><span class="token punctuation">,</span> <span class="token string-property property">"hostname"</span><span class="token operator">:</span> <span class="token string">"www.zohoapis.com"</span><span class="token punctuation">,</span> <span class="token string-property property">"port"</span><span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token string-property property">"path"</span><span class="token operator">:</span> <span class="token string">"/inventory/v1/purchaseorders?organization_id=10234695"</span><span class="token punctuation">,</span> <span class="token string-property property">"headers"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token string-property property">"Authorization"</span><span class="token operator">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token keyword">const</span> req <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">request</span><span class="token punctuation">(</span>options<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> chunks <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"data"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">chunk</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> chunks<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>chunk<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"end"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> body <span class="token operator">=</span> Buffer<span class="token punctuation">.</span><span class="token function">concat</span><span class="token punctuation">(</span>chunks<span class="token punctuation">)</span><span class="token punctuation">;</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>body<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">end</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="shell_curl d-none"> <code data-snippet-id="shell_curl_list-all-purchase-orders"><span class="token function">curl</span> <span class="token parameter variable">--request</span> GET <span class="token punctuation">\</span> <span class="token parameter variable">--url</span> <span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=10234695'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span></code> </div> </div> <p class="response-topbar mt-60"> Response Example </p> <div class="responsebg pd-bottom" data-simplebar> <code><span class="token punctuation">{</span> <span class="token property">"code"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"success"</span><span class="token punctuation">,</span> <span class="token property">"purchaseorders"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"purchaseorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044972</span><span class="token punctuation">,</span> <span class="token property">"vendor_id"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"vendor_name"</span><span class="token operator">:</span> <span class="token string">"Molly"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"purchaseorder_number"</span><span class="token operator">:</span> <span class="token string">"PO-00002"</span><span class="token punctuation">,</span> <span class="token property">"reference_number"</span><span class="token operator">:</span> <span class="token string">"REF-P-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-01"</span><span class="token punctuation">,</span> <span class="token property">"currency_id"</span><span class="token operator">:</span> <span class="token number">4815000000000097</span><span class="token punctuation">,</span> <span class="token property">"currency_code"</span><span class="token operator">:</span> <span class="token string">"USD"</span><span class="token punctuation">,</span> <span class="token property">"price_precision"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"custom_fields"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"customfield_id"</span><span class="token operator">:</span> <span class="token string">"46000000012845"</span><span class="token punctuation">,</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"Normal"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"created_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"last_modified_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"is_drop_shipment"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"is_backorder"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"receives"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"receive_id"</span><span class="token operator">:</span> <span class="token number">4815000000045035</span><span class="token punctuation">,</span> <span class="token property">"receive_number"</span><span class="token operator">:</span> <span class="token string">"PR-00002"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span>...<span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span>...<span class="token punctuation">}</span> <span class="token punctuation">]</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> <div class="divider"></div> <div class="wrapper"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h2 id="update-a-purchase-order" class="scroll-observer pt-70">Update a Purchase Order</h2> <p> Updates a new Purchase Order in Zoho Inventory. Description about extra parameter ignore_auto_number_generation - Ignore auto Purchase order number generation for this Purchase Order. This mandates the Purchase Order number to be entered. Allowed Values <code>true</code> and <code>false</code>. <br> <code>OAuth Scope : <span class="oauth-scope">ZohoInventory.purchaseorders.UPDATE</span></code> </p> <h3 id="arguments" class="properties"> Arguments </h3> <div class="parameter"> <div class="row" id=update-a-purchase-order-purchaseorder_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchaseorder_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Required"> (Required) </div> </div> <div class="prop-descrip">Purchase Order number.</div> </div> </div> <div class="row" id=update-a-purchase-order-date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Date of Purchase Order</div> </div> </div> <div class="row" id=update-a-purchase-order-expected_delivery_date> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> expected_delivery_date </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Expected date of delivery for the items ordered.</div> </div> </div> <div class="row" id=update-a-purchase-order-reference_number> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reference_number </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Reference number of purchase order.</div> </div> </div> <div class="row" id=update-a-purchase-order-ship_via> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> ship_via </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Shipping method for the Purchase Order.</div> </div> </div> <div class="row" id=update-a-purchase-order-vendor_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> vendor_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Required"> (Required) </div> </div> <div class="prop-descrip">Unique ID generated by the server for the vendor.</div> </div> </div> <div class="row" id=update-a-purchase-order-salesorder_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> salesorder_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Sales Order ID, in case of Drop Shipment.</div> </div> </div> <div class="row" id=update-a-purchase-order-is_drop_shipment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> is_drop_shipment </div> <div class="property-datatype"> boolean </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Default is <code>FALSE</code>, in case of drop shipment value must be <code>TRUE</code>.</div> </div> </div> <div class="row" id=update-a-purchase-order-contact_persons> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> contact_persons </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Array of contact person IDs.</div> </div> </div> <div class="row" id=update-a-purchase-order-attention> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> attention </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the person, whose attention is required.</div> </div> </div> <div class="row" id=update-a-purchase-order-delivery_org_address_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_org_address_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server. This is used as identifier.</div> </div> </div> <div class="row" id=update-a-purchase-order-delivery_customer_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> delivery_customer_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Customer ID for delivery address</div> </div> </div> <div class="row" id=update-a-purchase-order-notes> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> notes </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Notes for the Purchase Order.</div> </div> </div> <div class="row" id=update-a-purchase-order-terms> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> terms </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Terms for the Purchase Order.</div> </div> </div> <div class="row" id=update-a-purchase-order-exchange_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> exchange_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Exchange rate of the currency, with respect to the base currency.</div> </div> </div> <div class="row" id=update-a-purchase-order-custom_fields> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> custom_fields </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Custom fields for a purchaseorder.</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=update-a-purchase-order-custom_fields-customfield_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> customfield_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-custom_fields-value> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> value </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Value of the Custom Field</div> </div> </div> </div> </details> </div> </div> <div class="row" id=update-a-purchase-order-line_items> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> line_items </div> <div class="property-datatype"> array </div> <div class="property-kind" id="Required"> (Required) </div> </div> <div class="prop-descrip">List of line items in a purchase order</div> <details> <summary class="link"> <span class="show-hide-attribute-text" data-showhide="Show Sub-Attributes">Show Sub-Attributes</span> <img src="/inventory/api/v1/images/dropdown-arrow.svg" class="arrow-icon" alt="arrow" width="9px" height="9px"/> </span> </summary> <div class=attribute-wrapper> <div class="row attribute small-line" id=update-a-purchase-order-line_items-item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-line_item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> line_item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for each line item. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-account_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> account_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Account ID of the item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-description> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> description </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Description of the line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-item_order> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_order </div> <div class="property-datatype"> integer </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The order of the line items, starts from <code>0</code> by default.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-bcy_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> bcy_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Item rate in the organization's base currency.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-purchase_rate> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> purchase_rate </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Purchase Price of the line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-quantity> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity of the line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-quantity_received> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> quantity_received </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Quantity invoiced of the line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-unit> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> unit </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unit of line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-item_total> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> item_total </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Total of line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the tax. This is used as an identifier.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-tax_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the tax applied on the line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-tax_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Denotes the type of the tax. This can either be a single tax or a tax group.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-tax_percentage> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_percentage </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Percentage of the tax.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-image_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_id </div> <div class="property-datatype"> double </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the item image. This is used an identifier.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-image_name> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_name </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Name of the image of the line item.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-image_type> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> image_type </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">The type (file format) of the image.</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-reverse_charge_tax_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> reverse_charge_tax_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Enter reverse charge tax ID</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-hsn_or_sac> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> hsn_or_sac </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">HSN or SAC Code for the Item</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-tax_exemption_code> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_code </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Code of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-warehouse_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> warehouse_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for the ware houses</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-tax_exemption_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_exemption_id </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚘馃嚭 <span role="tooltip" class="tooltip infoText"> Australia <div class="arrow" data-popper-arrow></div> </span> </span> <span class="separator">,</span> <span class="availability-info-wrapper">馃嚚馃嚘 <span role="tooltip" class="tooltip infoText"> Canada <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">ID of the Tax Exemption</div> </div> </div> <div class="row attribute small-line" id=update-a-purchase-order-line_items-salesorder_item_id> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> salesorder_item_id </div> <div class="property-datatype"> long </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Unique ID generated by the server for each line item in a sales order. This is used for creating backorder or dropshipment</div> </div> </div> </div> </details> </div> </div> <div class="row" id=update-a-purchase-order-gst_treatment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> gst_treatment </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Choose whether the contact is GST registered/unregistered/consumer/overseas. Allowed values are <code> business_gst </code> , <code> business_none </code> , <code> overseas </code> , <code> consumer </code>.</div> </div> </div> <div class="row" id=update-a-purchase-order-tax_treatment> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> tax_treatment </div> <div class="property-datatype"> </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚥馃嚱 <span role="tooltip" class="tooltip infoText"> Mexico <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">VAT treatment for the purchase order. Choose whether the vendor falls under: <code>home_country_mexico</code>,<code>border_region_mexico</code>,<code>non_mexico</code> supported only for <b>MX</b>.</div> </div> </div> <div class="row" id=update-a-purchase-order-gst_no> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> gst_no </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">15 digit GST identification number of the vendor.</div> </div> </div> <div class="row" id=update-a-purchase-order-source_of_supply> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> source_of_supply </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Place from where the goods/services are supplied. (If not given, <code>place of contact</code> given for the contact will be taken)</div> </div> </div> <div class="row" id=update-a-purchase-order-destination_of_supply> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> destination_of_supply </div> <div class="property-datatype"> string </div> <div class="property-kind" id="Optional"> </div> <div class='red'> <span class="availability-info-wrapper">馃嚠馃嚦 <span role="tooltip" class="tooltip infoText"> India <div class="arrow" data-popper-arrow></div> </span> </span> <span>only</span> </div> </div> <div class="prop-descrip">Place where the goods/services are supplied to. (If not given, organisation's home state will be taken)</div> </div> </div> </div> <h3 id="queryparams" class="properties"> Query Parameters </h3> <div class="parameter"> <div class="row" id=update-a-purchase-order-ignore_auto_number_generation> <div class="property-wrapper"> <div class="table-flex"> <div class="property"> ignore_auto_number_generation </div> <div class="property-datatype"> </div> <div class="property-kind" id="Optional"> </div> </div> <div class="prop-descrip">Ignore auto purchase order number generation for this purchase order. This mandates the purchase order number. Allowed values are <code> true </code> , <code> false </code>.</div> </div> </div> </div> </div> <div class="flex-wrapper-right request-top pt-70"> <div class="request-topbar"> <p> Request Example </p> <div class="ml-auto d-flex align-items-center"> <div class="dropdown-container"> <button role="button" class="dropdown-btn" onclick="dropDownClicked(this)"></button> <div class="dropdown-content d-none"> <ul class="m-3 pl-0 list-none"> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;cURL&quot;,&quot;id&quot;:&quot;shell_curl&quot;})">cURL</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Deluge&quot;,&quot;id&quot;:&quot;deluge&quot;})">Deluge</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Java&quot;,&quot;id&quot;:&quot;java_okhttp&quot;})">Java</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Node.js&quot;,&quot;id&quot;:&quot;node_native&quot;})">Node.js</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Javascript&quot;,&quot;id&quot;:&quot;javascript_fetch&quot;})">Javascript</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Python&quot;,&quot;id&quot;:&quot;python_python3&quot;})">Python</button> </li> </ul> </div> </div> <div class="tooltiptext"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('snippet_update-a-purchase-order',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> </div> <div class="codebag codebag-code code-snippets" data-simplebar > <div class="deluge d-none"> <code data-snippet-id="deluge_update-a-purchase-order">parameters_data<span class="token operator">=</span><span class="token string">'{"field1":"value1","field2":"value2"}'</span><span class="token punctuation">;</span> headers_data <span class="token operator">=</span> <span class="token function">Map</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> headers_data<span class="token operator">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token operator">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> response <span class="token operator">=</span> <span class="token keyword">invokeUrl</span> <span class="token punctuation">[</span> <span class="token property">url</span><span class="token punctuation">:</span> <span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span> <span class="token property">type</span><span class="token punctuation">:</span> <span class="token keyword">PUT</span> <span class="token property">headers</span><span class="token punctuation">:</span> headers_data <span class="token property">content-type</span><span class="token punctuation">:</span> application<span class="token operator">/</span>json <span class="token property">parameters</span><span class="token punctuation">:</span> parameters_data <span class="token property">connection</span><span class="token punctuation">:</span> <span class="token operator">&lt;</span>connection_name<span class="token operator">></span> <span class="token punctuation">]</span> <span class="token keyword">info</span> response<span class="token punctuation">;</span></code> </div> <div class="java_okhttp d-none"> <code data-snippet-id="java_okhttp_update-a-purchase-order"><span class="token class-name">OkHttpClient</span> client <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">OkHttpClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">MediaType</span> mediaType <span class="token operator">=</span> <span class="token class-name">MediaType</span><span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">"application/json"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">RequestBody</span> body <span class="token operator">=</span> <span class="token class-name">RequestBody</span><span class="token punctuation">.</span><span class="token function">create</span><span class="token punctuation">(</span>mediaType<span class="token punctuation">,</span> <span class="token string">"{\"field1\":\"value1\",\"field2\":\"value2\"}"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Request</span> request <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Request<span class="token punctuation">.</span>Builder</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">url</span><span class="token punctuation">(</span><span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span>body<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token punctuation">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"content-type"</span><span class="token punctuation">,</span> <span class="token string">"application/json"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Response</span> response <span class="token operator">=</span> client<span class="token punctuation">.</span><span class="token function">newCall</span><span class="token punctuation">(</span>request<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="javascript_fetch d-none"> <code data-snippet-id="javascript_fetch_update-a-purchase-order"><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token literal-property property">method</span><span class="token operator">:</span> <span class="token string">'PUT'</span><span class="token punctuation">,</span> <span class="token literal-property property">headers</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token literal-property property">Authorization</span><span class="token operator">:</span> <span class="token string">'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span><span class="token punctuation">,</span> <span class="token string-property property">'content-type'</span><span class="token operator">:</span> <span class="token string">'application/json'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token literal-property property">body</span><span class="token operator">:</span> <span class="token string">'{"field1":"value1","field2":"value2"}'</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token function">fetch</span><span class="token punctuation">(</span><span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695'</span><span class="token punctuation">,</span> options<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> response<span class="token punctuation">.</span><span class="token function">json</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>response<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="python_python3 d-none"> <code data-snippet-id="python_python3_update-a-purchase-order"><span class="token keyword">import</span> http<span class="token punctuation">.</span>client conn <span class="token operator">=</span> http<span class="token punctuation">.</span>client<span class="token punctuation">.</span>HTTPSConnection<span class="token punctuation">(</span><span class="token string">"www.zohoapis.com"</span><span class="token punctuation">)</span> payload <span class="token operator">=</span> <span class="token string">"{\"field1\":\"value1\",\"field2\":\"value2\"}"</span> headers <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string">'Authorization'</span><span class="token punctuation">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">,</span> <span class="token string">'content-type'</span><span class="token punctuation">:</span> <span class="token string">"application/json"</span> <span class="token punctuation">}</span> conn<span class="token punctuation">.</span>request<span class="token punctuation">(</span><span class="token string">"PUT"</span><span class="token punctuation">,</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">,</span> payload<span class="token punctuation">,</span> headers<span class="token punctuation">)</span> res <span class="token operator">=</span> conn<span class="token punctuation">.</span>getresponse<span class="token punctuation">(</span><span class="token punctuation">)</span> data <span class="token operator">=</span> res<span class="token punctuation">.</span>read<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">print</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>decode<span class="token punctuation">(</span><span class="token string">"utf-8"</span><span class="token punctuation">)</span><span class="token punctuation">)</span></code> </div> <div class="node_native d-none"> <code data-snippet-id="node_native_update-a-purchase-order"><span class="token keyword">const</span> http <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">"https"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string-property property">"method"</span><span class="token operator">:</span> <span class="token string">"PUT"</span><span class="token punctuation">,</span> <span class="token string-property property">"hostname"</span><span class="token operator">:</span> <span class="token string">"www.zohoapis.com"</span><span class="token punctuation">,</span> <span class="token string-property property">"port"</span><span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token string-property property">"path"</span><span class="token operator">:</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">,</span> <span class="token string-property property">"headers"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token string-property property">"Authorization"</span><span class="token operator">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">,</span> <span class="token string-property property">"content-type"</span><span class="token operator">:</span> <span class="token string">"application/json"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token keyword">const</span> req <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">request</span><span class="token punctuation">(</span>options<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> chunks <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"data"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">chunk</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> chunks<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>chunk<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"end"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> body <span class="token operator">=</span> Buffer<span class="token punctuation">.</span><span class="token function">concat</span><span class="token punctuation">(</span>chunks<span class="token punctuation">)</span><span class="token punctuation">;</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>body<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">write</span><span class="token punctuation">(</span><span class="token constant">JSON</span><span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">field1</span><span class="token operator">:</span> <span class="token string">'value1'</span><span class="token punctuation">,</span> <span class="token literal-property property">field2</span><span class="token operator">:</span> <span class="token string">'value2'</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">end</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="shell_curl d-none"> <code data-snippet-id="shell_curl_update-a-purchase-order"><span class="token function">curl</span> <span class="token parameter variable">--request</span> PUT <span class="token punctuation">\</span> <span class="token parameter variable">--url</span> <span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'content-type: application/json'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--data</span> <span class="token string">'{"field1":"value1","field2":"value2"}'</span></code> </div> </div> <div class="request-topbar mt-60"> <p> Body Parameters </p> <div class="tooltiptext ml-auto"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('params_update-a-purchase-order',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> <div class="codebag codebag-code" data-simplebar> <div class="codesnippets" style="display: inline;"> <code data-snippet-id="params_update-a-purchase-order"><span class="token punctuation">{</span> <span class="token property">"purchaseorder_number"</span><span class="token operator">:</span> <span class="token string">"PO-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"expected_delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"reference_number"</span><span class="token operator">:</span> <span class="token string">"REF-P-00002"</span><span class="token punctuation">,</span> <span class="token property">"ship_via"</span><span class="token operator">:</span> <span class="token string">"FedEx"</span><span class="token punctuation">,</span> <span class="token property">"vendor_id"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"salesorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044936</span><span class="token punctuation">,</span> <span class="token property">"is_drop_shipment"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"contact_persons"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"attention"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_org_address_id"</span><span class="token operator">:</span> <span class="token number">4815000000044077</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_id"</span><span class="token operator">:</span> <span class="token number">4815000000044066</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"terms"</span><span class="token operator">:</span> <span class="token string">"Terms and Conditions"</span><span class="token punctuation">,</span> <span class="token property">"exchange_rate"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"custom_fields"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"customfield_id"</span><span class="token operator">:</span> <span class="token string">"46000000012845"</span><span class="token punctuation">,</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"Normal"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"gst_treatment"</span><span class="token operator">:</span> <span class="token string">"business_gst"</span><span class="token punctuation">,</span> <span class="token property">"tax_treatment"</span><span class="token operator">:</span> <span class="token string">"vat_registered"</span><span class="token punctuation">,</span> <span class="token property">"gst_no"</span><span class="token operator">:</span> <span class="token string">"22AAAAA0000A1Z5"</span><span class="token punctuation">,</span> <span class="token property">"source_of_supply"</span><span class="token operator">:</span> <span class="token string">"AP"</span><span class="token punctuation">,</span> <span class="token property">"destination_of_supply"</span><span class="token operator">:</span> <span class="token string">"TN"</span> <span class="token punctuation">}</span></code> </div> </div> <p class="response-topbar mt-60"> Response Example </p> <div class="responsebg pd-bottom" data-simplebar> <code><span class="token punctuation">{</span> <span class="token property">"code"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"success"</span><span class="token punctuation">,</span> <span class="token property">"purchase_order"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token property">"purchaseorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044972</span><span class="token punctuation">,</span> <span class="token property">"purchaseorder_number"</span><span class="token operator">:</span> <span class="token string">"PO-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"expected_delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"reference_number"</span><span class="token operator">:</span> <span class="token string">"REF-P-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"vendor_id"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"vendor_name"</span><span class="token operator">:</span> <span class="token string">"Molly"</span><span class="token punctuation">,</span> <span class="token property">"contact_persons"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"currency_id"</span><span class="token operator">:</span> <span class="token number">4815000000000097</span><span class="token punctuation">,</span> <span class="token property">"currency_code"</span><span class="token operator">:</span> <span class="token string">"USD"</span><span class="token punctuation">,</span> <span class="token property">"currency_symbol"</span><span class="token operator">:</span> <span class="token string">"$"</span><span class="token punctuation">,</span> <span class="token property">"exchange_rate"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-01"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044936</span><span class="token punctuation">,</span> <span class="token property">"is_drop_shipment"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"custom_fields"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"customfield_id"</span><span class="token operator">:</span> <span class="token string">"46000000012845"</span><span class="token punctuation">,</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"Normal"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"sub_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_total"</span><span class="token operator">:</span> <span class="token number">29</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"taxes"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_amount"</span><span class="token operator">:</span> <span class="token number">29</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"price_precision"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"pricebook_id"</span><span class="token operator">:</span> <span class="token number">4815000000044054</span><span class="token punctuation">,</span> <span class="token property">"billing_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"terms"</span><span class="token operator">:</span> <span class="token string">"Terms and Conditions"</span><span class="token punctuation">,</span> <span class="token property">"ship_via"</span><span class="token operator">:</span> <span class="token string">"FedEx"</span><span class="token punctuation">,</span> <span class="token property">"ship_via_id"</span><span class="token operator">:</span> <span class="token number">4815000000044822</span><span class="token punctuation">,</span> <span class="token property">"attention"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_org_address_id"</span><span class="token operator">:</span> <span class="token number">4815000000044077</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_id"</span><span class="token operator">:</span> <span class="token number">4815000000044066</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_name"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"attachment_name"</span><span class="token operator">:</span> <span class="token string">"sample.pdf"</span><span class="token punctuation">,</span> <span class="token property">"can_send_in_mail"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"template_id"</span><span class="token operator">:</span> <span class="token number">4815000000017003</span><span class="token punctuation">,</span> <span class="token property">"template_name"</span><span class="token operator">:</span> <span class="token string">"Standard"</span><span class="token punctuation">,</span> <span class="token property">"template_type"</span><span class="token operator">:</span> <span class="token string">"standard"</span><span class="token punctuation">,</span> <span class="token property">"created_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"last_modified_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"purchasereceives"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"receive_id"</span><span class="token operator">:</span> <span class="token number">4815000000045035</span><span class="token punctuation">,</span> <span class="token property">"receive_number"</span><span class="token operator">:</span> <span class="token string">"PR-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"bills"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"bill_id"</span><span class="token operator">:</span> <span class="token number">4815000000045067</span><span class="token punctuation">,</span> <span class="token property">"bill_number"</span><span class="token operator">:</span> <span class="token string">"BL-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"due_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-28"</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"balance"</span><span class="token operator">:</span> <span class="token number">100</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"gst_treatment"</span><span class="token operator">:</span> <span class="token string">"business_gst"</span><span class="token punctuation">,</span> <span class="token property">"gst_no"</span><span class="token operator">:</span> <span class="token string">"22AAAAA0000A1Z5"</span><span class="token punctuation">,</span> <span class="token property">"source_of_supply"</span><span class="token operator">:</span> <span class="token string">"AP"</span><span class="token punctuation">,</span> <span class="token property">"destination_of_supply"</span><span class="token operator">:</span> <span class="token string">"TN"</span><span class="token punctuation">,</span> <span class="token property">"is_pre_gst"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"is_reverse_charge_applied"</span><span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> <div class="divider"></div> <div class="wrapper"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h2 id="retrieve-a-purchase-order" class="scroll-observer pt-70">Retrieve a Purchase Order</h2> <p> Retrieves the details for an existing Purchase Order. <br> <code>OAuth Scope : <span class="oauth-scope">ZohoInventory.purchaseorders.READ</span></code> </p> </div> <div class="flex-wrapper-right request-top pt-70"> <div class="request-topbar"> <p> Request Example </p> <div class="ml-auto d-flex align-items-center"> <div class="dropdown-container"> <button role="button" class="dropdown-btn" onclick="dropDownClicked(this)"></button> <div class="dropdown-content d-none"> <ul class="m-3 pl-0 list-none"> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;cURL&quot;,&quot;id&quot;:&quot;shell_curl&quot;})">cURL</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Deluge&quot;,&quot;id&quot;:&quot;deluge&quot;})">Deluge</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Java&quot;,&quot;id&quot;:&quot;java_okhttp&quot;})">Java</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Node.js&quot;,&quot;id&quot;:&quot;node_native&quot;})">Node.js</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Javascript&quot;,&quot;id&quot;:&quot;javascript_fetch&quot;})">Javascript</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Python&quot;,&quot;id&quot;:&quot;python_python3&quot;})">Python</button> </li> </ul> </div> </div> <div class="tooltiptext"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('snippet_retrieve-a-purchase-order',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> </div> <div class="codebag codebag-code code-snippets" data-simplebar > <div class="deluge d-none"> <code data-snippet-id="deluge_retrieve-a-purchase-order">headers_data <span class="token operator">=</span> <span class="token function">Map</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> headers_data<span class="token operator">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token operator">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> response <span class="token operator">=</span> <span class="token keyword">invokeUrl</span> <span class="token punctuation">[</span> <span class="token property">url</span><span class="token punctuation">:</span> <span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span> <span class="token property">type</span><span class="token punctuation">:</span> <span class="token keyword">GET</span> <span class="token property">headers</span><span class="token punctuation">:</span> headers_data <span class="token property">connection</span><span class="token punctuation">:</span> <span class="token operator">&lt;</span>connection_name<span class="token operator">></span> <span class="token punctuation">]</span> <span class="token keyword">info</span> response<span class="token punctuation">;</span></code> </div> <div class="java_okhttp d-none"> <code data-snippet-id="java_okhttp_retrieve-a-purchase-order"><span class="token class-name">OkHttpClient</span> client <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">OkHttpClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Request</span> request <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Request<span class="token punctuation">.</span>Builder</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">url</span><span class="token punctuation">(</span><span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token punctuation">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Response</span> response <span class="token operator">=</span> client<span class="token punctuation">.</span><span class="token function">newCall</span><span class="token punctuation">(</span>request<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="javascript_fetch d-none"> <code data-snippet-id="javascript_fetch_retrieve-a-purchase-order"><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token literal-property property">method</span><span class="token operator">:</span> <span class="token string">'GET'</span><span class="token punctuation">,</span> <span class="token literal-property property">headers</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token literal-property property">Authorization</span><span class="token operator">:</span> <span class="token string">'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token function">fetch</span><span class="token punctuation">(</span><span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695'</span><span class="token punctuation">,</span> options<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> response<span class="token punctuation">.</span><span class="token function">json</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>response<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="python_python3 d-none"> <code data-snippet-id="python_python3_retrieve-a-purchase-order"><span class="token keyword">import</span> http<span class="token punctuation">.</span>client conn <span class="token operator">=</span> http<span class="token punctuation">.</span>client<span class="token punctuation">.</span>HTTPSConnection<span class="token punctuation">(</span><span class="token string">"www.zohoapis.com"</span><span class="token punctuation">)</span> headers <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string">'Authorization'</span><span class="token punctuation">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> conn<span class="token punctuation">.</span>request<span class="token punctuation">(</span><span class="token string">"GET"</span><span class="token punctuation">,</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">,</span> headers<span class="token operator">=</span>headers<span class="token punctuation">)</span> res <span class="token operator">=</span> conn<span class="token punctuation">.</span>getresponse<span class="token punctuation">(</span><span class="token punctuation">)</span> data <span class="token operator">=</span> res<span class="token punctuation">.</span>read<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">print</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>decode<span class="token punctuation">(</span><span class="token string">"utf-8"</span><span class="token punctuation">)</span><span class="token punctuation">)</span></code> </div> <div class="node_native d-none"> <code data-snippet-id="node_native_retrieve-a-purchase-order"><span class="token keyword">const</span> http <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">"https"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string-property property">"method"</span><span class="token operator">:</span> <span class="token string">"GET"</span><span class="token punctuation">,</span> <span class="token string-property property">"hostname"</span><span class="token operator">:</span> <span class="token string">"www.zohoapis.com"</span><span class="token punctuation">,</span> <span class="token string-property property">"port"</span><span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token string-property property">"path"</span><span class="token operator">:</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">,</span> <span class="token string-property property">"headers"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token string-property property">"Authorization"</span><span class="token operator">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token keyword">const</span> req <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">request</span><span class="token punctuation">(</span>options<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> chunks <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"data"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">chunk</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> chunks<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>chunk<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"end"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> body <span class="token operator">=</span> Buffer<span class="token punctuation">.</span><span class="token function">concat</span><span class="token punctuation">(</span>chunks<span class="token punctuation">)</span><span class="token punctuation">;</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>body<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">end</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="shell_curl d-none"> <code data-snippet-id="shell_curl_retrieve-a-purchase-order"><span class="token function">curl</span> <span class="token parameter variable">--request</span> GET <span class="token punctuation">\</span> <span class="token parameter variable">--url</span> <span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span></code> </div> </div> <p class="response-topbar mt-60"> Response Example </p> <div class="responsebg pd-bottom" data-simplebar> <code><span class="token punctuation">{</span> <span class="token property">"code"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"success"</span><span class="token punctuation">,</span> <span class="token property">"purchase_order"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token property">"purchaseorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044972</span><span class="token punctuation">,</span> <span class="token property">"purchaseorder_number"</span><span class="token operator">:</span> <span class="token string">"PO-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"expected_delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"reference_number"</span><span class="token operator">:</span> <span class="token string">"REF-P-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"vendor_id"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"vendor_name"</span><span class="token operator">:</span> <span class="token string">"Molly"</span><span class="token punctuation">,</span> <span class="token property">"contact_persons"</span><span class="token operator">:</span> <span class="token number">4815000000044080</span><span class="token punctuation">,</span> <span class="token property">"currency_id"</span><span class="token operator">:</span> <span class="token number">4815000000000097</span><span class="token punctuation">,</span> <span class="token property">"currency_code"</span><span class="token operator">:</span> <span class="token string">"USD"</span><span class="token punctuation">,</span> <span class="token property">"currency_symbol"</span><span class="token operator">:</span> <span class="token string">"$"</span><span class="token punctuation">,</span> <span class="token property">"exchange_rate"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"delivery_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-01"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_id"</span><span class="token operator">:</span> <span class="token number">4815000000044936</span><span class="token punctuation">,</span> <span class="token property">"is_drop_shipment"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"is_backorder"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"custom_fields"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"customfield_id"</span><span class="token operator">:</span> <span class="token string">"46000000012845"</span><span class="token punctuation">,</span> <span class="token property">"value"</span><span class="token operator">:</span> <span class="token string">"Normal"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"sub_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_total"</span><span class="token operator">:</span> <span class="token number">29</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"taxes"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_amount"</span><span class="token operator">:</span> <span class="token number">29</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"price_precision"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"pricebook_id"</span><span class="token operator">:</span> <span class="token number">4815000000044054</span><span class="token punctuation">,</span> <span class="token property">"billing_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"terms"</span><span class="token operator">:</span> <span class="token string">"Terms and Conditions"</span><span class="token punctuation">,</span> <span class="token property">"ship_via"</span><span class="token operator">:</span> <span class="token string">"FedEx"</span><span class="token punctuation">,</span> <span class="token property">"ship_via_id"</span><span class="token operator">:</span> <span class="token number">4815000000044822</span><span class="token punctuation">,</span> <span class="token property">"attention"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_org_address_id"</span><span class="token operator">:</span> <span class="token number">4815000000044077</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_id"</span><span class="token operator">:</span> <span class="token number">4815000000044066</span><span class="token punctuation">,</span> <span class="token property">"delivery_customer_name"</span><span class="token operator">:</span> <span class="token string">"Tony"</span><span class="token punctuation">,</span> <span class="token property">"delivery_address"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"No:234,90 Church Street"</span><span class="token punctuation">,</span> <span class="token property">"city"</span><span class="token operator">:</span> <span class="token string">"New York City"</span><span class="token punctuation">,</span> <span class="token property">"state"</span><span class="token operator">:</span> <span class="token string">"New York"</span><span class="token punctuation">,</span> <span class="token property">"zip"</span><span class="token operator">:</span> <span class="token number">10048</span><span class="token punctuation">,</span> <span class="token property">"country"</span><span class="token operator">:</span> <span class="token string">"U.S.A"</span><span class="token punctuation">,</span> <span class="token property">"fax"</span><span class="token operator">:</span> <span class="token string">"324-524242"</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"attachment_name"</span><span class="token operator">:</span> <span class="token string">"sample.pdf"</span><span class="token punctuation">,</span> <span class="token property">"can_send_in_mail"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token property">"template_id"</span><span class="token operator">:</span> <span class="token number">4815000000017003</span><span class="token punctuation">,</span> <span class="token property">"template_name"</span><span class="token operator">:</span> <span class="token string">"Standard"</span><span class="token punctuation">,</span> <span class="token property">"template_type"</span><span class="token operator">:</span> <span class="token string">"standard"</span><span class="token punctuation">,</span> <span class="token property">"created_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"last_modified_time"</span><span class="token operator">:</span> <span class="token string">"2015-05-28T00:00:00.000Z"</span><span class="token punctuation">,</span> <span class="token property">"purchasereceives"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"receive_id"</span><span class="token operator">:</span> <span class="token number">4815000000045035</span><span class="token punctuation">,</span> <span class="token property">"receive_number"</span><span class="token operator">:</span> <span class="token string">"PR-00002"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"notes"</span><span class="token operator">:</span> <span class="token string">"Sample Note"</span><span class="token punctuation">,</span> <span class="token property">"line_items"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044100</span><span class="token punctuation">,</span> <span class="token property">"line_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044897</span><span class="token punctuation">,</span> <span class="token property">"account_id"</span><span class="token operator">:</span> <span class="token number">4815000000035003</span><span class="token punctuation">,</span> <span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"Laptop-white/15inch/dell"</span><span class="token punctuation">,</span> <span class="token property">"description"</span><span class="token operator">:</span> <span class="token string">"Just a sample description."</span><span class="token punctuation">,</span> <span class="token property">"item_order"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"bcy_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"purchase_rate"</span><span class="token operator">:</span> <span class="token number">122</span><span class="token punctuation">,</span> <span class="token property">"quantity"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"quantity_received"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">"unit"</span><span class="token operator">:</span> <span class="token string">"qty"</span><span class="token punctuation">,</span> <span class="token property">"item_total"</span><span class="token operator">:</span> <span class="token number">244</span><span class="token punctuation">,</span> <span class="token property">"tax_id"</span><span class="token operator">:</span> <span class="token number">4815000000044043</span><span class="token punctuation">,</span> <span class="token property">"tds_tax_id"</span><span class="token operator">:</span> <span class="token number">90300000087370</span><span class="token punctuation">,</span> <span class="token property">"tax_name"</span><span class="token operator">:</span> <span class="token string">"Sales Tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_type"</span><span class="token operator">:</span> <span class="token string">"tax"</span><span class="token punctuation">,</span> <span class="token property">"tax_percentage"</span><span class="token operator">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token property">"image_id"</span><span class="token operator">:</span> <span class="token number">2077500000000002000</span><span class="token punctuation">,</span> <span class="token property">"image_name"</span><span class="token operator">:</span> <span class="token string">"dell.jpg"</span><span class="token punctuation">,</span> <span class="token property">"image_type"</span><span class="token operator">:</span> <span class="token string">"jpg"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_id"</span><span class="token operator">:</span> <span class="token number">460000000026068</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_name"</span><span class="token operator">:</span> <span class="token string">"inter"</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_percentage"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"reverse_charge_tax_amount"</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span> <span class="token property">"hsn_or_sac"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_code"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"warehouse_id"</span><span class="token operator">:</span> <span class="token number">130426000000664020</span><span class="token punctuation">,</span> <span class="token property">"tax_exemption_id"</span><span class="token operator">:</span> <span class="token string">"string"</span><span class="token punctuation">,</span> <span class="token property">"salesorder_item_id"</span><span class="token operator">:</span> <span class="token number">4815000000044892</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"bills"</span><span class="token operator">:</span> <span class="token punctuation">[</span> <span class="token punctuation">{</span> <span class="token property">"bill_id"</span><span class="token operator">:</span> <span class="token number">4815000000045067</span><span class="token punctuation">,</span> <span class="token property">"bill_number"</span><span class="token operator">:</span> <span class="token string">"BL-00002"</span><span class="token punctuation">,</span> <span class="token property">"status"</span><span class="token operator">:</span> <span class="token string">"Partially_Received"</span><span class="token punctuation">,</span> <span class="token property">"date"</span><span class="token operator">:</span> <span class="token string">"2015-05-28"</span><span class="token punctuation">,</span> <span class="token property">"due_date"</span><span class="token operator">:</span> <span class="token string">"2015-06-28"</span><span class="token punctuation">,</span> <span class="token property">"total"</span><span class="token operator">:</span> <span class="token number">350</span><span class="token punctuation">,</span> <span class="token property">"balance"</span><span class="token operator">:</span> <span class="token number">100</span> <span class="token punctuation">}</span> <span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token property">"gst_treatment"</span><span class="token operator">:</span> <span class="token string">"business_gst"</span><span class="token punctuation">,</span> <span class="token property">"gst_no"</span><span class="token operator">:</span> <span class="token string">"22AAAAA0000A1Z5"</span><span class="token punctuation">,</span> <span class="token property">"source_of_supply"</span><span class="token operator">:</span> <span class="token string">"AP"</span><span class="token punctuation">,</span> <span class="token property">"destination_of_supply"</span><span class="token operator">:</span> <span class="token string">"TN"</span><span class="token punctuation">,</span> <span class="token property">"is_pre_gst"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token property">"is_reverse_charge_applied"</span><span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> <div class="divider"></div> <div class="wrapper"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h2 id="delete-a-purchase-order" class="scroll-observer pt-70">Delete a Purchase Order</h2> <p> Deletes a Purchase Order from Zoho Inventory. <br> <code>OAuth Scope : <span class="oauth-scope">ZohoInventory.purchaseorders.DELETE</span></code> </p> </div> <div class="flex-wrapper-right request-top pt-70"> <div class="request-topbar"> <p> Request Example </p> <div class="ml-auto d-flex align-items-center"> <div class="dropdown-container"> <button role="button" class="dropdown-btn" onclick="dropDownClicked(this)"></button> <div class="dropdown-content d-none"> <ul class="m-3 pl-0 list-none"> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;cURL&quot;,&quot;id&quot;:&quot;shell_curl&quot;})">cURL</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Deluge&quot;,&quot;id&quot;:&quot;deluge&quot;})">Deluge</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Java&quot;,&quot;id&quot;:&quot;java_okhttp&quot;})">Java</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Node.js&quot;,&quot;id&quot;:&quot;node_native&quot;})">Node.js</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Javascript&quot;,&quot;id&quot;:&quot;javascript_fetch&quot;})">Javascript</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Python&quot;,&quot;id&quot;:&quot;python_python3&quot;})">Python</button> </li> </ul> </div> </div> <div class="tooltiptext"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('snippet_delete-a-purchase-order',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> </div> <div class="codebag codebag-code code-snippets" data-simplebar > <div class="deluge d-none"> <code data-snippet-id="deluge_delete-a-purchase-order">headers_data <span class="token operator">=</span> <span class="token function">Map</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> headers_data<span class="token operator">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token operator">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> response <span class="token operator">=</span> <span class="token keyword">invokeUrl</span> <span class="token punctuation">[</span> <span class="token property">url</span><span class="token punctuation">:</span> <span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span> <span class="token property">type</span><span class="token punctuation">:</span> <span class="token keyword">DELETE</span> <span class="token property">headers</span><span class="token punctuation">:</span> headers_data <span class="token property">connection</span><span class="token punctuation">:</span> <span class="token operator">&lt;</span>connection_name<span class="token operator">></span> <span class="token punctuation">]</span> <span class="token keyword">info</span> response<span class="token punctuation">;</span></code> </div> <div class="java_okhttp d-none"> <code data-snippet-id="java_okhttp_delete-a-purchase-order"><span class="token class-name">OkHttpClient</span> client <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">OkHttpClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Request</span> request <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Request<span class="token punctuation">.</span>Builder</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">url</span><span class="token punctuation">(</span><span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">delete</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token punctuation">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Response</span> response <span class="token operator">=</span> client<span class="token punctuation">.</span><span class="token function">newCall</span><span class="token punctuation">(</span>request<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="javascript_fetch d-none"> <code data-snippet-id="javascript_fetch_delete-a-purchase-order"><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token literal-property property">method</span><span class="token operator">:</span> <span class="token string">'DELETE'</span><span class="token punctuation">,</span> <span class="token literal-property property">headers</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token literal-property property">Authorization</span><span class="token operator">:</span> <span class="token string">'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token function">fetch</span><span class="token punctuation">(</span><span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695'</span><span class="token punctuation">,</span> options<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> response<span class="token punctuation">.</span><span class="token function">json</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>response<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="python_python3 d-none"> <code data-snippet-id="python_python3_delete-a-purchase-order"><span class="token keyword">import</span> http<span class="token punctuation">.</span>client conn <span class="token operator">=</span> http<span class="token punctuation">.</span>client<span class="token punctuation">.</span>HTTPSConnection<span class="token punctuation">(</span><span class="token string">"www.zohoapis.com"</span><span class="token punctuation">)</span> headers <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string">'Authorization'</span><span class="token punctuation">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> conn<span class="token punctuation">.</span>request<span class="token punctuation">(</span><span class="token string">"DELETE"</span><span class="token punctuation">,</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">,</span> headers<span class="token operator">=</span>headers<span class="token punctuation">)</span> res <span class="token operator">=</span> conn<span class="token punctuation">.</span>getresponse<span class="token punctuation">(</span><span class="token punctuation">)</span> data <span class="token operator">=</span> res<span class="token punctuation">.</span>read<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">print</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>decode<span class="token punctuation">(</span><span class="token string">"utf-8"</span><span class="token punctuation">)</span><span class="token punctuation">)</span></code> </div> <div class="node_native d-none"> <code data-snippet-id="node_native_delete-a-purchase-order"><span class="token keyword">const</span> http <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">"https"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string-property property">"method"</span><span class="token operator">:</span> <span class="token string">"DELETE"</span><span class="token punctuation">,</span> <span class="token string-property property">"hostname"</span><span class="token operator">:</span> <span class="token string">"www.zohoapis.com"</span><span class="token punctuation">,</span> <span class="token string-property property">"port"</span><span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token string-property property">"path"</span><span class="token operator">:</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695"</span><span class="token punctuation">,</span> <span class="token string-property property">"headers"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token string-property property">"Authorization"</span><span class="token operator">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token keyword">const</span> req <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">request</span><span class="token punctuation">(</span>options<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> chunks <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"data"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">chunk</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> chunks<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>chunk<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"end"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> body <span class="token operator">=</span> Buffer<span class="token punctuation">.</span><span class="token function">concat</span><span class="token punctuation">(</span>chunks<span class="token punctuation">)</span><span class="token punctuation">;</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>body<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">end</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="shell_curl d-none"> <code data-snippet-id="shell_curl_delete-a-purchase-order"><span class="token function">curl</span> <span class="token parameter variable">--request</span> DELETE <span class="token punctuation">\</span> <span class="token parameter variable">--url</span> <span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972?organization_id=10234695'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span></code> </div> </div> <p class="response-topbar mt-60"> Response Example </p> <div class="responsebg pd-bottom" data-simplebar> <code><span class="token punctuation">{</span> <span class="token property">"code"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"The Purchase Order has been deleted."</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> <div class="divider"></div> <div class="wrapper"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h2 id="mark-as-issued" class="scroll-observer pt-70">Mark as Issued</h2> <p> Marks a Purchase Order as Issued. <br> <code>OAuth Scope : <span class="oauth-scope">ZohoInventory.purchaseorders.CREATE</span></code> </p> </div> <div class="flex-wrapper-right request-top pt-70"> <div class="request-topbar"> <p> Request Example </p> <div class="ml-auto d-flex align-items-center"> <div class="dropdown-container"> <button role="button" class="dropdown-btn" onclick="dropDownClicked(this)"></button> <div class="dropdown-content d-none"> <ul class="m-3 pl-0 list-none"> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;cURL&quot;,&quot;id&quot;:&quot;shell_curl&quot;})">cURL</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Deluge&quot;,&quot;id&quot;:&quot;deluge&quot;})">Deluge</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Java&quot;,&quot;id&quot;:&quot;java_okhttp&quot;})">Java</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Node.js&quot;,&quot;id&quot;:&quot;node_native&quot;})">Node.js</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Javascript&quot;,&quot;id&quot;:&quot;javascript_fetch&quot;})">Javascript</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Python&quot;,&quot;id&quot;:&quot;python_python3&quot;})">Python</button> </li> </ul> </div> </div> <div class="tooltiptext"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('snippet_mark-as-issued',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> </div> <div class="codebag codebag-code code-snippets" data-simplebar > <div class="deluge d-none"> <code data-snippet-id="deluge_mark-as-issued">headers_data <span class="token operator">=</span> <span class="token function">Map</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> headers_data<span class="token operator">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token operator">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> response <span class="token operator">=</span> <span class="token keyword">invokeUrl</span> <span class="token punctuation">[</span> <span class="token property">url</span><span class="token punctuation">:</span> <span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/issued?organization_id=10234695"</span> <span class="token property">type</span><span class="token punctuation">:</span> <span class="token keyword">POST</span> <span class="token property">headers</span><span class="token punctuation">:</span> headers_data <span class="token property">connection</span><span class="token punctuation">:</span> <span class="token operator">&lt;</span>connection_name<span class="token operator">></span> <span class="token punctuation">]</span> <span class="token keyword">info</span> response<span class="token punctuation">;</span></code> </div> <div class="java_okhttp d-none"> <code data-snippet-id="java_okhttp_mark-as-issued"><span class="token class-name">OkHttpClient</span> client <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">OkHttpClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Request</span> request <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Request<span class="token punctuation">.</span>Builder</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">url</span><span class="token punctuation">(</span><span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/issued?organization_id=10234695"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">post</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token punctuation">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Response</span> response <span class="token operator">=</span> client<span class="token punctuation">.</span><span class="token function">newCall</span><span class="token punctuation">(</span>request<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="javascript_fetch d-none"> <code data-snippet-id="javascript_fetch_mark-as-issued"><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token literal-property property">method</span><span class="token operator">:</span> <span class="token string">'POST'</span><span class="token punctuation">,</span> <span class="token literal-property property">headers</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token literal-property property">Authorization</span><span class="token operator">:</span> <span class="token string">'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token function">fetch</span><span class="token punctuation">(</span><span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/issued?organization_id=10234695'</span><span class="token punctuation">,</span> options<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> response<span class="token punctuation">.</span><span class="token function">json</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>response<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="python_python3 d-none"> <code data-snippet-id="python_python3_mark-as-issued"><span class="token keyword">import</span> http<span class="token punctuation">.</span>client conn <span class="token operator">=</span> http<span class="token punctuation">.</span>client<span class="token punctuation">.</span>HTTPSConnection<span class="token punctuation">(</span><span class="token string">"www.zohoapis.com"</span><span class="token punctuation">)</span> headers <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string">'Authorization'</span><span class="token punctuation">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> conn<span class="token punctuation">.</span>request<span class="token punctuation">(</span><span class="token string">"POST"</span><span class="token punctuation">,</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972/status/issued?organization_id=10234695"</span><span class="token punctuation">,</span> headers<span class="token operator">=</span>headers<span class="token punctuation">)</span> res <span class="token operator">=</span> conn<span class="token punctuation">.</span>getresponse<span class="token punctuation">(</span><span class="token punctuation">)</span> data <span class="token operator">=</span> res<span class="token punctuation">.</span>read<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">print</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>decode<span class="token punctuation">(</span><span class="token string">"utf-8"</span><span class="token punctuation">)</span><span class="token punctuation">)</span></code> </div> <div class="node_native d-none"> <code data-snippet-id="node_native_mark-as-issued"><span class="token keyword">const</span> http <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">"https"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string-property property">"method"</span><span class="token operator">:</span> <span class="token string">"POST"</span><span class="token punctuation">,</span> <span class="token string-property property">"hostname"</span><span class="token operator">:</span> <span class="token string">"www.zohoapis.com"</span><span class="token punctuation">,</span> <span class="token string-property property">"port"</span><span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token string-property property">"path"</span><span class="token operator">:</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972/status/issued?organization_id=10234695"</span><span class="token punctuation">,</span> <span class="token string-property property">"headers"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token string-property property">"Authorization"</span><span class="token operator">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token keyword">const</span> req <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">request</span><span class="token punctuation">(</span>options<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> chunks <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"data"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">chunk</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> chunks<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>chunk<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"end"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> body <span class="token operator">=</span> Buffer<span class="token punctuation">.</span><span class="token function">concat</span><span class="token punctuation">(</span>chunks<span class="token punctuation">)</span><span class="token punctuation">;</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>body<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">end</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="shell_curl d-none"> <code data-snippet-id="shell_curl_mark-as-issued"><span class="token function">curl</span> <span class="token parameter variable">--request</span> POST <span class="token punctuation">\</span> <span class="token parameter variable">--url</span> <span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/issued?organization_id=10234695'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span></code> </div> </div> <p class="response-topbar mt-60"> Response Example </p> <div class="responsebg pd-bottom" data-simplebar> <code><span class="token punctuation">{</span> <span class="token property">"code"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"The purchase order has been marked as issued."</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> <div class="divider"></div> <div class="wrapper"> <div class="flex-wrapper"> <div class="flex-wrapper-left"> <h2 id="mark-as-cancelled" class="scroll-observer pt-70">Mark as Cancelled</h2> <p> Marks a Purchase Order as Cancelled. <br> <code>OAuth Scope : <span class="oauth-scope">ZohoInventory.purchaseorders.CREATE</span></code> </p> </div> <div class="flex-wrapper-right request-top pt-70"> <div class="request-topbar"> <p> Request Example </p> <div class="ml-auto d-flex align-items-center"> <div class="dropdown-container"> <button role="button" class="dropdown-btn" onclick="dropDownClicked(this)"></button> <div class="dropdown-content d-none"> <ul class="m-3 pl-0 list-none"> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;cURL&quot;,&quot;id&quot;:&quot;shell_curl&quot;})">cURL</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Deluge&quot;,&quot;id&quot;:&quot;deluge&quot;})">Deluge</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Java&quot;,&quot;id&quot;:&quot;java_okhttp&quot;})">Java</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Node.js&quot;,&quot;id&quot;:&quot;node_native&quot;})">Node.js</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Javascript&quot;,&quot;id&quot;:&quot;javascript_fetch&quot;})">Javascript</button> </li> <li> <button role="option" class="dropdown-btn-item" onclick="changeLanguage({&quot;name&quot;:&quot;Python&quot;,&quot;id&quot;:&quot;python_python3&quot;})">Python</button> </li> </ul> </div> </div> <div class="tooltiptext"> <span role="tooltip" class="tooltip tooltipcopytext"> <span class="copytext">Click to copy </span> <div class="arrow" data-popper-arrow></div> </span> <button onclick="copyToClipboard('snippet_mark-as-cancelled',this)" class="copybutton"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" xml:space="preserve" class="copyimage"><g fill="#9F9FAB"><path d="M477.6 346c-13.8 0-25-11.2-25-25V71c0-6.4-5.2-11.6-11.6-11.6H191c-13.8 0-25-11.2-25-25s11.2-25 25-25h250c34 0 61.6 27.6 61.6 61.6v250c0 13.8-11.2 25-25 25z"/><path d="M331 492.6H81c-34 0-61.6-27.6-61.6-61.6V181c0-34 27.6-61.6 61.6-61.6h250c34 0 61.6 27.6 61.6 61.6v250c0 33.9-27.7 61.6-61.6 61.6zM81 169.4c-6.4 0-11.6 5.2-11.6 11.6v250c0 6.4 5.2 11.6 11.6 11.6h250c6.4 0 11.6-5.2 11.6-11.6V181c0-6.4-5.2-11.6-11.6-11.6H81z"/></g></svg> </button> </div> </div> </div> <div class="codebag codebag-code code-snippets" data-simplebar > <div class="deluge d-none"> <code data-snippet-id="deluge_mark-as-cancelled">headers_data <span class="token operator">=</span> <span class="token function">Map</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> headers_data<span class="token operator">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token operator">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> response <span class="token operator">=</span> <span class="token keyword">invokeUrl</span> <span class="token punctuation">[</span> <span class="token property">url</span><span class="token punctuation">:</span> <span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/cancelled?organization_id=10234695"</span> <span class="token property">type</span><span class="token punctuation">:</span> <span class="token keyword">POST</span> <span class="token property">headers</span><span class="token punctuation">:</span> headers_data <span class="token property">connection</span><span class="token punctuation">:</span> <span class="token operator">&lt;</span>connection_name<span class="token operator">></span> <span class="token punctuation">]</span> <span class="token keyword">info</span> response<span class="token punctuation">;</span></code> </div> <div class="java_okhttp d-none"> <code data-snippet-id="java_okhttp_mark-as-cancelled"><span class="token class-name">OkHttpClient</span> client <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">OkHttpClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Request</span> request <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Request<span class="token punctuation">.</span>Builder</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">url</span><span class="token punctuation">(</span><span class="token string">"https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/cancelled?organization_id=10234695"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">post</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">addHeader</span><span class="token punctuation">(</span><span class="token string">"Authorization"</span><span class="token punctuation">,</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token class-name">Response</span> response <span class="token operator">=</span> client<span class="token punctuation">.</span><span class="token function">newCall</span><span class="token punctuation">(</span>request<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="javascript_fetch d-none"> <code data-snippet-id="javascript_fetch_mark-as-cancelled"><span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token literal-property property">method</span><span class="token operator">:</span> <span class="token string">'POST'</span><span class="token punctuation">,</span> <span class="token literal-property property">headers</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token literal-property property">Authorization</span><span class="token operator">:</span> <span class="token string">'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token function">fetch</span><span class="token punctuation">(</span><span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/cancelled?organization_id=10234695'</span><span class="token punctuation">,</span> options<span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> response<span class="token punctuation">.</span><span class="token function">json</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token parameter">response</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>response<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=></span> console<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="python_python3 d-none"> <code data-snippet-id="python_python3_mark-as-cancelled"><span class="token keyword">import</span> http<span class="token punctuation">.</span>client conn <span class="token operator">=</span> http<span class="token punctuation">.</span>client<span class="token punctuation">.</span>HTTPSConnection<span class="token punctuation">(</span><span class="token string">"www.zohoapis.com"</span><span class="token punctuation">)</span> headers <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string">'Authorization'</span><span class="token punctuation">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> conn<span class="token punctuation">.</span>request<span class="token punctuation">(</span><span class="token string">"POST"</span><span class="token punctuation">,</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972/status/cancelled?organization_id=10234695"</span><span class="token punctuation">,</span> headers<span class="token operator">=</span>headers<span class="token punctuation">)</span> res <span class="token operator">=</span> conn<span class="token punctuation">.</span>getresponse<span class="token punctuation">(</span><span class="token punctuation">)</span> data <span class="token operator">=</span> res<span class="token punctuation">.</span>read<span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token keyword">print</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>decode<span class="token punctuation">(</span><span class="token string">"utf-8"</span><span class="token punctuation">)</span><span class="token punctuation">)</span></code> </div> <div class="node_native d-none"> <code data-snippet-id="node_native_mark-as-cancelled"><span class="token keyword">const</span> http <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">"https"</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token keyword">const</span> options <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token string-property property">"method"</span><span class="token operator">:</span> <span class="token string">"POST"</span><span class="token punctuation">,</span> <span class="token string-property property">"hostname"</span><span class="token operator">:</span> <span class="token string">"www.zohoapis.com"</span><span class="token punctuation">,</span> <span class="token string-property property">"port"</span><span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token string-property property">"path"</span><span class="token operator">:</span> <span class="token string">"/inventory/v1/purchaseorders/4815000000044972/status/cancelled?organization_id=10234695"</span><span class="token punctuation">,</span> <span class="token string-property property">"headers"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token string-property property">"Authorization"</span><span class="token operator">:</span> <span class="token string">"Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">;</span> <span class="token keyword">const</span> req <span class="token operator">=</span> http<span class="token punctuation">.</span><span class="token function">request</span><span class="token punctuation">(</span>options<span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> chunks <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"data"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">chunk</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> chunks<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>chunk<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> res<span class="token punctuation">.</span><span class="token function">on</span><span class="token punctuation">(</span><span class="token string">"end"</span><span class="token punctuation">,</span> <span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token keyword">const</span> body <span class="token operator">=</span> Buffer<span class="token punctuation">.</span><span class="token function">concat</span><span class="token punctuation">(</span>chunks<span class="token punctuation">)</span><span class="token punctuation">;</span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>body<span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> req<span class="token punctuation">.</span><span class="token function">end</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code> </div> <div class="shell_curl d-none"> <code data-snippet-id="shell_curl_mark-as-cancelled"><span class="token function">curl</span> <span class="token parameter variable">--request</span> POST <span class="token punctuation">\</span> <span class="token parameter variable">--url</span> <span class="token string">'https://www.zohoapis.com/inventory/v1/purchaseorders/4815000000044972/status/cancelled?organization_id=10234695'</span> <span class="token punctuation">\</span> <span class="token parameter variable">--header</span> <span class="token string">'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'</span></code> </div> </div> <p class="response-topbar mt-60"> Response Example </p> <div class="responsebg pd-bottom" data-simplebar> <code><span class="token punctuation">{</span> <span class="token property">"code"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token property">"message"</span><span class="token operator">:</span> <span class="token string">"The purchase order has been marked as cancelled."</span> <span class="token punctuation">}</span></code> </div> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript" src="/inventory/api/v1/js/vendor.js"></script> <script src="/inventory/api/v1/js/app.js"></script> <template role="none" id="search-result-template"> <a target="_self" onclick="goToSearchResult(this)"> <div class="result-link" onmousemove="showPropDescription(this)"> <div class="result-link-padding"> <div class="result-first-line"> <span class="result-prop-name"></span> <span class="result-prop-title"></span> </div> <div class="result-second-line"> <span class="result-prop-description">${resultObj.description}</span> </div> </div> </div> </a> </template> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10