Cargo Company Condition Services
All services that give information about cargo company conditions are listed in this document.
GET
Cargo Company Condition List
GET
Cargo Company Condition ListReturns all cargo company conditions.
Path: /api/v1/oms/cargo-company-conditions/
Query Parameters
The following query parameters can be used to get the information about cargo company conditions.
token
string
header
The API key of the customer account
Example Request
To get a list of all conditions, a GET
request should be sent to
the /api/v1/oms/cargo-company-conditions/
endpoint. In the headers, set
the Authorization
header to include the token for authentication.
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
cargo company conditions. The response body contains a JSON
object with
the cargo company conditions and their attributes such as ID, cargo_company and
rules_configuration.
These attributes are described in the following table.
id
integer
The ID of the condition
cargo_company
integer
The cargo company id of the condition
rules_configuration
dict
The configuration settings of the condition
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Cargo Company Condition Retrieve
GET
Cargo Company Condition RetrieveReturns the information of the given cargo company condition with id.
Path: /api/v1/oms/cargo-company-conditions/{id}/
Query Parameters
The following query parameters can be used to get the information about cargo company conditions.
token
string
header
The API key of the customer account
{id}
integer
url
The ID of the cargo company condition
Example Request
To retrieve information of given cargo company condition, a GET
request
should be sent to the /api/v1/oms/cargo-company-conditions/{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
information of given cargo company condition. The response body contains
a JSON
object with the cargo company conditions and their attributes such as
ID, cargo_company and rules_configuration.
These attributes are described in the following table.
id
integer
The ID of the condition
cargo_company
integer
The cargo company id of the condition
rules_configuration
dict
The configuration settings of the condition
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Available Cargo Company Conditions
GET
Available Cargo Company ConditionsReturns all cargo company condition types in the system.
Path: /api/v1/oms/cargo-company-conditions/available-cargo-company-conditions/
Query Parameters
The following query parameters can be used to get the information about condition types.
token
string
header
The API key of the customer account
Example Request
To get a list of condition types, a GET
request should be sent to
the /api/v1/oms/cargo-company-conditions/available-cargo-company-conditions/
endpoint. In the headers, set the Authorization
header to include the token
for authentication.
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
condition types in the system. The response body contains a JSON
object of
condition types and their attributes such as slug, label, klass and
parameter_type.
These attributes are described in the following table.
slug
string
The unique value of the condition
label
string
The name of the condition
klass
string
The configuration class of the condition
parameter_type
string
According to what is the condition checked?
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Sales Channels
GET
Sales ChannelsReturns all marketplace applications available for this usage.
Path: /api/v1/oms/cargo-company-conditions/cargo_companies/
Query Parameters
The following query parameters can be used to get the information about sales channels.
token
string
header
The API key of the customer account
Example Request
To get a list of marketplace applications, a GET
request should be sent to
the /api/v1/oms/cargo-company-conditions/cargo_companies/
endpoint. In the headers, set the Authorization
header to include the token
for authentication.
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
marketplace applications available for this usage. The response body contains a
Python dictionary of sales channels in key-value
format.
This data is consistent for all users.
This example response serves as a reference to understand the structure and data format returned from this API service.
GET
Cargo Company Fields
GET
Cargo Company FieldsReturns configuration fields of the given value.
Path: /api/v1/oms/cargo-company-conditions/cargo_company_fields/
Query Parameters
The following query parameters can be used to get the information about the configuration fields.
token
string
header
The API key of the customer account
condition_type
string
query parameter
One of the sales channel value given above (required)
Example Request
To get the configuration fields of the given value, a GET
request should be
sent to the /api/v1/oms/cargo-company-conditions/cargo_company_fields/?condition_type=<value>
endpoint. In the headers, set the Authorization
header to include the token
for authentication.
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
configuration fields of the given value.The response body contains
a JSON
object, which varies from one value to another.
This is an example of the response for the trendyol
:
Path: /api/v1/oms/cargo-company-conditions/cargo_company_fields/?condition_type=trendyol
This is an example of the response for the cargo_company
:
Path: /api/v1/oms/cargo-company-conditions/cargo_company_fields/?condition_type=cargo_company
This is an example of the response for the n11
:
Path: /api/v1/oms/cargo-company-conditions/cargo_company_fields/?condition_type=n11
The API response indicates that there are no configurable settings associated with the n11
value.
Last updated
Was this helpful?