Cargos
Get details of a specific cargo company by its ID.
Unique identifier of the resource
1Cargo company retrieved successfully.
The date and time when the object was created.
The date and time when the object was last modified.
Unique identifier of the cargo company.
1Name of the cargo company.
UPSUnique ERP code associated with the cargo company.
UPS_001Shipping company options
yurticiPossible values: Unauthorized Access
Forbidden
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/cargos/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"pk": 1,
"name": "UPS",
"erp_code": "UPS_001",
"shipping_company": "yurtici",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}Update an existing cargo company.
Unique identifier of the resource
1Input schema for creating or updating a cargo company record.
Name of the cargo company.
ERP code used for identifying the cargo company in external systems.
Enum value indicating the shipping company type.
yurticiPossible values: Cargo company updated successfully.
The date and time when the object was created.
The date and time when the object was last modified.
Unique identifier of the cargo company.
1Name of the cargo company.
UPSUnique ERP code associated with the cargo company.
UPS_001Shipping company options
yurticiPossible values: Unauthorized Access
Forbidden
The given resource or object was not found or does not exist.
Server Error
PUT /api/v1/cargos/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"name": "text",
"erp_code": "text",
"shipping_company": "yurtici"
}{
"pk": 1,
"name": "UPS",
"erp_code": "UPS_001",
"shipping_company": "yurtici",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}Delete a cargo permanently.
Unique identifier of the resource
1No content
No content
Forbidden
The given resource or object was not found or does not exist.
DELETE /api/v1/cargos/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
Partially update an existing cargo company.
Unique identifier of the resource
1Input schema for creating or updating a cargo company record.
Name of the cargo company.
ERP code used for identifying the cargo company in external systems.
Enum value indicating the shipping company type.
yurticiPossible values: Cargo company partially updated successfully.
The date and time when the object was created.
The date and time when the object was last modified.
Unique identifier of the cargo company.
1Name of the cargo company.
UPSUnique ERP code associated with the cargo company.
UPS_001Shipping company options
yurticiPossible values: Unauthorized Access
Forbidden
The given resource or object was not found or does not exist.
Server Error
PATCH /api/v1/cargos/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"name": "text",
"erp_code": "text",
"shipping_company": "yurtici"
}{
"pk": 1,
"name": "UPS",
"erp_code": "UPS_001",
"shipping_company": "yurtici",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}Retrieve a paginated list of all cargo companies with filtering support.
Specifies the page number of the current dataset
1Indicates the number of rows on the current page.
10Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).
created_date__gt=2024-01-01T00:00:00ZFilter by modification date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).
modified_date__lt=2024-01-01T00:00:00ZFilter by name.
Filter by ERP code (contains)
ERPCODE123Shipping company options
yurticiPossible values: Filters by primary key
Filter by primary key greater than a specific value.
Filters by primary key greater than or equal to the given value
Filters by primary key less than the given value
Filters by primary key less than or equal to the given value
Filter by multiple primary key values (comma-separated list of integers)
Filter by exact ERP code.
ERPCODE123A paginated list of cargo companies.
Total number of cargo companies available.
URL of the next results page.
URL of the previous results page.
Unauthorized Access
Forbidden
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/cargos/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": "text",
"previous": "text",
"results": [
{
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
]
}Create a new cargo company.
Input schema for creating or updating a cargo company record.
Name of the cargo company.
ERP code used for identifying the cargo company in external systems.
Enum value indicating the shipping company type.
yurticiPossible values: Cargo company created successfully.
The date and time when the object was created.
The date and time when the object was last modified.
Unique identifier of the cargo company.
1Name of the cargo company.
UPSUnique ERP code associated with the cargo company.
UPS_001Shipping company options
yurticiPossible values: Unauthorized Access
Forbidden
The given resource or object was not found or does not exist.
Server Error
POST /api/v1/cargos/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"name": "text",
"erp_code": "text",
"shipping_company": "yurtici"
}{
"pk": 1,
"name": "UPS",
"erp_code": "UPS_001",
"shipping_company": "yurtici",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}Retrieve a list of all shipping companies.
Successfully retrieved available shipping companies.
GET /api/v1/cargos/shipping_companies/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Successfully retrieved available shipping companies.
{
"shipping_companies": {
"aras": "Aras Kargo",
"ups": "UPS",
"yurtici": "Yurtiçi Kargo",
"mng": "MNG Kargo",
"hbexpress": "Hepsi Express"
}
}Calculate the shipping cost for a given cargo request.
The shipping company for which the cost will be calculated.
yurticiPossible values: Successfully calculated cargo cost.
The calculated shipping cost in the system's default currency.
POST /api/v1/cargos/calculate_costs/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"shipping_company": "yurtici",
"conf": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Successfully calculated cargo cost.
{
"shipping_price": 1
}Last updated
Was this helpful?

