Mandatory fields: PurchaseInvoice
As purchase invoices can be tailored to suit customer needs, there are no fields that are always mandatory. As a guide though, you will probably find that the following may need to be supplied:
-
Purchase Transaction Type - payload element
<PurchaseTransactionType>
-
Purchase Invoice Reference - payload element
<PurchaseInvoiceReference>
-
Either User Line Number - payload element
<UserLineNumber>
or Purchase Invoice Line Number - payload element<PurchaseInvoiceLineNumber>
-
Supplier Code - payload element
<SupplierCode>
-
Item Code - payload element
<ItemCode>
.
See individual methods for specific field requirements. PurchaseInvoiceLineNumber is never mandatory, but depending on the method, you will need either UserLineNumber or PurchaseInvoiceLineNumber.
Standard Text
When creating or attaching Standard Text associated with a Purchase Invoice, values for the following must be supplied:
-
Purchase Invoice Reference - payload element
<StdTextPi_PiTxnRef>
-
Standard Text Class Code - payload element
<StdTextPi_StdTextClassCode>
-
Standard Text Code - payload element
<StdTextPi_StdTextCode>
.
When creating or attaching Standard Text associated with a Purchase Invoice Line, values for the following must be specified:
-
Purchase Invoice Reference - payload element
<StdTextPil_PiTxnRef>
-
Purchase Invoice Line Number - payload element
<StdTextPil_PilNum>
-
Standard Text Class Code - payload element
<StdTextPil_StdTextClassCode>
-
Standard Text Code - payload element
<StdTextPil_StdTextCode>