POSGeneral DTO Definitions

General DTO Definitions

Data Transfer Object definitions for the requests and responses used across the POS APIs.

This section details the Data Transfer Object (DTO) definitions for the requests and responses associated with the POS APIs.

General Request Container

The tables below describe the properties for required headers and the request body.

Required Headers

PropertyType
Required/Optional
Description
Authorizationstring
required
The BASIC authentication header with credentials (key/secret) that are provided for the specific client and/or location.
Content-Typestring
required
Specifies the content type of the request body. For all POS/ECom APIs this should be application/json.

Request Body

PropertyType
Required/Optional
Description
store_idstring
required
The SessionM provided store identifier for a specific location.
client_idstring
required
The SessionM provided identifier assigned to the client.
request_idstring
required
The unique ID of the request to enforce idempotency. (A given request will only be processed once. If a subsequent request is made with the same request_id, it will return the response when one had already been generated or if it bears an error code of "pending processing".)
culturestring
optional
The culture to be returned for messages and display names.
request_payloadobject
required
The specific payload for the request.

General Response Container

The tables below describe the properties for the response body.

Response Body

PropertyType
Required/Optional
Description
statusstring
required
The status code for the response. For successful API calls, this will be "OK".
payloadobject
optional
The payload for the response.
errorsobject
optional
If status is not "OK", this property contains error details and validation details for the given API.