The PO type. If omitted the PO type will be Purchase. Can be set to Purchase or Debtors PO.
optional
"poType":string
OBSOLETE: Use vendorInvNo instead.
optional
"buyerOrderNo":string
The vendor invoice # for PO Type Purchase. The customer invoice # for PO Type Debtors PO.
optional
"vendorInvNo":string
Default is according Tools->Options Purchase, Calc Tax Total From.
optional
"calcPricesFromTaxPaid":boolean
The company doing the purchasing. Only relevant for multi company databases.
optional
"buyer":{
The buyer's account number. If supplied must be consistent with the sellor cardCode or cardNo if either of those are also supplied. In Jim2
the buyer account number is stored on the vender cardfile. NB for multicompany, if the vendor account number is used a seperate vendor cardfile must be used for each company.
optional
"accountNo":string
cardCode or cardNo are required. If both are supplied that must be consistent with each other (ie match what is stored within Jim2).
optional
"cardNo":integer
optional
"cardCode":string
}
"seller":{
cardCode or cardNo are required. If both are supplied that must be consistent with each other (ie match what is stored within Jim2).
optional
"cardNo":integer
optional
"cardCode":string
}
optional
"shipTo":{
cardCode or cardNo are required. If both are supplied that must be consistent with each other (ie match what is stored within Jim2).
optional
"cardNo":integer
optional
"cardCode":string
}
optional
"from":{
cardCode or cardNo are required. If both are supplied that must be consistent with each other (ie match what is stored within Jim2).
optional
"cardNo":integer
optional
"cardCode":string
}
The date due for the new PO. Must be in ISO date format - eg "2020-01-31"
optional
"dateDue":string
"ourRef":string
The status for the PO. This status must be valid per workflow from Booked, and cannot be Received or FINISH.
optional
"status":string
optional
"bidReference":string
Set to true if the the order can be part shipped
optional
"allowPartShip":boolean
The branch code. Branches must be enabled.
optional
"branch":string
The sub-branch code. Sub-branches must be enabled. Note that in the UI sub-branches may be renamed.
optional
"subBranch":string
The GL department code. GL departments must be enabled.
optional
"glDept":string
optional
"notes":string
optional
"comments": [{
}]
"stockLines": [{
The Jim2 stock code (the Jim2 user is buying the stock)
"buyerStockCode":string
optional
"unitQty":number
"qty":number
The price ex. If no price is required then Jim2's default PO pricing will be used. However, only one of PriceTF or PriceTP can be provided.
optional
"unitPriceTF":number
The price inc. If no price is required then Jim2's default PO pricing will be used. However, only one of PriceTF or PriceTP can be provided. Note that if the customer is not paying tax this will be the equalent to specifying the same value in unitPriceTF
optional
"unitPriceTP":number
Discount percent.
optional
"discount":number
The location to which the stock is to be delivered. Normally this field is left out.
optional
"location":string
Only applicable to stock that is serial on purchase or serial on sell. An array of serial numbers (and possible attributes if stock is also attributed) related to this stock.
optional
"serials": [{
A stock serial number.
"serialNo":string
Only applicable to stock that is serial and attributed on purchase or serial on sell.
optional
"stockAttrs": [{
The attribute name.
"name":string
The attribute value. Note, this is always send as a string, but the attribute type dictates the acceptable string formats.
eg integer attributes values must be a whole number
date attribute values must be a date is ISO format
real attribute values must be a decimal string (with period as the decimal separator)checkbox values must be a boolan value ("true", or "false").
"value":string
}]
}]
Only applicable to stock that is attribute on purchase or attribute on sell. An array of attributes related to this stock.
optional
"stockAttrs": [{
The attribute name.
"name":string
The attribute value. Note, this is always send as a string, but the attribute type dictates the acceptable string formats.
eg integer attributes values must be a whole number
date attribute values must be a date is ISO format
real attribute values must be a decimal string (with period as the decimal separator)checkbox values must be a boolan value ("true", or "false").
"value":string
}]
}]
A unique reference for the create request. This reference must be unique for each object and can be used to ensure duplicate objects are not created when re-trying API calls. Note this reference must be unique in Jim2, so if multiple systems are creating objects care must be taken to avoid clashes between the different system's submit ref id. Refer also to the SubmitRefId url query parameter for relevant endpoints.
optional
"submitRefID":string
Used where custom processing is required and additional data must be passed to that custom processing.
optional
"custom":any