Clients can use this route to retrieve a list of “free gifts” provided by a particular venue.
These gifts can be used to introduce a venue (or as an example of a gift) to the user. A specification for the API request is as follows:
{ "/gift/v3/gifts/free/": { "endpoints": [ { "methods": [ "0": "GET" ], "args": { "venue": { "required": true } } } ]} }
Request Parameters
venue should match the ID of an existing venue in the GIFT CMS.
Response
If a matching venue exists, the response will include an array of any published gifts tagged as ‘free gifts’ with wraps relating to that venue.
Example
curl -X GET -H "Authorization: GiftToken xxxxxx" https://gifting.digital/wp-json/gift/v3/gifts/free/2