JiwaAPI

<back to all web services

PurchaseOrderACTIVATERequest

Requires Authentication
The following routes are available for this service:
POST/PurchaseOrders/Activate/{PurchaseOrderID}Sets the status of a purchase order to 'Sent'.
PurchaseOrderACTIVATERequest Parameters:
NameParameterData TypeRequiredDescription
PurchaseOrderIDpathstringNo
PurchaseOrder Parameters:
NameParameterData TypeRequiredDescription
PurchaseOrderIDformstringNo
CreditorRecIDformstringNo
CreditorAccountNoformstringNo
CreditorNameformstringNo
CreditorWarehouseRecIDformstringNo
CreditorWarehouseDescriptionformstringNo
LogicalWarehouseResidingInRecIDformstringNo
LogicalWarehouseResidingInDescriptionformstringNo
PhysicalWarehouseResidingInRecIDformstringNo
PhysicalWarehouseResidingInDescriptionformstringNo
LogicalWarehouseOrderingFromRecIDformstringNo
LogicalWarehouseOrderingFromDescriptionformstringNo
PhysicalWarehouseOrderingFromRecIDformstringNo
PhysicalWarehouseOrderingFromDescriptionformstringNo
InTransitLogicalWarehouseRecIDformstringNo
InTransitLogicalWarehouseDescriptionformstringNo
InTransitPhysicalWarehouseRecIDformstringNo
InTransitPhysicalWarehouseDescriptionformstringNo
OrderNoformstringNo
OrderDateformDateTime?No
AttentionformstringNo
ContactByformstringNo
StaffIDformstringNo
StaffUserNameformstringNo
StaffTitleformstringNo
StaffFirstNameformstringNo
StaffSurnameformstringNo
OrderStatusformStatus?No
OrderTypeformPurchaseOrderType?No
OrderSupplierTypeformSupplierType?No
TaxTotalformdecimal?No
UseInTransitformbool?No
ReferenceformstringNo
TotalGrossformdecimal?No
TotalNetformdecimal?No
TotalFxformdecimal?No
NotesformList<Note>No
DocumentsformList<Document>No
CustomFieldValuesformList<CustomFieldValue>No
LinesformList<PurchaseOrderLine>No
ShippingAddressAddressLine1formstringNo
ShippingAddressAddressLine2formstringNo
ShippingAddressAddressLine3formstringNo
ShippingAddressAddressLine4formstringNo
ShippingAddressAddressLine5formstringNo
ShippingAddressCountryformstringNo
ShippingAddressPostCodeformstringNo
ShippingAddressContactNameformstringNo
ShippingAddressPhoneformstringNo
ShippingAddressFaxformstringNo
ShippingAddressSpare1formstringNo
ShippingAddressSpare2formstringNo
ShippingAddressSpare3formstringNo
ShippingAddressSpare4formstringNo
ShippingAddressSpare5formstringNo
Freightformdecimal?No
Dutyformdecimal?No
Insuranceformdecimal?No
FreightTaxIDformstringNo
FreightTaxRateformdecimal?No
FreightTaxAmountformdecimal?No
DutyTaxIDformstringNo
DutyTaxRateformdecimal?No
DutyTaxAmountformdecimal?No
InsuranceTaxIDformstringNo
InsuranceTaxRateformdecimal?No
InsuranceTaxAmountformdecimal?No
FreightIncformdecimal?No
DutyIncformdecimal?No
InsuranceIncformdecimal?No
Note Parameters:
NameParameterData TypeRequiredDescription
NoteIDformstringNo
NoteTypeformNoteTypeNo
LineNoformint?No
LastSavedDateTimeformDateTime?No
LastModifiedByStaffIDformstringNo
LastModifiedByStaffUsernameformstringNo
LastModifiedByStaffTitleformstringNo
LastModifiedByStaffFirstNameformstringNo
LastModifiedByStaffSurnameformstringNo
NoteTextformstringNo
NoteType Parameters:
NameParameterData TypeRequiredDescription
NoteTypeIDformstringNo
DescriptionformstringNo
DefaultTypeformbool?No
ItemNoformint?No
Document Parameters:
NameParameterData TypeRequiredDescription
DocumentIDformstringNo
DocumentTypeformDocumentTypeNo
FileIDformstringNo
PhysicalFileNameformstringNo
FullPhysicalFileNameformstringNo
DescriptionformstringNo
LastSavedDateTimeformDateTime?No
LastModifiedByStaffIDformstringNo
LastModifiedByStaffUsernameformstringNo
LastModifiedByStaffTitleformstringNo
LastModifiedByStaffFirstNameformstringNo
LastModifiedByStaffSurnameformstringNo
FileBinaryformbyte[]No
DocumentType Parameters:
NameParameterData TypeRequiredDescription
DocumentTypeIDformstringNo
DescriptionformstringNo
DefaultTypeformbool?No
ItemNoformint?No
CustomFieldValue Parameters:
NameParameterData TypeRequiredDescription
SettingIDformstringNo
SettingNameformstringNo
ContentsformstringNo
PluginIDformstringNo
PluginNameformstringNo
PurchaseOrderLine Parameters:
NameParameterData TypeRequiredDescription
PurchaseOrderLineIDformstringNo
ItemNoformint?No
InventoryIDformstringNo
IsPhysicalformbool?No
PartNoformstringNo
DescriptionformstringNo
QuantityDecimalPlacesformint?No
MakeSupplierTheNewDefaultformbool?No
PurchaseOrderLineTypeformOrderLineType?No
Quantityformdecimal?No
IncPriceformdecimal?No
TaxAmountformdecimal?No
LineTotalformdecimal?No
LineTotalExTaxformdecimal?No
FxTotalformdecimal?No
CurrencyRateUsedformdecimal?No
FXDecimalPlacesformint?No
HomeCurrencyDecimalPlacesformint?No
DeliveryDateformDateTime?No
Deliveredformdecimal?No
HistoryText_CommentformstringNo
JobCostingStageRecIDformstringNo
JobCostingStageNoformstringNo
JobCostingStageNameformstringNo
JobCostingStageClassificationRecIDformstringNo
JobCostingStageClassificationDescriptionformstringNo
JobCostingCostCentreRecIDformstringNo
JobCostingCostCentreNoformstringNo
JobCostingCostCentreNameformstringNo
JobCostingJobRecIDformstringNo
JobCostingJobNoformstringNo
JobCostingJobDescriptionformstringNo
IN_OnBackOrder_OrdersOnBackIDformstringNo
IN_OnBackOrder_Quantityformdecimal?No
IN_OnBackOrder_EstBOValueformdecimal?No
IN_OnBackOrder_LastSavedDateTimeformDateTime?No
InvoiceLineIDformstringNo
UserDefinedFloat1formdecimal?No
UserDefinedFloat2formdecimal?No
UserDefinedFloat3formdecimal?No
UserDefinedDate1formDateTime?No
UserDefinedDate2formDateTime?No
UserDefinedDate3formDateTime?No
UserDefinedString1formstringNo
UserDefinedString2formstringNo
UserDefinedString3formstringNo
PurchasingClassificationRecIDformstringNo
PurchasingClassificationDescriptionformstringNo
PurchasingClassificationLedgerAccountRecIDformstringNo
PurchasingClassificationLedgerAccountAccountNoformstringNo
PurchasingClassificationLedgerAccountDescriptionformstringNo
ServiceManagerTaskRecIDformstringNo
ServiceManagerTaskNoformint?No
ServiceManagerTaskDescriptionformstringNo
ServiceManagerJobRecIDformstringNo
ServiceManagerJobNoformstringNo
ServiceManagerJobDescriptionformstringNo
IN_Creditor_RecIDformstringNo
SupplierPartNoformstringNo
IN_SupplierWarehouse_RecIDformstringNo
OrderUnitsformdecimal?No
DeliveryDaysformint?No
FXCostformdecimal?No
Costformdecimal?No
CostOriginalformdecimal?No
UnitsformstringNo
TaxRateRecIDformstringNo
TaxRateDescriptionformstringNo
TaxRateformdecimal?No
TaxRateBASCodeformint?No
InventoryExpectedLiabilityLedgerAccountRecIDformstringNo
InventoryExpectedLiabilityLedgerAccountAccountNoformstringNo
InventoryExpectedLiabilityLedgerAccountDescriptionformstringNo
InventoryExpectedAssetLedgerAccountRecIDformstringNo
InventoryExpectedAssetLedgerAccountAccountNoformstringNo
InventoryExpectedAssetLedgerAccountDescriptionformstringNo
ClassificationIDformstringNo
ClassificationDescriptionformstringNo
CustomFieldValuesformList<CustomFieldValue>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /PurchaseOrders/Activate/{PurchaseOrderID} HTTP/1.1 
Host: api.jiwa.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"PurchaseOrderID":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"PurchaseOrderID":"String","CreditorRecID":"String","CreditorAccountNo":"String","CreditorName":"String","CreditorWarehouseRecID":"String","CreditorWarehouseDescription":"String","LogicalWarehouseResidingInRecID":"String","LogicalWarehouseResidingInDescription":"String","PhysicalWarehouseResidingInRecID":"String","PhysicalWarehouseResidingInDescription":"String","LogicalWarehouseOrderingFromRecID":"String","LogicalWarehouseOrderingFromDescription":"String","PhysicalWarehouseOrderingFromRecID":"String","PhysicalWarehouseOrderingFromDescription":"String","InTransitLogicalWarehouseRecID":"String","InTransitLogicalWarehouseDescription":"String","InTransitPhysicalWarehouseRecID":"String","InTransitPhysicalWarehouseDescription":"String","OrderNo":"String","OrderDate":"0001-01-01T00:00:00.0000000","Attention":"String","ContactBy":"String","StaffID":"String","StaffUserName":"String","StaffTitle":"String","StaffFirstName":"String","StaffSurname":"String","OrderStatus":"NotSent","OrderType":"DefaultOrderType","OrderSupplierType":"Creditor","TaxTotal":0,"UseInTransit":false,"Reference":"String","TotalGross":0,"TotalNet":0,"TotalFx":0,"Notes":[{"NoteID":"String","NoteType":{"NoteTypeID":"String","Description":"String","DefaultType":false,"ItemNo":0},"LineNo":0,"LastSavedDateTime":"0001-01-01T00:00:00.0000000","LastModifiedByStaffID":"String","LastModifiedByStaffUsername":"String","LastModifiedByStaffTitle":"String","LastModifiedByStaffFirstName":"String","LastModifiedByStaffSurname":"String","NoteText":"String"}],"Documents":[{"DocumentID":"String","DocumentType":{"DocumentTypeID":"String","Description":"String","DefaultType":false,"ItemNo":0},"FileID":"String","PhysicalFileName":"String","FullPhysicalFileName":"String","Description":"String","LastSavedDateTime":"0001-01-01T00:00:00.0000000","LastModifiedByStaffID":"String","LastModifiedByStaffUsername":"String","LastModifiedByStaffTitle":"String","LastModifiedByStaffFirstName":"String","LastModifiedByStaffSurname":"String","FileBinary":"AA=="}],"CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}],"Lines":[{"PurchaseOrderLineID":"String","ItemNo":0,"InventoryID":"String","IsPhysical":false,"PartNo":"String","Description":"String","QuantityDecimalPlaces":0,"MakeSupplierTheNewDefault":false,"PurchaseOrderLineType":"Unknown","Quantity":0,"IncPrice":0,"TaxAmount":0,"LineTotal":0,"LineTotalExTax":0,"FxTotal":0,"CurrencyRateUsed":0,"FXDecimalPlaces":0,"HomeCurrencyDecimalPlaces":0,"DeliveryDate":"0001-01-01T00:00:00.0000000","Delivered":0,"HistoryText_Comment":"String","JobCostingStageRecID":"String","JobCostingStageNo":"String","JobCostingStageName":"String","JobCostingStageClassificationRecID":"String","JobCostingStageClassificationDescription":"String","JobCostingCostCentreRecID":"String","JobCostingCostCentreNo":"String","JobCostingCostCentreName":"String","JobCostingJobRecID":"String","JobCostingJobNo":"String","JobCostingJobDescription":"String","IN_OnBackOrder_OrdersOnBackID":"String","IN_OnBackOrder_Quantity":0,"IN_OnBackOrder_EstBOValue":0,"IN_OnBackOrder_LastSavedDateTime":"0001-01-01T00:00:00.0000000","InvoiceLineID":"String","UserDefinedFloat1":0,"UserDefinedFloat2":0,"UserDefinedFloat3":0,"UserDefinedDate1":"0001-01-01T00:00:00.0000000","UserDefinedDate2":"0001-01-01T00:00:00.0000000","UserDefinedDate3":"0001-01-01T00:00:00.0000000","UserDefinedString1":"String","UserDefinedString2":"String","UserDefinedString3":"String","PurchasingClassificationRecID":"String","PurchasingClassificationDescription":"String","PurchasingClassificationLedgerAccountRecID":"String","PurchasingClassificationLedgerAccountAccountNo":"String","PurchasingClassificationLedgerAccountDescription":"String","ServiceManagerTaskRecID":"String","ServiceManagerTaskNo":0,"ServiceManagerTaskDescription":"String","ServiceManagerJobRecID":"String","ServiceManagerJobNo":"String","ServiceManagerJobDescription":"String","IN_Creditor_RecID":"String","SupplierPartNo":"String","IN_SupplierWarehouse_RecID":"String","OrderUnits":0,"DeliveryDays":0,"FXCost":0,"Cost":0,"CostOriginal":0,"Units":"String","TaxRateRecID":"String","TaxRateDescription":"String","TaxRate":0,"TaxRateBASCode":0,"InventoryExpectedLiabilityLedgerAccountRecID":"String","InventoryExpectedLiabilityLedgerAccountAccountNo":"String","InventoryExpectedLiabilityLedgerAccountDescription":"String","InventoryExpectedAssetLedgerAccountRecID":"String","InventoryExpectedAssetLedgerAccountAccountNo":"String","InventoryExpectedAssetLedgerAccountDescription":"String","ClassificationID":"String","ClassificationDescription":"String","CustomFieldValues":[{"SettingID":"String","SettingName":"String","Contents":"String","PluginID":"String","PluginName":"String"}]}],"ShippingAddressAddressLine1":"String","ShippingAddressAddressLine2":"String","ShippingAddressAddressLine3":"String","ShippingAddressAddressLine4":"String","ShippingAddressAddressLine5":"String","ShippingAddressCountry":"String","ShippingAddressPostCode":"String","ShippingAddressContactName":"String","ShippingAddressPhone":"String","ShippingAddressFax":"String","ShippingAddressSpare1":"String","ShippingAddressSpare2":"String","ShippingAddressSpare3":"String","ShippingAddressSpare4":"String","ShippingAddressSpare5":"String","Freight":0,"Duty":0,"Insurance":0,"FreightTaxID":"String","FreightTaxRate":0,"FreightTaxAmount":0,"DutyTaxID":"String","DutyTaxRate":0,"DutyTaxAmount":0,"InsuranceTaxID":"String","InsuranceTaxRate":0,"InsuranceTaxAmount":0,"FreightInc":0,"DutyInc":0,"InsuranceInc":0}