Saltar al contenido principal
POST
/
promotions
/
{promotionId}
/
coupons
Crear
curl --request POST \
  --url https://sandbox.api.riqra.com/promotions/{promotionId}/coupons \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "startDate": "<string>",
  "expirationDate": "<string>",
  "code": "<string>",
  "usageLimit": 123,
  "limitPerUser": 123
}
'

Authorizations

api-key
string
header
required

Todas las llamadas al API tienen que contener este header junto a la clave para poder autenticar y autorizar al cliente.

Path Parameters

promotionId
number
required

Body

application/json
startDate
string
required
expirationDate
string
required
Minimum string length: 1
code
string
required
Minimum string length: 1
usageLimit
number
limitPerUser
number

Response

200

OK