curl --request GET \
--url https://{cluster}.voucherify.io/v1/exports/{exportId} \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "exp_CGnCVltmWjI9V1pGlnunw2Nf",
"object": "export",
"created_at": "2022-01-13T09:03:18.293Z",
"status": "DONE",
"channel": "API",
"exported_object": "customer",
"parameters": {
"order": "",
"fields": [
"name",
"id",
"email",
"source_id",
"created_at"
],
"filters": {
"junction": "and"
},
"response_format": "CSV"
},
"result": {
"url": "{{internalVoucherifyURL}}"
},
"user_id": null
}Retrieves the URL of the downloadable file, which was generated via the Create Export method.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/exports/{exportId} \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "exp_CGnCVltmWjI9V1pGlnunw2Nf",
"object": "export",
"created_at": "2022-01-13T09:03:18.293Z",
"status": "DONE",
"channel": "API",
"exported_object": "customer",
"parameters": {
"order": "",
"fields": [
"name",
"id",
"email",
"source_id",
"created_at"
],
"filters": {
"junction": "and"
},
"response_format": "CSV"
},
"result": {
"url": "{{internalVoucherifyURL}}"
},
"user_id": null
}The access token received from the authorization server in the OAuth 2.0 flow.
Unique export object ID of previously created export. This object can be a: voucher, redemption, publication, customer, order, points_expiration, or voucher_transactions.
"exp_2bYLdY2lQ2886wmYIHyeBWUZ"
Returns the export object if a valid identifier was provided in the path.
Response body schema for GET v1/exports/{exportId}.
Unique export ID.
The type of object being represented. This object stores information about the export.
export Timestamp representing the date and time when the export was scheduled in ISO 8601 format.
Status of the export. Informs you whether the export has already been completed, i.e. indicates whether the file containing the exported data has been generated.
SCHEDULED, IN_PROGRESS, DONE, ERROR Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel value is WEBSITE.
The type of object to be exported.
voucher The channel through which the export was triggered.
Show child attributes
How the export is filtered, where the dash - preceding a sorting option means sorting in a descending order.
-created_at, created_at, -updated_at, updated_at, -code, code Array of strings containing the data in the export. These fields define the headers in the CSV file.
code, voucher_type, value, formula, discount_type, campaign, category, start_date, expiration_date, gift_balance, loyalty_balance, redemption_quantity, redemption_count, active, qr_code, bar_code, metadata, id, is_referral_code, created_at, updated_at, validity_timeframe_interval, validity_timeframe_duration, validity_day_of_week, discount_amount_limit, campaign_id, additional_info, customer_id, discount_effect, discount_unit_type, discount_unit_effect, validation_rules_id, customer_source_id Filter conditions.
Show child attributes
Filter by conditions set on the junction parameter indicating how the conditions should be accounted for in the query. An AND is an all-inclusive logical operator, meaning the AND operator displays a record if ALL the conditions separated by AND are TRUE, while an OR operator displays a record if ANY of the conditions separated by OR is TRUE.
and, or Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Show child attributes
Data filters used to narrow down the data records to be returned in the result.
Show child attributes
Unique identifier of the campaign. It is assigned by Voucherify. The campaign ID defines the campaign for which the voucher export will be triggered.
"camp_0dJG7cCAjquzcxWmZ634bA0C"
Was this page helpful?