Order Lines

Attributes

  • number integer

    The sequence number of the order line.

  • hostIdentification string

    A unique value at the order line level that can be carried through from ERP to PPG and back to ERP.

  • materialId uuid

    The material on the order line.

  • quantity integer

    The quantity to be processed on the order line.

  • expiryDate datetime

    The Expiry date to be processed on the order line.

  • releaseDate datetime

    The Release date to be processed on the order line.

  • productionDate datetime

    The Production date to be processed on the order line.

  • info1 string

  • info2 string

  • info3 string

  • info4 string

  • info5 string

  • [DynamicField] string

Endpoints

List Order Lines

/api/order_lines

Arguments

  • limit integer

    A limit on the number of objects to be returned. Limit can range between 1 and 1000, and the default is 25.

  • [DynamicField]

    Any dynamic fields that have been set up can be used as a filter.

Request with curl
curl "http://[Your IP] /api/order_lines" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "order lines": [{ "number": "integer", "hostIdentification": "string", "materialId": "uuid", "quantity": "integer", "expiryDate": "datetime", "releaseDate": "datetime", "productionDate": "datetime", "info1": "string", "info2": "string", "info3": "string", "info4": "string", "info5": "string", "[DynamicField]": "string", }] }

Show Order Line

/api/order_lines/[id]

Get a specific order line from the PPG database and return a JSON response. The order will be pulled from the MasterOrderLine table.

Arguments

Request with curl
curl "http://[Your IP] /api/order_lines/[id]" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "order lines": [{ "number": "integer", "hostIdentification": "string", "materialId": "uuid", "quantity": "integer", "expiryDate": "datetime", "releaseDate": "datetime", "productionDate": "datetime", "info1": "string", "info2": "string", "info3": "string", "info4": "string", "info5": "string", "[DynamicField]": "string", }] }

Create Order Line

/api/order_lines

Create an order line, to be imported by PowerPick.

Arguments

  • number integer

    The sequence number of the order line.

  • hostIdentification string

    A unique value at the order line level that can be carried through from ERP to PPG and back to ERP.

  • materialName string

    The name of the material on the order line.

  • quantity integer

    The quantity to be processed on the order line.

  • batchName string

    The Lot or Batch number of the material on the order line.

  • qualification string

    A specified attribute of the material on the order line.

  • serialNumber string

    The unique serial number at the unit level of the material on the order line.

  • expiry datetime

    The Expiry date to be processed on the order line.

  • releaseDate datetime

    The Release date to be processed on the order line.

  • productionDate datetime

    The Production date to be processed on the order line.

  • info1 string

  • info2 string

  • info3 string

  • info4 string

  • info5 string

  • [DynamicField]

    Any field set up in PowerPick.

Request with curl
curl "http://[Your IP] /api/order_lines" \ -X post \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "order lines": [{ "number": "integer", "hostIdentification": "string", "materialId": "uuid", "quantity": "integer", "expiryDate": "datetime", "releaseDate": "datetime", "productionDate": "datetime", "info1": "string", "info2": "string", "info3": "string", "info4": "string", "info5": "string", "[DynamicField]": "string", }] }

Delete Order Line

/api/order_lines/[id]/delete

Delete an order line.

Arguments

Request with curl
curl "http://[Your IP] /api/order_lines/[id]/delete" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "order lines": [{ "number": "integer", "hostIdentification": "string", "materialId": "uuid", "quantity": "integer", "expiryDate": "datetime", "releaseDate": "datetime", "productionDate": "datetime", "info1": "string", "info2": "string", "info3": "string", "info4": "string", "info5": "string", "[DynamicField]": "string", }] }