Skip to main content

Stock configuration API (0.1.0)

Download OpenAPI specification:Download

team-order-management: team-order-management@newstore.com

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:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "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:
newStoreAccessToken
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

Content type
application/json
{
  • "value": 600
}

Response samples

Content type
application/problem+json
{
  • "messages": [
    ],
  • "request_id": "string"
}