O_orderExport

Returns the most recent key-export record for the wholesale order identified by entryToken. Used together with O_exportOrderKeys to download the generated zip of keys once the export has completed.

To list your API orders and discover their entryToken values, see O_orders.

This query requires the wholesale buyer role on your account. Contact Eneba support if you receive a 403 or an access-denied error.

Supported arguments

The following arguments are supported by O_orderExport query:

FieldTypeDescription
entryTokenString!

Return type

The query returns the O_API_OrderExport type.

Status values

ValueMeaning
PENDINGExport has started; the zip is not ready yet.
COMPLETEDExport succeeded. downloadUrl is populated while the file is available.
FAILEDExport failed; trigger O_exportOrderKeys again to retry.
  • downloadUrl is a short-lived presigned S3 URL. It may be null for PENDING / FAILED exports, and also for COMPLETED exports whose underlying file has been cleaned up.
  • expired: true means the export's retention window has passed — call O_exportOrderKeys again to produce a fresh export.
  • The query returns null when the entryToken does not match an order owned by the caller, or when no export has been started for that order yet.

Example usage

Query

query OrderExport($entryToken: String!) {
  O_orderExport(entryToken: $entryToken) {
    id
    status
    downloadUrl
    expired
  }
}

Variables:

{
  "entryToken": "a1b2c3d4-1234-11ee-be56-0242ac120002"
}

Example response — completed export

{
  "data": {
    "O_orderExport": {
      "id": "c3d4e5f6-3456-11ee-be56-0242ac120002",
      "status": "COMPLETED",
      "downloadUrl": "https://s3.eu-central-1.amazonaws.com/eneba-order-exports/c3d4e5f6-3456-11ee-be56-0242ac120002?X-Amz-Signature=...",
      "expired": false
    }
  }
}

Example response — pending export

{
  "data": {
    "O_orderExport": {
      "id": "c3d4e5f6-3456-11ee-be56-0242ac120002",
      "status": "PENDING",
      "downloadUrl": null,
      "expired": false
    }
  }
}
Copyright 2026 Eneba. All Rights Reserved. JSC “Helis play”, Gyneju St. 4-333, Vilnius, the Republic of Lithuania