GET Get Prep Time

Retrieves the next available time for the store to accept orders, along with the sites current time.

URI template

v1/Stores/{storeIdentifier}/PrepTime/ForOrderMode/{orderMode}?timeout={timeout}

Request Information

URI Parameters

NameTypeAdditional informationDescription
storeIdentifier integer

Required

The store to send the command to

orderMode OrderModeType

Required

The ordermode you want used for time generation

timeout integer

Default value is 30000

The timeout for this command

Body Parameters

None.

Response Information

Resource Description

A GetPrepTimeResponse object, which contains the StoreApiResponse, SiteTime, and PrepTime

GetPrepTimeResponse
NameTypeAdditional informationDescription
ApiResult StoreApiResponse

None.

The result returned by the Api

PrepTime integer

None.

Requested prep time (in minutes) at the store

SiteTime date

None.

Local time at the store

Response Formats

application/json, text/json

Sample:
{
  "PrepTime": 1,
  "SiteTime": "2024-07-27T03:55:53.606515+00:00",
  "ApiResult": {
    "$id": "2",
    "TransactionId": "eafe3e3c-57de-4e1b-b435-d26c4a2b438c",
    "ResultCode": 2,
    "ResultMessage": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<GetPrepTimeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoreConnect.Responses.ResponseObjects.StoreResponses">
  <ApiResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/StoreConnect.Responses" xmlns="http://schemas.datacontract.org/2004/07/StoreConnect.Responses.ResponseObjects">
    <d2p1:ResultCode>2</d2p1:ResultCode>
    <d2p1:ResultMessage>sample string 3</d2p1:ResultMessage>
    <d2p1:TransactionId>eafe3e3c-57de-4e1b-b435-d26c4a2b438c</d2p1:TransactionId>
  </ApiResult>
  <PrepTime>1</PrepTime>
  <SiteTime>2024-07-27T03:55:53.606515+00:00</SiteTime>
</GetPrepTimeResponse>