---
title: "Create transaction for purchase"
method: POST
path: "/vouchers/purchases"
tags: ["Zendit"]
---

# Create transaction for purchase

`POST /vouchers/purchases`

## Request body

- DtoVoucherPurchaseInput
  - `fields` DtoPurchaseField[], required
    - `key` string, required
    - `value` string, required
  - `offerId` string, required
  - `transactionId` string, required
  - `value` DtoPurchaseValue
    - `type` 'ZEND' | 'PRICE' | 'COST', required
    - `value` integer, required

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/zendit/apis/zendit-gateway-api.md) · [All operations](https://skmtc.net/zendit/apis/zendit-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zendit/zendit-gateway-api/revisions/d5ae50618d07/schema)
