Exports
Get details of a specific export record by ID.
Authorizations
Path parameters
idintegerRequiredExample:
Unique identifier of the resource
1
Responses
200
Export details.
application/json
404
The given resource or object was not found or does not exist.
application/json
get
GET /api/v1/exports/{id}/ HTTP/1.1
Host: sandbox.akinon.com
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": "2025-08-31T03:24:06.208Z",
"modified_date": "2025-08-31T03:24:06.208Z"
}
Retrieve a list of export records with optional filtering. Non-superusers can only see their own records.
Authorizations
Query parameters
created_datestring · date-timeOptionalExample:
Filter by creation date using supported lookup expressions (e.g., gt
, gte
, lt
, lte
, date__gt
, etc.).
created_date__gt=2024-01-01T00:00:00Z
statusstring · enumOptionalExample:
Filter by the export status.
completed
Possible values: format_typestring · enumOptionalExample:
Filter by the export file format.
csv
Possible values: Responses
200
A list of exports.
application/json
403
Forbidden
get
GET /api/v1/exports/ HTTP/1.1
Host: sandbox.akinon.com
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": "2025-08-31T03:24:06.208Z",
"modified_date": "2025-08-31T03:24:06.208Z"
}
]
Mark an export record as cancelled. Only accessible by superusers.
Authorizations
Path parameters
idintegerRequiredExample:
Unique identifier of the resource
1
Responses
200
Export successfully cancelled.
application/json
403
Forbidden
404
The given resource or object was not found or does not exist.
application/json
post
POST /api/v1/exports/{id}/set_cancel/ HTTP/1.1
Host: sandbox.akinon.com
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": "2025-08-31T03:24:06.208Z",
"modified_date": "2025-08-31T03:24:06.208Z"
}
Was this helpful?