PurchaseOrder Endpoint

1. Create Purchase Order

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

Parameters

  • vendorName The name of the vendor to create purchase order against.
  • originatorId The Id of the client orginating the purchase order.
  • deliverToId The Id of the client recieving the order.
  • fieldValues Takes key custom1…custom5 and their associated values
  • lineItems Takes the following keys and values, itemtype (id), partnumber, quantity (optional, defaults to 1), price

Description

Creates a new purchase order in the financial module.

2. Create Lease Purchase Order

createLeasePurchaseOrder (String vendorName, String originatorId, String deliverToId, HashMap fieldValues, HashMap lineItems, String leaseDurationId)

Parameters

  • vendorName The name of the vendor to create purchase order against.
  • originatorId The Id of the client orginating the purchase order.
  • deliverToId The Id of the client recieving the order.
  • fieldValues Takes key custom1…custom5 and their associated values
  • lineItems Takes the following keys and values, itemtype (id), partnumber, quantity (optional, defaults to 1), price, leaseDurationId

Description

Creates a new lease purchase order in the financial module.

3. Get Vendors

getVendors () (since 8.5)

Parameters

None

Description

Returns a list of all vendors defined in the system as a Map, with keys of vendor id, and value of vendor name.

4. Find Vendor

findVendors (String vendorName) (since 8.5)

Parameters

  • vendorName The name of the vendor to find a record for

Description

Returns the matching vendor defined in the system in a Map, with keys of lease ids, and values of a child Map object, containing key ‘vendorname’, mapping to the name of the vendor object.

5. Create Vendor

createVendor (String vendorName) (since 8.5)

Parameters

  • vendorName The name of the vendor to be created

Description

Returns a Map containing a key ‘ids’ with a corresponding value representing the vendor ID of the newly created vendor.

6. Get Fields for Purchase Order

getFieldsForPurchaseOrder (String poNumber)

Parameters

  • poNumber The number of the purchase order.

Description

Used to return the fields of a purchase order in the system.

7. Get Lease Durations

getLeaseDurations () (since 8.5)

Parameters

None

Description

Returns a list of all lease durations defined in the system as a Map, with keys of lease ids, and values of a child Map object, containing keys ‘durationname’ and ‘durationdays’ mapping to the name of the duration object and the number of days represented by that duration object (respectively).

8. Deliver Purchase Order

deliverPurchaseOrder (String poNumber)

Parameters

  • poNumber The number of the purchase order.

Description

Used to confirm delivery of a purchase order in the system.

9. Delete Purchase Order

deletePurchaseOrder (String poNumber)

Parameters

  • poNumber The number of the purchase order.

Description

Used to delete a purchase order in the system.