NATS5 REST API Site POST coupon
From TMM Wiki
Jump to navigationJump to search
POST /site/coupon
Description
- Add new site coupon
Resource URL
- http://domain/api/site/coupon
- Replace domain with the nats domain
- POST
Response Format
- JSON
- HTTP headers
Parameters
Parameters can be sent as url encoded params
- siteid
- type: digit
- required
- programid
- type: digit
- optional
- code
- type: string
- required
- start
- type: datetime (A date string to be parsed by php strtotime, or a unix timestamp integer)
- required
- 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)
- required
- max_redemptions
- type: digit
- optional
- unique_to_member
- type: boolean_digit
- optional