Skip to main content
POST
Create Discount
V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Create a new discount code for the authenticated vendor’s products.

Use Cases

  • Launch vendor-specific promotions
  • Automate discount creation from marketing campaigns

Request Body

string
required
Discount code for checkout.
string
required
Internal title/description.
string
Start date (ISO 8601).
string
End date (ISO 8601).
object
Discount value configuration.
integer
Maximum total uses.
boolean
Limit to one use per customer.
object
Item targeting configuration.

Response

201

Example

More Examples

20% off discount with limit
Fixed amount discount