curl --request POST \
--url 'https://api.stateset.com/api/v1/promotions' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"code": null,
"description": null,
"discount_value": null,
"ends_at": null,
"max_uses": null,
"name": "string",
"promotion_type": "string",
"starts_at": null
}'
{
"code": null,
"created_at": "string",
"discount_value": null,
"id": "string",
"name": "string",
"promotion_type": "string",
"status": "string"
}
Create a promotion
Create a promotion
POST
/
api
/
v1
/
promotions
curl --request POST \
--url 'https://api.stateset.com/api/v1/promotions' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"code": null,
"description": null,
"discount_value": null,
"ends_at": null,
"max_uses": null,
"name": "string",
"promotion_type": "string",
"starts_at": null
}'
{
"code": null,
"created_at": "string",
"discount_value": null,
"id": "string",
"name": "string",
"promotion_type": "string",
"status": "string"
}
Request body
CreatePromotionRequest
string,null
string,null
string,null
string,null
integer,null (int32)
string
required
string
required
string,null
Responses
PromotionResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/promotions' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"code": null,
"description": null,
"discount_value": null,
"ends_at": null,
"max_uses": null,
"name": "string",
"promotion_type": "string",
"starts_at": null
}'
{
"code": null,
"created_at": "string",
"discount_value": null,
"id": "string",
"name": "string",
"promotion_type": "string",
"status": "string"
}
⌘I