Admin API / Types

ListingExport

Object

An NDJSON export of every listing, hidden listings included, in parts. One JSON record a line, in ascending listing ID across all parts. Each ADMIN or higher reads the exports that this client started. It lives 7 days.

Requires a client key with one of these scopes: admin:products:read

The requirement applies to every field of ListingExport unless that field declares its own scopes.

type ListingExport implements Node

Fields

FieldTypeDescription
createdAtDateTime!
When the export was requested.
expiresAtDateTime!
When the export is deleted. The export resolves null after this instant.
failureCodeListingExportFailureCode
Why the export failed. Null unless the status is FAILED.
idID!
A globally unique ID. Treat this value as an opaque string.
parts[ListingExportPart!]
The parts in index order. The export file is the bytes of all parts in this order. Null until READY. An empty list when there are no listings.
recordCountNonNegativeInt
The number of records in all parts. Null until READY.
sizeBytesNonNegativeInt
The byte size of all parts. Null until READY.
snapshotAtDateTime
The createdAt of the export, set with READY. The file holds every change that ended before it, and can hold later changes. Null until READY.
sortKeyListingExportSortKey!
The sort key of the records across all parts. Always LISTING_ID.
statusGeneratedFileStatus!
The export state. A PENDING export older than 1 hour reads FAILED.

Returned by