{
"opencollection": "1.0.0",
"info": {
"name": "FirstPromoter Admin API - Rewards",
"version": "1.0.0"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Rewards",
"type": "folder"
},
"items": [
{
"info": {
"name": "Get available rewards",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.firstpromoter.com/api/v2/company/rewards",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"params": [
{
"name": "scope",
"value": "",
"type": "query",
"description": "Scope of the rewards"
}
]
},
"docs": "Get available rewards for current company \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/rewards`"
},
{
"info": {
"name": "Create reward",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.firstpromoter.com/api/v2/company/rewards",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Create rewards for current company \n **HTTP Request**
`POST https://api.firstpromoter.com/api/v2/company/rewards`"
},
{
"info": {
"name": "Update reward",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://api.firstpromoter.com/api/v2/company/rewards/:id",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "ID of the reward to update"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Update reward for current company \n **HTTP Request**
`PUT https://api.firstpromoter.com/api/v2/company/rewards/{id}`"
},
{
"info": {
"name": "Hide reward",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.firstpromoter.com/api/v2/company/rewards/:id/hide",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "ID of the reward to hide"
}
]
},
"docs": "Hide reward for current company \n **HTTP Request**
`POST https://api.firstpromoter.com/api/v2/company/rewards/{id}/hide`"
}
]
}
],
"bundled": true
}