Exchange ticket reward for voucher
POST
/me/rewards/{id}/exchange
const url = 'https://example.com/me/rewards/example/exchange';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"type":"Voucher","source":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/me/rewards/example/exchange \ --header 'Content-Type: application/json' \ --data '{ "type": "Voucher", "source": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
type
required
string
source
required
string
Responses
Section titled “Responses”Media typeapplication/json