Exports
Get details of a specific export record by ID.
Unique identifier of the resource
1Export details.
Unique identifier for the export.
550e8400-e29b-41d4-a716-446655440000Name of the export action.
export_ordersNumber of records collected for the export.
0Example: 120An error occurred while exporting data.Number of records that failed to export.
0Example: 5Path to the uploaded filter file.
File format for the export.
csvExample: csvPossible values: Language code for the export.
enID of the last record exported.
0Example: 42Current page number for the export.
1Example: 2List of fields requested for the export.
["id","name","price"]API path to request data for the export.
/api/orders/export/ID of the user who requested the export.
550e8400-e29b-41d4-a716-446655440001Path or URL to the result file.
/media/exports/results/orders_export.csvTotal number of records to be exported.
0Example: 150waitingExample: processingPossible values: List of uploaded file parts.
["part_1.csv","part_2.csv"]The name of the viewset associated with the export.
OrderExportViewSetCreation Date
Last Modification Date
The given resource or object was not found or does not exist.
GET /api/v1/exports/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"action_name": "export_orders",
"collected_count": 120,
"error_message": "An error occurred while exporting data.",
"fail_count": 5,
"filter_file": "binary",
"format_type": "csv",
"language": "en",
"last_instance_id": 42,
"page": 2,
"request_fields": [
"id",
"name",
"price"
],
"request_path": "/api/orders/export/",
"requested_by": "550e8400-e29b-41d4-a716-446655440001",
"result_file": "/media/exports/results/orders_export.csv",
"total_count": 150,
"status": "processing",
"uploaded_parts": [
"part_1.csv",
"part_2.csv"
],
"viewset": "OrderExportViewSet",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}Retrieve a list of export records with optional filtering. Non-superusers can only see their own records.
Filter 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 the export status.
completedPossible values: Filter by the export file format.
csvPossible values: A list of exports.
Unique identifier for the export.
550e8400-e29b-41d4-a716-446655440000Name of the export action.
export_ordersNumber of records collected for the export.
0Example: 120An error occurred while exporting data.Number of records that failed to export.
0Example: 5Path to the uploaded filter file.
File format for the export.
csvExample: csvPossible values: Language code for the export.
enID of the last record exported.
0Example: 42Current page number for the export.
1Example: 2List of fields requested for the export.
["id","name","price"]API path to request data for the export.
/api/orders/export/ID of the user who requested the export.
550e8400-e29b-41d4-a716-446655440001Path or URL to the result file.
/media/exports/results/orders_export.csvTotal number of records to be exported.
0Example: 150waitingExample: processingPossible values: List of uploaded file parts.
["part_1.csv","part_2.csv"]The name of the viewset associated with the export.
OrderExportViewSetCreation Date
Last Modification Date
Forbidden
GET /api/v1/exports/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"action_name": "export_orders",
"collected_count": 120,
"error_message": "An error occurred while exporting data.",
"fail_count": 5,
"filter_file": "binary",
"format_type": "csv",
"language": "en",
"last_instance_id": 42,
"page": 2,
"request_fields": [
"id",
"name",
"price"
],
"request_path": "/api/orders/export/",
"requested_by": "550e8400-e29b-41d4-a716-446655440001",
"result_file": "/media/exports/results/orders_export.csv",
"total_count": 150,
"status": "processing",
"uploaded_parts": [
"part_1.csv",
"part_2.csv"
],
"viewset": "OrderExportViewSet",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
]Mark an export record as cancelled. Only accessible by superusers.
Unique identifier of the resource
1Export successfully cancelled.
Unique identifier for the export.
550e8400-e29b-41d4-a716-446655440000Name of the export action.
export_ordersNumber of records collected for the export.
0Example: 120An error occurred while exporting data.Number of records that failed to export.
0Example: 5Path to the uploaded filter file.
File format for the export.
csvExample: csvPossible values: Language code for the export.
enID of the last record exported.
0Example: 42Current page number for the export.
1Example: 2List of fields requested for the export.
["id","name","price"]API path to request data for the export.
/api/orders/export/ID of the user who requested the export.
550e8400-e29b-41d4-a716-446655440001Path or URL to the result file.
/media/exports/results/orders_export.csvTotal number of records to be exported.
0Example: 150waitingExample: processingPossible values: List of uploaded file parts.
["part_1.csv","part_2.csv"]The name of the viewset associated with the export.
OrderExportViewSetCreation Date
Last Modification Date
Forbidden
The given resource or object was not found or does not exist.
POST /api/v1/exports/{id}/set_cancel/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"action_name": "export_orders",
"collected_count": 120,
"error_message": "An error occurred while exporting data.",
"fail_count": 5,
"filter_file": "binary",
"format_type": "csv",
"language": "en",
"last_instance_id": 42,
"page": 2,
"request_fields": [
"id",
"name",
"price"
],
"request_path": "/api/orders/export/",
"requested_by": "550e8400-e29b-41d4-a716-446655440001",
"result_file": "/media/exports/results/orders_export.csv",
"total_count": 150,
"status": "processing",
"uploaded_parts": [
"part_1.csv",
"part_2.csv"
],
"viewset": "OrderExportViewSet",
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}Last updated
Was this helpful?

