Skip to main content
POST
/
v1
/
vouchers
/
import
Import Vouchers
curl --request POST \
  --url https://{cluster}.voucherify.io/v1/vouchers/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data null
{
  "async_action_id": "aa_0aac93c6af84485df3"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Body

application/json ยท Vouchers Import Request Body ยท array
  • Voucher Import Gift
  • Voucher Import Discount
code
string
required
gift
object
required
redemption
object
active
boolean
metadata
object
category
string
start_date
string<date-time>
Example:
expiration_date
string<date-time>
Example:
validity_timeframe
object
validity_day_of_week
enum<integer>[]
additional_info
string
type
enum<string>
default:GIFT_VOUCHER
Available options:
GIFT_VOUCHER

Response

202 - application/json
async_action_id
string
required
Example: