---
title: "Upload promotional codes"
method: POST
path: "/api/v1/promocodes"
tags: ["Messages"]
---

# Upload promotional codes

`POST /api/v1/promocodes`

## Request

- Base URL: `https://yespo.io` (the document declares no server; this is the origin it was published from)
- URL: `https://yespo.io/api/v1/promocodes`
- Auth: HTTP basic

Upload promo codes from CSV or JSON.<br/>Existing promotional codes are updated.

## Query parameters

- `expirationDate` string
- `discount` string
- `type` string
- `inUse` boolean

## Request body

- PromocodesPayloadDto
  - `promocodes` string[], required
  - `expirationDate` string, required
  - `discount` integer, required
  - `type` string
  - `inUse` boolean

## Response `200`

default response

---

[API](https://skmtc.dev/yespo/apis/yespo-api.md) · [All operations](https://skmtc.dev/yespo/apis/yespo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yespo/apis/yespo-api/revisions/b662f92b6c40?raw)
