Skip to main content

Update Order Settings

Updates the order settings of the project

HTTP Request

PATCH/api/settings/orders

Authorization

Authorization

  • Required: Yes
  • Permission: Staff with OrdersSettingsPermission or Admin
  • Permission Code: 1027
  • Authentication: Token authentication

Request Body

FieldTypeRequiredDescription
orders_quantity_reserve_durationIntegerNoThe duration in seconds which the product quantities in an order will be reserved (default: 300)

Example Requests

1import requests
2
3# Update order settings
4response = requests.patch('http://www.example.com/api/settings/orders', 
5  headers={'Authorization': 'Token <your_api_key>'},
6  json={
7      "orders_quantity_reserve_duration": 600
8  }
9)
10print(response.json())

Response Fields

FieldTypeDescription
orders_quantity_reserve_durationIntegerThe duration in seconds which the product quantities in an order will be reserved (default: 300)

Example Response

{
"orders_quantity_reserve_duration": 360
}