Warning: This document is for an old version of Grey Matter. The latest version is v10.1.0.

Service Request Object

serviceRequest

A service request object represents a pick/put/other service request in the system and keeps track of it’s life cycle.

Attributes:

externalServiceRequestId

optional string

This is an external service request id that can be used to track this service request. Even if this is not provided, there is an internal unique id of each service request.

This id must be unique across service request type.

id

integer

An auto-generated unique internal id for this service request.

type

string

This denotes the type of the service request. The service request’s handling is based on it’s type. For example, PICK, PUT.

attributes

optional dict

This contains options key-value attributes that behave as the metadata of the service request.

expectations

dict

This object denotes what is expected from the service request. The internal format of this can be different for different types of service requests.

This object is of the form: { "containers": [ container ]}.

actuals

dict

This object denotes the outcome of the service request. This gets updated real time as the service request is going through it’s life cycle.

This object is of the form: { "containers": [ container ]}.

state

string

The denotes the state of the service request in it’s life cycle. Possible states can be different for different types of service request.

serviceRequests

list

This is a list of child serviceRequest objects under this service request. In case there are no child service requests, this list should be empty.

container

This is an object which holds details of expectations or actuals in a service request. This is a nestable object, i.e, containers can have containers inside them.

Attributes

products

list

This denotes a list of products. The object representing a product might be different for different type of service requests, and different in expectations and actuals.

type

string, default VIRTUAL

This denotes the type of the container and tells if the inventory coming in is coming inside an inventory carrier.

  • MARKED - barcoded inventory carrier
  • UNMARKED - non-barcoded inventory carrier.
  • VIRTUAL - no inventory carrier.
state

string

This denotes the state of this container. Mostly used in actuals to denote the state of part of the execution of the service request.

containerAttributes

dict

This holds optional metadata related to the container as key-value pairs.