NATS5 REST API Site PATCH coupon
From TMM Wiki
Jump to navigationJump to search
PATCH /site/coupon
Description
- Edit site coupon
Resource URL
- http://domain/api/site/coupon
- Replace domain with the nats domain
- PATCH
Response Format
- JSON
- HTTP headers
Parameters
Parameters can be sent as url encoded params
- couponid
- type: digit
- required
- programid
- type: digit
- optional
- start
- type: datetime (A date string to be parsed by php strtotime, or a unix timestamp integer)
- optional
- end
- type: datetime (A date string to be parsed by php strtotime, or a unix timestamp integer)
- optional
- optionids
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- max_redemptions
- type: digit
- optional
- unique_to_member
- type: boolean_digit
- optional