---
title: "Create Voucher (E pins)"
method: POST
path: "/vouchers/generateVoucher"
---

# Create Voucher (E pins)

`POST /vouchers/generateVoucher`

## Request

- Base URL: `https://qa.interswitchng.com/quicktellerservice/api/v5`
- URL: `https://qa.interswitchng.com/quicktellerservice/api/v5/vouchers/generateVoucher`
- Auth: OAuth 2

## Headers

- `Authorization` string, required
- `Content-Type` string, required
- `TerminalID` string, required

## Request body

- object
  - `customerId` string, required: This is the id of the customer who is trying to create the voucher
  - `amount` integer, required: This is the amount of voucher that needs to be created
  - `type` string, required: This is the type of voucher been created (Gift or Recharge)
  - `ExpiryDate` string, date, required: This is the expiry date of the voucher
  - `CodeConfig` object: An object
    - `prefix` string, required
    - `suffix` string, required
    - `allowedchar` string, required
    - `pattern` string, required

## Response `200`

200

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/interswitchgroup/apis/new-value-added-services.md) - [All operations](https://skmtc.dev/interswitchgroup/apis/new-value-added-services/llms.txt) - [OpenAPI document](https://skmtc.dev/interswitchgroup/apis/new-value-added-services/revisions/95a76761d47b?raw)
