Exports

Retrieve an export

get

Get details of a specific export record by ID.

Authorizations
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
200

Export details.

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"
}

List exports

get

Retrieve a list of export records with optional filtering. Non-superusers can only see their own records.

Authorizations
Query parameters
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
statusstring · enumOptional

Filter by the export status.

Example: completedPossible values:
format_typestring · enumOptional

Filter by the export file format.

Example: csvPossible values:
Responses
200

A list of exports.

application/json
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"
  }
]

Set export as cancelled

post

Mark an export record as cancelled. Only accessible by superusers.

Authorizations
Path parameters
idintegerRequired

Unique identifier of the resource

Example: 1
Responses
200

Export successfully cancelled.

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?