Difference between revisions of "NATS5 REST API Site PATCH coupon"
From TMM Wiki
Jump to navigationJump to search (Created page with "{{NATS4 Manual | show_api_admin_section = true }} == '''PATCH /site/coupon''' == '''Description''' * Edit site coupon '''Resource URL''' *<nowiki>http://domain/api/site/coup...") |
(No difference)
|
Revision as of 10:48, 19 April 2019
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