{
"opencollection": "1.0.0",
"info": {
"name": "FirstPromoter Contracts API",
"version": "2.0.0"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Contracts",
"type": "folder"
},
"items": [
{
"info": {
"name": "Get all contracts",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.firstpromoter.com/api/v2/company/contracts",
"headers": [
{
"name": "Account-ID",
"value": ""
}
]
},
"docs": "Returns all contracts \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/contracts`"
},
{
"info": {
"name": "Create a contract. Calls the service that generates the contract documents.",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.firstpromoter.com/api/v2/company/contracts",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Create a contract \n **HTTP Request**
`POST https://api.firstpromoter.com/api/v2/company/contracts`"
},
{
"info": {
"name": "Get contract by id",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.firstpromoter.com/api/v2/company/contracts/:id",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"params": [
{
"name": "id",
"value": "",
"type": "path"
}
]
},
"docs": "Returns a contract by id \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/contracts/{id}`"
},
{
"info": {
"name": "Update a contract. Calls the service that generates the contract documents if needed.",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://api.firstpromoter.com/api/v2/company/contracts/:id",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"params": [
{
"name": "id",
"value": "",
"type": "path"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Update a contract \n **HTTP Request**
`PUT https://api.firstpromoter.com/api/v2/company/contracts/{id}`"
},
{
"info": {
"name": "Delete a contract",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.firstpromoter.com/api/v2/company/contracts/:id",
"headers": [
{
"name": "Account-ID",
"value": ""
}
],
"params": [
{
"name": "id",
"value": "",
"type": "path"
}
]
},
"docs": "Delete a contract \n **HTTP Request**
`DELETE https://api.firstpromoter.com/api/v2/company/contracts/{id}`"
}
]
}
],
"bundled": true
}