Methods: Warehouses

Closed

Driver Type: SASI

Use this method to change the status of one or more warehouses to Closed.

Create

Driver Type: SASI

Use this method to create one or more warehouses. This method only creates a warehouse. If the warehouse already exists, an error message is produced and the payload is rejected.

CreateAsDraft

Driver Type: SASI

Use this method to create one or more draft warehouses.

CreateOrAmend

Driver Type: SASI

This method creates a warehouse if it does not exist already and amends it if it does. Whereas the Create method depends on you to know whether the data exists in advance, this method can be used if you are unsure.

Delete

Driver Type: SASI

Use this method to delete a warehouse.

DeleteChildData

Driver Type: SASI

Use this method to delete child data (Assign to Warehouse Groups, Document Formats, Storage Characteristics) but retain the parent record (Warehouse).

It is also possible to delete 'grandchild' data. The deletion of child and grandchild data is controlled by a <DeletionFlag> node at child level. If the flag is set to Y, both child and grandchild is deleted. Otherwise, the child data is retained.

For example, the <Characteristics> node contains child data, and the <NumericValues> node contains grandchild data. The <DeletionFlag> node is set to Y, so the <DiscreteValueNumeric> data is deleted first, followed by the <CharacteristicCode> data:

<Warehouses>
		<WarehouseCode>TEST</WarehouseCode>
		<Characteristics>
				<DeletionFlag>
						<DeleteCharacteristicAfterDiscreteValue>Y</DeleteCharacteristicAfterDiscreteValue>
				</DeletionFlag>
				<CharacteristicCode>CHILLED</CharacteristicCode>
				<NumericValues>
						<DiscreteValueNumeric>2</DiscreteValueNumeric>
				</NumericValues>
		</Characteristics>
</Warehouses>

Hidden

Driver Type: SASI

Use this method to change the status of one or more warehouses to Hidden.

Open

Driver Type: SASI

Use this method to change the status of one or more warehouses to Open.

Query

Driver Type: Export

Use this method to obtain warehouse details or to extract warehouse data from SunSystems.

Suspended/Held

Driver Type: SASI

Use this method to change the status of one or more warehouses to Suspended/Held.