curl --request GET \
--url https://{cluster}.voucherify.io/v1/exports/{export_Id} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'"ID,Code,Voucher Type,Value v_mKNYXWf5168jyW3EvwnAf73d7vnTiXaa,iuCvt3BT,GIFT_VOUCHER,2000.00 v_xb5KuIw90ViUY7NrNbDZzf1JwFmyTUi0,M3X8IwW8,GIFT_VOUCHER,2000.00 v_flCSHFGOfjxuM582jhriJTWQuetb2xHX,6vpzmKaC,GIFT_VOUCHER,2050.00 v_YtzZG4UJaWm9DNCY3AvIqVbc7Dt5WToU,lRvBOUPl,LOYALTY_CARD,0"Download the contents of the exported CSV file.
๐ Important notes
Base URL:
https://download.voucherify.io(Europe)https://us1.download.voucherify.io(US)https://as1.download.voucherify.io(Asia)Token: Can be found within the
resultparameter of the Get Export method response.Authentication headers are still required. The
tokenquery parameter identifies the export โ it does not replace your API credentials. Every download request must also send yourX-App-IdandX-App-Tokenheaders (or an OAuth token).The token is short-lived. If a
401 Unauthorizedis returned even with correct credentials, call Get Export again to obtain a freshresult.urland download immediately.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/exports/{export_Id} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'"ID,Code,Voucher Type,Value v_mKNYXWf5168jyW3EvwnAf73d7vnTiXaa,iuCvt3BT,GIFT_VOUCHER,2000.00 v_xb5KuIw90ViUY7NrNbDZzf1JwFmyTUi0,M3X8IwW8,GIFT_VOUCHER,2000.00 v_flCSHFGOfjxuM582jhriJTWQuetb2xHX,6vpzmKaC,GIFT_VOUCHER,2050.00 v_YtzZG4UJaWm9DNCY3AvIqVbc7Dt5WToU,lRvBOUPl,LOYALTY_CARD,0"Authorizations
Path Parameters
Unique export object ID.
"exp_ex6zq0x0EEa9S0N68QcqhxcQ"
Query Parameters
Token that was issued to the export, to get this token, get the export first
Response
Returns contents of CSV file.
The response is of type string.
Was this page helpful?

