Attributes

AttributeDescription
account_id intUnique identifier for the account to which the export belongs to.
created_at timestampTime at which the export is created.
failed_reason stringReason of why the export processing failed, when relevant.
finished_at timestampTime at which the export is ready to download.
started_at timestampTime at which the export processing request started.
object stringType of the object being exported (subscriptions, customers, accounting, etc.)
updated_at timestampTime at which the export was last updated.
user_idUnique identifier for the collaborator who requested the export.
uuidUnique identifier for the export file which is created.

Export Flow

When generating data exports (e.g., payments, invoices, subscriptions) through the Pelcro API, the process follows an asynchronous flow involving three main steps.

1. Request an Export

Use the Request Export API to initiate the export process. This creates an export job and returns an export_id.

Docs: Request Export


2. Wait for the Webhook Event

After the export job is completed, Pelcro will trigger the event.export.completed webhook. Check for this event to confirm that the export file is ready for download.

Docs: Event: export.completed


3. Download the Export

Once the webhook is received, use the Download Export API to retrieve the generated file using the export ID.

Docs: Download Export


Summary Flow

StepActionAPI / Event
1Initiate export jobPOST /core/request-export
2Wait for webhookevent.export.completed
3Download export fileGET /core/download-export/{id}
4(Optional) Inspect available fieldsGET /core/export-attributes