Create Purchase Order
Body
Purchase order batch items.
Company code. Required; must be a valid company.
Purchase order number. Required; leave blank to auto-assign the next PO number.
Vendor code. Required; valid vendor code must exist in the company.
Warehouse code. Required unless no non-direct cost detail records are included.
Job number. Required unless a valid warehouse code is defined and there are no direct job cost detail records.
VAT code. Must exist in the company when used.
PO status. P = Proposed, O = Open, C = Closed. Blank defaults to Proposed.
Cost center code. Must be valid if cost centers are enabled.
Remarks code or free text, up to 29 characters.
Special instructions code or free text, up to 29 characters.
Ship-to code. D = Default, J = Job, I = Input. Blank defaults to D.
Ship-to name. Required when ship-to code is I.
Ship-to address line 1. Required when ship-to code is I.
Ship-to address line 2.
Ship-to city. Required when ship-to code is I.
Ship-to state. Required when ship-to code is I.
Ship-to postal code. Required when ship-to code is I.
Ship via code or free text. Blank defaults from Purchase Order Installation.
Shipping terms code or free text. Blank defaults from Purchase Order Installation.
FOB text. Blank defaults from Purchase Order Installation.
Ordered by, up to 20 characters.
Confirmed by. Blank defaults from Purchase Order Installation.
Order date in MM/DD/CCYY format. Blank defaults to the current PO processing date.
Batch code. Blank defaults to the operator code from Authorization_ID.
Payment terms basis. A = Based on invoice date, B = Based on first of next month.
Payment number of days. Must be non-negative.
Discount due basis. A = Based on invoice date, B = Based on first of next month.
Discount number of days. Must be non-negative.
Discount percent. Enter 12.34 for 12.34%; must be non-negative.
Terms description, up to 20 characters. Constructed automatically when blank.
For resale flag. Y = For resale, N = Not for resale.
Default sales/use tax code. Must exist in the company when used.
Routing code. Must exist in the company when used.
Delivery date in MM/DD/CCYY format.
Receiving method. Must be 1 or 2 when supplied.
Pricing type. U = Unit price, L = Lump sum.
Credit card account code. Must be a credit-card type account when used.
Card number. Required if the account tracks card numbers.
Header comment, up to 250 characters.
Purchase order detail lines.
Detail entry type. D = Defined item code, N = Non-stock item, M = Message-only.
Quantity. Required and non-zero unless this is a message-only line.
Item ID. Required unless this is a message-only line.
Item description. Used for non-stock items; stock item descriptions default from inventory item master.
Unit of measure, up to 3 characters.
Item price. Blank defaults using Spectrum purchase order rules.
Line discount percent. Enter 12.34 for 12.34%; must be non-negative.
G/L account. Required unless this is a message-only line.
Phase code. Required unless this is a message-only line or non-job purchase.
Cost type. Required unless this is a message-only line or non-job purchase.
Detail sales/use tax code. Must exist in the company when used.
Detail delivery date in MM/DD/CCYY format.
Message text. Required for message-only lines; up to 250 characters.
Detail cost center. Must be valid if cost centers are enabled.
Comma-separated response fields to include.