Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The campaign ID or name of the campaign being enabled. You can either pass the campaign ID, which was assigned by Voucherify or the name of the campaign as the path parameter value.
"camp_rRsfatlwN7unSeUIJDCYedal"
Body
The file path is stored in the form file
header.
Request body schema for POST v1/campaigns/{campaignId}/importCSV
.
Request body schema for importing data using a CSV file.
File path.
Response
Returns the ID of the scheduled asynchronous action, informing you that your request has been accepted and the vouchers will be imported to the repository asynchronously. To check the status and result, copy the async_action_id
from the response and pass it using <!-- [Get Async Action](OpenAPI.json/paths/~1async-actions~1{asyncActionId}/get) -->Get Async Action endpoint.
Response body schema for POST v1/campaigns/{campaignId}/importCSV
.
Response to requests that are processed asynchronously.
The ID of the scheduled asynchronous action.
"aa_0a875d56c805df6601"