PUT
/discounts/{discountId}
curl \
-X PUT localhost:8080/discounts/{discountId} \
-H "Content-Type: application/json" \
-d '{"code":"string","label":"string","percentage":42,"amount":42,"start_date":"2023-05-04T09:42:00+00:00","expire_date":"2023-05-04T09:42:00+00:00","allows_multiple_usages":true,"users":["string"]}'
Request example
{
"code": "string",
"label": "string",
"percentage": 42,
"amount": 42,
"start_date": "2023-05-04T09:42:00+00:00",
"expire_date": "2023-05-04T09:42:00+00:00",
"allows_multiple_usages": true,
"users": [
"string"
]
}
Request examples
{
"code": "string",
"label": "string",
"percentage": 42,
"amount": 42,
"start_date": "2025-05-04T09:42:00Z",
"expire_date": "2025-05-04T09:42:00Z",
"allows_multiple_usages": true,
"users": [
"string"
]
}