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 Body required
Section titled “Request Body required ” Media type application/json
object
type
required
string
source
required
string
Responses
Section titled “ Responses ” Media type application/json
object
Example generated
{ "id": "example", "type": "example", "data": "example", "created_at": "example", "updated_at": "example", "deleted_at": "example"}