---
title: "POST /api/v1.0/{appId}/vouchers/{voucherId}/usage"
method: POST
path: "/api/v1.0/{appId}/vouchers/{voucherId}/usage"
tags: ["Vouchers"]
---

# POST /api/v1.0/{appId}/vouchers/{voucherId}/usage

`POST /api/v1.0/{appId}/vouchers/{voucherId}/usage`

## Request

- Base URL: `https://api.flipdish.co`
- URL: `https://api.flipdish.co/api/v1.0/{appId}/vouchers/{voucherId}/usage`
- Auth: OAuth 2 (implicit, authorization URL `https://api.flipdish.co/identity/connect/authorize`, scopes: `api`)

## Path parameters

- `appId` string, required
- `voucherId` integer, required

## Request body

- UpdateVoucherUsage: Update Voucher Usage
  - `IsUsed` boolean: Flag indicating whether the voucher is used
  - `UsedByCustomerId` integer, nullable: Indicates Customer that used the voucher.
  - `TransactionKey` string: An opaque string, to ensure idempotency. This allows for safely retrying requests without accidentally performing the same stamp operation twice. This will typically contain the the ID of the sale order.

## Response `200`

OK

## Other responses

- `400`: BadRequest
- `401`: Unauthorized
- `403`: Successful authentication, but authorization has been denied for this request.
- `404`: NotFound

---

[API](https://skmtc.dev/flipdish/apis/flipdish-open-api-v1-0.md) · [All operations](https://skmtc.dev/flipdish/apis/flipdish-open-api-v1-0/llms.txt) · [OpenAPI document](https://skmtc.dev/flipdish/apis/flipdish-open-api-v1-0/revisions/4d8c2b9e1c13?raw)
