Schema to update a discount.
Field | Type | Required | Description |
---|---|---|---|
metadata |
array<string, string|int|bool> | ➖ | N/A |
name |
?string | ➖ | N/A |
code |
?string | ➖ | N/A |
startsAt |
\DateTime | ➖ | N/A |
endsAt |
\DateTime | ➖ | N/A |
maxRedemptions |
?int | ➖ | N/A |
duration |
?Components\DiscountDuration | ➖ | N/A |
durationInMonths |
?int | ➖ | N/A |
type |
?Components\DiscountType | ➖ | N/A |
amount |
?int | ➖ | N/A |
currency |
?string | ➖ | N/A |
basisPoints |
?int | ➖ | N/A |
products |
array<string> | ➖ | N/A |