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:
| Field | Type | Description |
|---|---|---|
entryToken | String! |
Return type
The query returns theO_API_OrderExport type.
Status values
| Value | Meaning |
|---|---|
PENDING | Export has started; the zip is not ready yet. |
COMPLETED | Export succeeded. downloadUrl is populated while the file is available. |
FAILED | Export failed; trigger O_exportOrderKeys again to retry. |
downloadUrlis a short-lived presigned S3 URL. It may benullforPENDING/FAILEDexports, and also forCOMPLETEDexports whose underlying file has been cleaned up.expired: truemeans the export's retention window has passed — callO_exportOrderKeysagain to produce a fresh export.- The query returns
nullwhen theentryTokendoes 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
}
}
}