---
title: "Create a new promo code"
method: POST
path: "/Business/PromoCodes"
tags: ["Rest"]
---

# Create a new promo code

`POST /Business/PromoCodes`

## Headers

- `SiteId` integer, required

## Request body

- MindbodyRestApiDtoModelsBusinessPromoCode — Promo code
  - `Id` integer — ID
  - `Name` string — Name of the promo code
  - `Code` string — Code to be used at purchase for discount
  - `Active` boolean — Active status
  - `Discount` MindbodyRestApiDtoModelsBusinessDiscount — Discount for a promo code
    - `Type` string — Type of discount percentage/amount
    - `Amount` number, double — Amount of discount
  - `ActivationDate` string — Date activated
  - `ExpirationDate` string — Date expired
  - `MaxUses` integer — How many times it can be used
  - `NumberOfAutopays` integer — Number of Autopays
  - `DaysAfterCloseDate` integer — Days after close date
  - `AllowOnline` boolean — Whether it can be used online
  - `DaysValid` string[] — What days the promo code can be used
  - `ApplicableItems` MindbodyRestApiDtoModelsBusinessApplicableItem[] — Items that the promo code will have the discount for. If Null, promo code applies to all items.
    - `Type` string — Type of a promo code
    - `Id` integer — ID of the item
    - `Name` string — Name of the item

## Response `201`

Created

- MindbodyRestApiDtoModelsBusinessPromoCode — Promo code
  - `Id` integer — ID
  - `Name` string — Name of the promo code
  - `Code` string — Code to be used at purchase for discount
  - `Active` boolean — Active status
  - `Discount` MindbodyRestApiDtoModelsBusinessDiscount — Discount for a promo code
    - `Type` string — Type of discount percentage/amount
    - `Amount` number, double — Amount of discount
  - `ActivationDate` string — Date activated
  - `ExpirationDate` string — Date expired
  - `MaxUses` integer — How many times it can be used
  - `NumberOfAutopays` integer — Number of Autopays
  - `DaysAfterCloseDate` integer — Days after close date
  - `AllowOnline` boolean — Whether it can be used online
  - `DaysValid` string[] — What days the promo code can be used
  - `ApplicableItems` MindbodyRestApiDtoModelsBusinessApplicableItem[] — Items that the promo code will have the discount for. If Null, promo code applies to all items.
    - `Type` string — Type of a promo code
    - `Id` integer — ID of the item
    - `Name` string — Name of the item

## Other responses

- `400` — BadRequest
- `401` — Unauthorized

---

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