Application Settings Services
All services related to application settings are listed in this page.
GET
List Application Settings
GET
List Application SettingsThis service is used to retrieve all application settings with detailed information.
Path: /api/v1/oms/settings/application_settings/
Query Parameters
The following query parameters can be used to get information about application settings.
token
string
header
The API key of the customer account
Example Request
To get a list of all application settings, a GET
request should be sent to the /api/v1/oms/settings/application_settings/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API returns all the application settings. The response body contains JSON
objects of application settings and their attributes such as ID, key and json_value.
These attributes are described in the following table.
id
integer
The ID of the application setting
key
string
The key info of the application setting
json_value
string
The value info of the application setting
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Retrieve Single Application Setting Detail
GET
Retrieve Single Application Setting DetailThis service is used to retrieve detailed information about a single application setting with a specific ID.
Path: /api/v1/oms/settings/application_settings/{id}/
Query Parameters
The following query parameters can be used to get the information about a specific application setting.
token
string
header
The API key of the customer account
{id}
integer
url
The ID of the application setting
Example Request
To retrieve detailed information of a specific application setting, a GET
request should be sent to the /api/v1/oms/settings/application_settings/{id}/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API returns the detailed information of a specific application setting. The response body contains a JSON
object with the attributes such as ID, key and json_value.
These attributes are described in the following table.
id
integer
The ID of the application setting
key
string
The key info of the application setting
json_value
string
The value info of the application setting
This example response serves as a reference to understand the structure and data format returned from this API service. It is showed ORDER_FILTERING
setting as an example.
GET
Retrieve Application Setting Fields
GET
Retrieve Application Setting FieldsEvery application setting has unique key
. json_value
of every application setting differs according to its key
.
This service is used the get the json_value
details of a specific key
.
Path: /api/v1/oms/settings/application_settings/settings_fields/
Query Parameters
The following query parameters can be used to get the information about json value of a specidic application setting
The settings_key
field is mandatory; otherwise, the server will respond with a 400 Bad Request error.
token
string
header
The API key of the customer account
settings_key
string
params
The key of the application setting
These are the list of setting keys
in the system.
You can provide one of them as a query parameter.
GEOCODE_PROVIDER_SETTINGS
GEOLOCATION_DISCOVERY
MAX_FULFILMENT_TIME_OF_ORDER_ITEM
OMNITRON_CLIENT_SETTINGS
ORDER_ITEM_EXCLUSION_METHODS
ORDER_FILTERING
PACKAGE_NUMBER_GENERATOR_PATTERN
IS_CLICK_AND_COLLECT_ENABLED
SHIPPED_THRESHOLD_DAYS
IS_RESERVATION_ACTIVE
COD_FEE_BASE_CODE_VALUE
MIN_ORDER_OMNITRON_ID
OMNITRON_APPLICATION_ID
CLASS_MAPPING
IS_TRADEIN_ENABLED
ALLOWED_PACKAGE_STATES_FOR_RESERVATION
ALLOWED_TRANSFER_STATES_FOR_RESERVATION
IS_THE_PICKUP_LOCATION_FROM_THE_STORE_PACKING_CENTER
Example Request
To get a details of json_value of a specific application setting, a GET
request should be sent to the /api/v1/oms/settings/application_settings/settings_fields/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API returns the json_value details of given application setting. The response body contains a JSON
object with the attributes such as type, required, children etc.
These attributes are described in the following table.
type
string
What kind of data will be stored in the application setting for example an object, list or integer ?
required
boolean
Is it required to show application setting on the frontend ?
read_only
boolean
Is the application setting read only or can be updated ?
label
string
label of the application setting
children
json
Sub fields of the application setting (if it has)
This example responses serve as a reference to understand the structure and data format returned from this API service.
ORDER_FILTERING
setting has a json_value
as follows:
SHIPPED_THRESHOLD_DAYS
setting has a json_value
as belows.
POST
Create Application Setting
POST
Create Application SettingThis service is used to create a new application setting with the request body.
Path: /api/v1/oms/settings/application_settings/
Request Body
The following request body parameters can be used to create an application setting object.
token
string
header
The API key of the customer account
key
string
body
The key of the application setting
json_value
string
body
The json value of the application setting
json_value
parameter differs for each other application setting. The value of this field must be obtained from the Application Settings Fields
service by key.
For instance, ORDER_FILTERING
setting has a request body as follows:
SHIPPED_THRESHOLD_DAYS
setting has a request body as follows:
Example Request
To create a new application setting, a POST request should be sent to the /api/v1/oms/settings/application_settings/
endpoint.
Here's an example of how to make the request in python:
Example Response (201 Created)
In a successful response with a status code of 201 Created, the API indicates that a new application setting has been successfully created.The response body contains a JSON object representing the newly created application setting, including its unique ID and any additional information provided during the creation process.
token
string
header
The API key of the customer account
key
string
body
The key of the application setting
json_value
string
body
The json value of the application setting
This example response serves as a reference to understand the structure and data format returned when a new application setting is created successfully.
Example Response (400 Bad Request)
In an unsuccessful response with a status code of 400 Bad Request, the API indicates that the request could not be processed due to client error. The response body contains a JSON object that provides additional information about the error, including an error message or validation errors.
This example response serves as a reference to understand the structure and data format returned when a request fails due to client error.
PUT
Update Application Setting
PUT
Update Application SettingThis service is used to update an aplication setting with the request body.
Path: /api/v1/oms/settings/application_settings/{id}/
Request Body
The following request body parameters can be used to update an application setting.
token
string
header
The API key of the customer account
json_value
string
body
The json value of the application setting
Example Request
To update an application setting, a PUT
request should be sent to the /api/v1/oms/settings/application_settings/{id}/
endpoint.
Here's an example of how to make the request in python:
Example Response (200 OK)
In a successful response with a status code of 200 OK, the API indicates that the application setting has been successfully updated. The response body does not contain any messages or json objects.
Last updated
Was this helpful?