Global API
Request
Purchase Order
7min
when processing a purchase order, use the requestjson to pass the purchase order data the returned response will contain a responsejson section with the purchase order response returned by breadwinner for quickbooks the purchase order object has the following parameters purchase order field name data type description classref common data types docid\ goasztqi8wczgotekytek reference to the class associated with the transaction currencyref common data types docid\ goasztqi8wczgotekytek reference to the currency in which all amounts on the associated transaction are expressed customfield purchase order docid\ j53axk0qebupb8e wav9 one of, up to three custom fields for the transaction available for custom fields so configured for the company docnumber string purchase order number duedate string date when the payment of the transaction is due (add by converting date to string) emailstatus string email status of the po valid values notset, needtosend, emailsent exchangerate decimal the number of home currency units it takes to equal one unit of currency specified by currencyref, applicable if multicurrency is enabled for the company globaltaxcalculation string fixed values (notapplicable, taxinclusive,taxexcluded) homebalance decimal read only line purchase order docid\ j53axk0qebupb8e wav9 individual line items of a transaction id string unique identifier for this object and readonly field metadata common data types docid\ goasztqi8wczgotekytek descriptive information about the object the metadata values are set by data services and are read only privatenote string user entered, organization private note about the transaction shipaddr common data types docid\ goasztqi8wczgotekytek identifies the address where the goods must be shipped shipmethodref common data types docid\ goasztqi8wczgotekytek reference to the shipmethod associated with the transaction salestermref common data types docid\ goasztqi8wczgotekytek reference to a salesterm associated with this company object sparse boolean allows updating only specified properties of an object while leaving unspecified properties unchanged synctoken string version number of the object it is used to lock an object for use by one app at a time read only totalamt decimal indicates the total amount of the transaction this includes the total of all the charges, allowances, and taxes read only txndate string the date entered by the user when this transaction occurred (add by converting date to string in yyyy mm dd format) vendorref common data types docid\ goasztqi8wczgotekytek the id (unique quickbooks online id) for the referenced vendor poemailclass field name data type description poemail string customfielddetails field name data type description definitionid string name string type string lineitem field name data type description accountbasedexpenselinedetail purchase order docid\ j53axk0qebupb8e wav9 amount decimal detailtype string provide the detailtype as salesitemdetail, discountlinedetail, etc for shipping charge apply the detailtype as 'salesitemlinedetail' id string itembasedexpenselinedetail purchase order docid\ j53axk0qebupb8e wav9 accountbasedexpenselinedetail field name data type description apaccountref common data types docid\ goasztqi8wczgotekytek billablestatus string classref common data types docid\ goasztqi8wczgotekytek vendorref common data types docid\ goasztqi8wczgotekytek itemref common data types docid\ goasztqi8wczgotekytek qty decimal unitprice decimal itembasedexpenseline field name data type description billablestatus string vendorref common data types docid\ goasztqi8wczgotekytek itemref common data types docid\ goasztqi8wczgotekytek qty decimal unitprice decimal