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
Name | Type | Additional information | Description |
---|---|---|---|
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
GetPrepTimeResponseName | Type | Additional information | Description |
---|---|---|---|
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/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>c9a26a63-436e-45c4-8f35-7c238b5df2ea</d2p1:TransactionId> </ApiResult> <PrepTime>1</PrepTime> <SiteTime>2024-11-16T10:52:14.0397261-05:00</SiteTime> </GetPrepTimeResponse>