Stock configuration API (0.1.0)
Download OpenAPI specification:Download
Use this API to configure the time (in seconds), after which a reservation expires in the NewStore platform.
When an order is placed in the platform, NewStore reserves the items specified in the order for a specified amount of time at a store or DC, so that they can be fulfilled.
For more information, see order routing.
Get reservation timeout
Retrieves the current configuration for reservation timeout set up for your business.
The value
property in the response payload contains the timeout value in seconds.
Authorizations:
Responses
Response samples
- 200
- 500
{- "value": 600,
- "updated_at": "2021-07-13T20:18:25Z"
}
Set reservation timeout
Specifies the configuration for reservation timeout set up for your business.
For more information on reservations, see the parent resource.
Authorizations:
Request Body schema: application/json
value required | integer The ATP reservation timeout. After this any unallocated reservations will be added back into ATP |
Responses
Request samples
- Payload
{- "value": 600
}
Response samples
- 400
- 500
{- "messages": [
- "string"
], - "request_id": "string"
}