Saltar al contenido principal
PATCH
/
promotions
/
{promotionId}
/
coupons
/
{couponId}
Actualizar
curl --request PATCH \
  --url https://sandbox.api.riqra.com/promotions/{promotionId}/coupons/{couponId} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "startDate": "2021-08-01T05:00:00.000Z",
  "expirationDate": "2021-08-31T05:00:00.000Z",
  "code": "string",
  "usageLimit": 0
}
'
{
  "errors": [
    {
      "message": "<string>",
      "code": 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

couponId
number
required
promotionId
number
required

Body

application/json
code
string
Minimum string length: 1
startDate
string<date-time>
expirationDate
string<date-time>
usageLimit
number | null
limitPerUser
number | null

Response

No Content