← Back to schema index

CepArchiveResource

JSON:API resource for an asynchronous CEP archive export.

ExtendsJsonApiResourceBase

Properties

FieldTypeDescription
typestring

JSON:API resource type. Always cep_archive.

idstring (uuid)

Resource identifier, unique within its type. It always travels as a string, even when it originates from an auto-increment column.

attributesobject

Attributes of an asynchronous CEP archive export.

statusstring

Export state — queued: Waiting in the queue; building: The archive is being built; ready: The archive is ready to download; failed: It could not be generated (see error_code); expired: The archive expired and was deleted. The terminal states are ready, failed and expired: while it is queued or building, keep polling.

fromstring (date)

Start date of the range (inclusive, YYYY-MM-DD).

tostring (date)

End date of the range (inclusive, YYYY-MM-DD).

item_countinteger | null

Number of CEPs included in the archive. null until the export is ready.

size_bytesinteger | null

Size of the ZIP archive in bytes. null until the export is ready.

error_codestring | null

Cause of the failure when status is failed — range_too_large: The range exceeds the maximum CEPs per export; no_ceps: The range no longer has CEPs available; storage_full: The service has no room to store the archive; build_failed: Building the archive failed. null in any other state.

created_atstring (date-time)

Moment the export was requested, in UTC.

completed_atstring | null

Moment it finished (ready or failed), in UTC. null while in progress.

expires_atstring | null

Moment from which the archive can no longer be downloaded, in UTC: 24 hours after completed_at. null until the export is ready.

linksobject

Export links. download appears only when the state is ready.

selfstring

Path of this export, to check its status.

downloadstring

Download path of the ZIP. Present only when the status is ready.

Used in operations

  • POST /v1/finance/ceps/exports
  • GET /v1/finance/ceps/exports
  • GET /v1/finance/ceps/exports/{id}

Referenced by schemas