Cargos

Retrieve cargo company

get

Get details of a specific cargo company by its ID.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
chevron-right
200

Cargo company retrieved successfully.

application/json
get
/api/v1/cargos/{id}/

Update cargo company

put

Update an existing cargo company.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Body

Input schema for creating or updating a cargo company record.

namestring · max: 64Required

Name of the cargo company.

erp_codestring · max: 64Required

ERP code used for identifying the cargo company in external systems.

shipping_companystring · enumRequired

Enum value indicating the shipping company type.

Example: yurticiPossible values:
Responses
chevron-right
200

Cargo company updated successfully.

application/json
put
/api/v1/cargos/{id}/

Delete cargo company

delete

Delete a cargo permanently.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
delete
/api/v1/cargos/{id}/

No content

Partially update cargo company

patch

Partially update an existing cargo company.

Authorizations
AuthorizationstringRequired
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Body

Input schema for creating or updating a cargo company record.

namestring · max: 64Required

Name of the cargo company.

erp_codestring · max: 64Required

ERP code used for identifying the cargo company in external systems.

shipping_companystring · enumRequired

Enum value indicating the shipping company type.

Example: yurticiPossible values:
Responses
chevron-right
200

Cargo company partially updated successfully.

application/json
patch
/api/v1/cargos/{id}/

List cargo companies

get

Retrieve a paginated list of all cargo companies with filtering support.

Authorizations
AuthorizationstringRequired
Query parameters
pageinteger · min: 1Optional

Specifies the page number of the current dataset

Default: 1
limitinteger · min: 1Optional

Indicates the number of rows on the current page.

Default: 10
created_datestring · date-timeOptional

Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: created_date__gt=2024-01-01T00:00:00Z
modified_datestring · date-timeOptional

Filter by modification date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).

Example: modified_date__lt=2024-01-01T00:00:00Z
namestringOptional

Filter by name.

erp_codestringOptional

Filter by ERP code (contains)

Example: ERPCODE123
shipping_companystring · enumOptional

Shipping company options

Example: yurticiPossible values:
pkintegerOptional

Filters by primary key

pk__gtstringOptional

Filter by primary key greater than a specific value.

pk__gteintegerOptional

Filters by primary key greater than or equal to the given value

pk__ltintegerOptional

Filters by primary key less than the given value

pk__lteintegerOptional

Filters by primary key less than or equal to the given value

pk__ininteger[]Optional

Filter by multiple primary key values (comma-separated list of integers)

erp_code__exactstringOptional

Filter by exact ERP code.

Example: ERPCODE123
Responses
chevron-right
200

A paginated list of cargo companies.

application/json
get
/api/v1/cargos/

Create cargo company

post

Create a new cargo company.

Authorizations
AuthorizationstringRequired
Body

Input schema for creating or updating a cargo company record.

namestring · max: 64Required

Name of the cargo company.

erp_codestring · max: 64Required

ERP code used for identifying the cargo company in external systems.

shipping_companystring · enumRequired

Enum value indicating the shipping company type.

Example: yurticiPossible values:
Responses
post
/api/v1/cargos/

List Shipping Companies

get

Retrieve a list of all shipping companies.

Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

Successfully retrieved available shipping companies.

application/json
get
/api/v1/cargos/shipping_companies/
200

Successfully retrieved available shipping companies.

Calculate cargo cost

post

Calculate the shipping cost for a given cargo request.

Authorizations
AuthorizationstringRequired
Body
shipping_companystring · enumRequired

The shipping company for which the cost will be calculated.

Example: yurticiPossible values:
Responses
chevron-right
200

Successfully calculated cargo cost.

application/json
post
/api/v1/cargos/calculate_costs/
200

Successfully calculated cargo cost.

Last updated

Was this helpful?