Edit Coupon

PUT /self/{shopId}/coupons/{couponId}

Path parameters

application/json

Body

Responses

PUT /self/{shopId}/coupons/{couponId}
curl \
 -X PUT https://dev.sellpass.io/self/{shopId}/coupons/{couponId} \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","note":"string","discount":42.0,"isFixed":true,"startDate":"2023-05-04T09:42:00+00:00","endDate":"2023-05-04T09:42:00+00:00","restrictToProducts":[42],"restrictToGateways":[0],"maxUses":42}'
Request example
{
  "name": "string",
  "note": "string",
  "discount": 42.0,
  "isFixed": true,
  "startDate": "2023-05-04T09:42:00+00:00",
  "endDate": "2023-05-04T09:42:00+00:00",
  "restrictToProducts": [
    42
  ],
  "restrictToGateways": [
    0
  ],
  "maxUses": 42
}