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

# Create Voucher (E pins)

`POST /vouchers/generateVoucher`

## 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.net/interswitchgroup/apis/oauth2.md) · [All operations](https://skmtc.net/interswitchgroup/apis/oauth2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/interswitchgroup/oauth2/revisions/13065c872c78/schema)
