PUT /sale-discount-codes/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
PUT /sale-discount-codes/{id}.json
curl \
-X PUT http://api.example.com/v1/sale-discount-codes/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":42.0,"code":"string","createdAt":"2024-05-04T09:42:00+00:00","id":42,"saleId":42,"type":"fixed_amount","updatedAt":"2024-05-04T09:42:00+00:00"}'
Request example
{
"amount": 42.0,
"code": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"id": 42,
"saleId": 42,
"type": "fixed_amount",
"updatedAt": "2024-05-04T09:42:00+00:00"
}