---
title: "Apply voucher"
method: POST
path: "/organizations/{organization_id}/vouchers/apply"
tags: ["Vouchers"]
---

# Apply voucher

`POST /organizations/{organization_id}/vouchers/apply`

## Request

- Base URL: `https://api.upsun.com`
- URL: `https://api.upsun.com/organizations/{organization_id}/vouchers/apply`
- Auth: OAuth 2
  - Authorization code: `https://auth.api.platform.sh/oauth2/authorize`
  - Token URL: `https://auth.api.platform.sh/oauth2/token`
- TypeScript: <https://skmtc.dev/upsun/apis/upsun-com-rest-api/docs/organizations/:organization_id/vouchers/apply/post.ts> (a function with typed inputs; its response is checked against the schema)

Applies a voucher for the specified organization, and refreshes the currently open order.

## Path parameters

- `organization_id` string, ulid, required

## Request body

- object
  - `code` string, required: The voucher code.

## Response `204`

No Content

## Other responses

- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/upsun/apis/upsun-com-rest-api.md) - [All operations](https://skmtc.dev/upsun/apis/upsun-com-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsun/apis/upsun-com-rest-api/revisions/6cc88fde6435?raw)
