1.8 Purchase Order API

1.8.1 Create Purchase Order

Syntax

createPurchaseOrder (String vendorName, String originatorId, String deliverToId, HashMap fieldValues, HashMap lineItems)

Description

This API is used to create a new purchase order in the financial module.

Parameters

The following are the input parameters for this API:

  1. vendorName: The name of the vendor to create purchase order against.

  2. originatorId: The Id of the client originating the purchase order.

  3. deliverToId: The Id of the client receiving the order.

  4. fieldValues: The map of field values which takes key custom1…custom5 and their associated values

  5. lineItems: The map of field values which takes keys and values, itemtype (id), partnumber, quantity (optional, defaults to 1), price.

Return Value

None

1.8.2 Create Lease Purchase Order

Syntax

createcreateLeasePurchaseOrder PurchaseOrder (String vendorName, String originatorId, String deliverToId, HashMap fieldValues, HashMap lineItems, String leaseDurationId)

Description

This API is used to create a new lease purchase order in the financial module.

Parameters

The following are the input parameters for this API:

  1. vendorName: The name of the vendor to create purchase order against.

  2. originatorId: The Id of the client originating the purchase order.

  3. deliverToId: The Id of the client receiving the order.

  4. fieldValues: The map of field values which takes key custom1…custom5 and their associated values

  5. lineItems: The map of field values which takes keys and values, itemtype (id), partnumber, quantity (optional, defaults to 1), price, leaseDurationId.

Return Value

None

1.8.3 Deliver Purchase Order

Syntax

deliverPurchaseOrder (String poNumber)

Description

This API is used to confirm delivery of a purchase order in the system.

Parameters

The following are the input parameters for this API:

  1. poNumber: The number of the purchase order.

Return Value

None

1.8.4 Get Fields For Purchase Order

Syntax

getFieldsForPurchaseOrder (String poNumber)

Description

This API returns the fields of a purchase order in the system.

Parameters

The following are the input parameters for this API:

  1. poNumber: The number of the purchase order.

Return Value

None

1.8.5 Delete Purchase Order

Syntax

deletePurchaseOrder (String poNumber)

Description

This API is used to delete a purchase order.

Parameters

The following are the input parameters for this API:

  1. poNumber: The number of the purchase order.

Return Value

None