RESTful API for Cirrus 2 (0.3.73)
Download OpenAPI specification:Download
An open RESTful API for Cirrus 2 integration
Creates a new account
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string This field can not be empty. |
alt_name | string |
typeid required | integer |
number | string |
userid required | integer |
alternateuserid | integer |
phone | string |
cellphone | string |
fax | string |
string | |
url | string |
vatno | string |
active | integer |
info | string |
socialmedia_fb | string |
socialmedia_tw | string |
socialmedia_li | string |
uservisitintervalweeks | integer |
alternateuservisitintervalweeks | integer |
parentaccountid | integer |
object (Addresses) | |
Array of objects (AccountGroup) | |
externalkey | string |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "alt_name": "string",
- "typeid": 0,
- "number": "string",
- "userid": 0,
- "alternateuserid": 0,
- "phone": "string",
- "cellphone": "string",
- "fax": "string",
- "email": "string",
- "url": "string",
- "vatno": "string",
- "active": 0,
- "info": "string",
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "uservisitintervalweeks": 0,
- "alternateuservisitintervalweeks": 0,
- "parentaccountid": 0,
- "addresses": {
- "visiting": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "delivery": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "invoice": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "postal": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}
}, - "accountgroups": [
- {
- "id": 0,
- "name": "string"
}
], - "externalkey": "string",
- "tags": [
- {
- "id": 0
}
]
}
Returns a paginated list of accounts
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
userid | integer id property of the user owning the account |
userids | string comma separated list of userids |
accountnumber | string number property of the account whith which the account takes place |
typeid | integer id property of the accountType |
typeids | integer comma separated list of typeids |
active | integer Default: 1 Enum: 0 1 2 get active or inactive accounts, use the value 2 for both active and inactive |
name | string use % as a wildcard |
nearto | string will filter accounts based on proximty to supplied location {latitude, longitude} |
distance | string determines the proximity treshold for the nearto filter, treshold is in kilometers |
postal_city | string use % as a wildcard |
postal_street | string use % as a wildcard |
visitingaddress_city | string use % as a wildcard |
deliveryaddress_city | string use % as a wildcard |
invoiceaddress_city | string use % as a wildcard |
phone | string use % as a wildcard |
cellphone | string use % as a wildcard |
vatno | string use % as a wildcard |
externalkey | string |
followedby | integer id property of the user whose followed accounts are queried |
missionid | integer |
missionresult | integer Enum: 0 1 only shows accounts connected to missionid with result 1/0 |
activity | integer Enum: 0 1 Show accounts with at least one activity. use activity_* for more activity predicates |
activity_user | integer Show accounts with at least one activity where this user is responsible. Only in effect when activity=1. |
activity_closed | integer Enum: 0 1 Show accounts with at least one (non-)closed activity if set to true. Only in effect when activity=1. |
activity_type | integer Show accounts with at least one activity of this type. Only in effect when activity=1. |
fulltext | string this property will be used in a search in name, alt_name, number, phone, cellphone, email, vatno, postal_street, postal_city, postal_zip, visitingaddress_careof, visitingaddress_street, visitingaddress_zip, visitingaddress_city, deliveryaddress_name, deliveryaddress_street, deliveryaddress_zip, deliveryaddress_city, invoiceaddress_name, invoiceaddress_street, invoiceaddress_zip, invoiceaddress_city |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "number_asc" "number_desc" "userid_asc" "userid_desc" "postaladdress_number_asc" "postaladdress_number_desc" "postaladdress_odd_asc" "postaladdress_odd_desc" "postaladdress_even_asc" "postaladdress_even_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "phone": "string",
- "cellphone": "string",
- "fax": "string",
- "email": "string",
- "url": "string",
- "vatno": "string",
- "active": 0,
- "info": "string",
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "department": "string",
- "externalkey": "string",
- "uservisitintervalweeks": 0,
- "alternateuservisitintervalweeks": 0,
- "addresses": {
- "visiting": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "delivery": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "invoice": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "postal": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}
}, - "files": [
- {
- "id": 0,
- "name": "string"
}
], - "type": {
- "id": 0,
- "name": "string"
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "parentaccount": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "contacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "primary": 0,
- "title": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "accountgroups": [
- {
- "id": 0,
- "name": "string"
}
], - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "alternateuserid": "string",
- "alternateuser": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
]
}
]
Returns a paginated list of account coordinates
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg} |
userid | integer id property of the user owning the account |
userids | string comma separated list of userids |
accountnumber | string number property of the account whith which the account takes place |
typeid | integer id property of the accountType |
typeids | integer comma separated list of typeids |
active | integer Default: 1 Enum: 0 1 get active or inactive accounts |
name | string use % as a wildcard |
nearto | string will filter accounts based on proximty to supplied location {latitude, longitude} |
distance | string determines the proximity treshold for the nearto filter, treshold is in kilometers |
postal_city | string use % as a wildcard |
visitingaddress_city | string use % as a wildcard |
deliveryaddress_city | string use % as a wildcard |
invoiceaddress_city | string use % as a wildcard |
phone | string use % as a wildcard |
cellphone | string use % as a wildcard |
vatno | string use % as a wildcard |
externalkey | string |
followedby | integer id property of the user whose followed accounts are queried |
fulltext | string this property will be used in a search in name, alt_name, number, phone, cellphone, email, vatno, postal_street, postal_city, postal_zip, visitingaddress_careof, visitingaddress_street, visitingaddress_zip, visitingaddress_city, deliveryaddress_name, deliveryaddress_street, deliveryaddress_zip, deliveryaddress_city, invoiceaddress_name, invoiceaddress_street, invoiceaddress_zip, invoiceaddress_city |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "number_asc" "number_desc" "userid_asc" "userid_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "accountid": 0,
- "addresstype": "string",
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
]
}
]
Creates a new accountgroup
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string"
}
Returns a paginated list of accountgroups
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
accountid | integer this property will filter all accountgroups by accountid |
fulltext | string this property will be used in a search in name |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string"
}
]
}
]
Updates an accountgroup
Use this method to change root level properties of an accountgroup.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string"
}
Returns an accountgroup
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string"
}
DEPRECATED, Returns a list of accounttypes
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "defaulttab": "string",
- "sortorder": 0,
- "isdefault": 0,
- "turnover_from": 0,
- "turnover_to": 0,
- "turnoverpotential_from": 0,
- "turnoverpotential_to": 0,
- "turnover_volume1from": 0,
- "turnover_volume1to": 0,
- "turnover_volume2from": 0,
- "turnover_volume2to": 0,
- "turnoverpotential_volume1from": 0,
- "turnoverpotential_volume1to": 0,
- "turnoverpotential_volume2from": 0,
- "turnoverpotential_volume2to": 0,
- "typeiscustomer": 0,
- "typeisprospect": 0
}
]
Follows an account
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
Unfollows an account
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
put_budget_item
Authorizations:
path Parameters
accountid required | integer |
year required | integer |
month required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
budget | integer The budget assiged to the account for the year/month period. |
Responses
Request samples
- Payload
{- "budget": 0
}
delete_budget_item
Authorizations:
path Parameters
accountid required | integer |
year required | integer |
month required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
get_budget_item
Authorizations:
path Parameters
accountid required | integer |
year required | integer |
month required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "year": 0,
- "month": 0,
- "budget": 0
}
Updates an account
Use this method to change root level properties of an account.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
alt_name | string |
typeid | integer |
number | string |
userid | integer |
alternateuserid | integer |
phone | string |
cellphone | string |
fax | string |
string | |
url | string |
vatno | string |
active | integer |
info | string |
socialmedia_fb | string |
socialmedia_tw | string |
socialmedia_li | string |
uservisitintervalweeks | integer |
alternateuservisitintervalweeks | integer |
parentaccountid | integer |
object (Addresses) | |
Array of objects (AccountGroup) | |
externalkey | string |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "alt_name": "string",
- "typeid": 0,
- "number": "string",
- "userid": 0,
- "alternateuserid": 0,
- "phone": "string",
- "cellphone": "string",
- "fax": "string",
- "email": "string",
- "url": "string",
- "vatno": "string",
- "active": 0,
- "info": "string",
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "uservisitintervalweeks": 0,
- "alternateuservisitintervalweeks": 0,
- "parentaccountid": 0,
- "addresses": {
- "visiting": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "delivery": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "invoice": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "postal": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}
}, - "accountgroups": [
- {
- "id": 0,
- "name": "string"
}
], - "externalkey": "string",
- "tags": [
- {
- "id": 0
}
]
}
Returns an account
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "phone": "string",
- "cellphone": "string",
- "fax": "string",
- "email": "string",
- "url": "string",
- "vatno": "string",
- "active": 0,
- "info": "string",
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "department": "string",
- "externalkey": "string",
- "uservisitintervalweeks": 0,
- "alternateuservisitintervalweeks": 0,
- "addresses": {
- "visiting": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "delivery": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "invoice": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}, - "postal": {
- "careof": "nullable string",
- "name": "nullable string",
- "street": "nullable string",
- "zip": "nullable string",
- "city": "nullable string",
- "country": "nullable string",
- "email": "nullable string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}, - "number": "nullable string",
- "letter": "nullable string"
}
}, - "files": [
- {
- "id": 0,
- "name": "string"
}
], - "type": {
- "id": 0,
- "name": "string"
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "parentaccount": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "contacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "primary": 0,
- "title": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "accountgroups": [
- {
- "id": 0,
- "name": "string"
}
], - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "alternateuserid": "string",
- "alternateuser": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
Merges two account
Authorizations:
path Parameters
target required | integer |
source required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Creates a new activity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer The unique identifier of an Activity |
object (ListedAccount) | |
accountid required | integer The unique identifier of the Account to which the Activity belongs |
closed | integer Is the Activity closed or open |
Array of objects (ActivityAttempt) | |
description required | string The description of the Activity |
date | string <date> Date for when the Activity is scheduled |
extrasexternalid | integer |
Array of objects (ListedFile) | |
Array of objects (ListedUser) | |
Array of objects (ListedUser) | |
Array of objects (ListedContact) | |
location required | string Location of the activity |
required | object (PrimaryContact) |
object (ActivityPriority) | |
object (ProgressionState) | |
object (ListedOpportunity) | |
object (ActivityReminder) | |
start | string <date-time> The time when the Activity starts |
starttime | string The time when the Activity starts |
stop | string <date-time> End time of the Activity |
stoptime | string End time of the Activity |
result required | string |
required | object (ListedActivityType) |
Array of objects (ListedUser) | |
userid required | integer The unique identifier of the owning User |
Array of objects (ActivityTypeAnswer) | |
externalkey | string |
Array of objects (Tag) |
Responses
Request samples
- Payload
{- "id": 0,
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "accountid": 0,
- "closed": 0,
- "contactattempts": [
- {
- "id": 0,
- "note": "string",
- "timestamp": "string",
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "description": "string",
- "date": "2019-08-24",
- "extrasexternalid": 0,
- "files": [
- {
- "id": 0,
- "name": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "invitedusers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "invitedcontacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}
], - "location": "string",
- "primarycontact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "title": "string"
}, - "priority": {
- "id": 0,
- "description": "string"
}, - "progressionstate": {
- "id": 0,
- "name": "string"
}, - "opportunity": {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "reminder": {
- "text": "string",
- "min": 0,
- "done": 0
}, - "start": "2019-01-25T00:00:00.000Z",
- "starttime": "string",
- "stop": "2019-01-25T00:00:00.000Z",
- "stoptime": "string",
- "result": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "user": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "userid": 0,
- "answers": [
- {
- "questionid": 0
}
], - "externalkey": "string",
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
Returns a paginated list of activities
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
accountid | integer id property of the account with which the appointment takes place |
accounttypeids | string Comma separated list of AccountType.id whose contacts are queried |
accountuserids | string Comma separated list of User.id of the user responsible for the Accounts whose contacts are queried |
date | string date formatted(YYYY-MM-DD) for when the appointment takes place |
startdate | string date formatted(YYYY-MM-DD) start of a date range for appointments |
enddate | string date formatted(YYYY-MM-DD) end of a date range for appointments |
closed | integer Enum: 0 1 get open or closed appointments |
userid | integer id property of the user owning the appointment |
userids | string comma separated list of userids |
missionids | string comma separated list of missionids |
typeid | integer id property of the AppointmentType |
typeids | string comma separated list of typeids |
contactid | integer id property of the contact with which the appointment takes place |
opportunityid | integer id property of the opportunity to which the appointment belongs |
location | string use % as a wildcard |
description | string use % as a wildcard |
progressionstateid | integer id propterty of the ProgressionState object |
followedby | integer id property of the user whose followed activities are queried |
fulltext | string this property will be used in a search in description, date, result and location |
sorting required | string Default: "date_desc" Enum: "date_asc" "date_desc" "account_asc" "account_desc" "userid_asc" "userid_desc" |
externalkey | string |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "accountid": 0,
- "closed": 0,
- "contactattempts": [
- {
- "id": 0,
- "note": "string",
- "timestamp": "string",
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "description": "string",
- "date": "2019-08-24",
- "extrasexternalid": 0,
- "files": [
- {
- "id": 0,
- "name": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "invitedusers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "invitedcontacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}
], - "location": "string",
- "primarycontact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "title": "string"
}, - "priority": {
- "id": 0,
- "description": "string"
}, - "progressionstate": {
- "id": 0,
- "name": "string"
}, - "opportunity": {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "reminder": {
- "text": "string",
- "min": 0,
- "done": 0
}, - "start": "2019-01-25T00:00:00.000Z",
- "starttime": "string",
- "stop": "2019-01-25T00:00:00.000Z",
- "stoptime": "string",
- "result": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "user": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "userid": 0,
- "answers": [
- {
- "questionid": 0
}
], - "externalkey": "string",
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
Returns a paginated list of activity coordinates
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg} |
accountid | integer id property of the account with which the appointment takes place |
accounttypeids | string Comma separated list of AccountType.id whose contacts are queried |
accountuserids | string Comma separated list of User.id of the user responsible for the Accounts whose contacts are queried |
date | string date formatted(YYYY-MM-DD) for when the appointment takes place |
startdate | string date formatted(YYYY-MM-DD) start of a date range for appointments |
enddate | string date formatted(YYYY-MM-DD) end of a date range for appointments |
closed | integer Enum: 0 1 get open or closed appointments |
userid | integer id property of the user owning the appointment |
userids | string comma separated list of userids |
typeid | integer id property of the AppointmentType |
typeids | string comma separated list of typeids |
contactid | integer id property of the contact with which the appointment takes place |
opportunityid | integer id property of the opportunity to which the appointment belongs |
location | string use % as a wildcard |
description | string use % as a wildcard |
progressionstateid | integer id propterty of the ProgressionState object |
followedby | integer id property of the user whose followed activities are queried |
fulltext | string this property will be used in a search in description, date, result and location |
sorting required | string Default: "date_desc" Enum: "date_asc" "date_desc" "account_asc" "account_desc" "userid_asc" "userid_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "activityid": 0,
- "addresstype": "string",
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
]
}
]
Creates a new activitytype
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "value": 0,
- "icon": 0,
- "sortorder": 0,
- "default": 0,
- "quick": 0,
- "defaultdescription": "string",
- "defaultresult": "string",
- "userfollowups": 0,
- "alternateuserfollowups": 0
}
]
Returns a list of activitytypes
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "value": 0,
- "icon": 0,
- "sortorder": 0,
- "default": 0,
- "quick": 0,
- "defaultdescription": "string",
- "defaultresult": "string",
- "userfollowups": 0,
- "alternateuserfollowups": 0
}
]
Returns a list of activitytypequestions
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "question": "string",
- "activitytypeid": 0,
- "sortorder": 0
}
]
Updates an activitytype
Use this method to change root level properties of an activity.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
value | integer |
icon | integer |
sortorder | integer |
default | integer |
quick | integer |
defaultdescription | string |
defaultresult | string |
userfollowups | integer |
alternateuserfollowups | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "value": 0,
- "icon": 0,
- "sortorder": 0,
- "default": 0,
- "quick": 0,
- "defaultdescription": "string",
- "defaultresult": "string",
- "userfollowups": 0,
- "alternateuserfollowups": 0
}
Returns an activitytype
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "value": 0,
- "icon": 0,
- "sortorder": 0,
- "default": 0,
- "quick": 0,
- "defaultdescription": "string",
- "defaultresult": "string",
- "userfollowups": 0,
- "alternateuserfollowups": 0
}
Follows an activity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
Returns a list of progressionstates for activities
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Unfollows an activity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
Updates an activity
Use this method to change root level properties of an activity.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
closed | integer Is the Activity closed or open |
date | string <date> Date 'YYYY-MM-DD' for when the Activity is scheduled |
description | string The description of the Activity |
location | string Location of the activity |
result | string |
starttime | string The time 'HH:MM' when the Activity starts |
stoptime | string End time 'HH:MM' of the Activity |
typeid | integer The unique id for the ActivityType for the Activity |
opportunityid | integer |
userid | integer The unique identifier of the owning User |
object Optional way of providing user owning the activity | |
object (PrimaryContact) | |
Array of objects (ListedUser) | |
Array of objects (ListedContact) | |
Array of objects (ActivityTypeAnswer) | |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "closed": 0,
- "date": "2019-08-24",
- "description": "string",
- "location": "string",
- "result": "string",
- "starttime": "string",
- "stoptime": "string",
- "typeid": 0,
- "opportunityid": 0,
- "userid": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "primarycontact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "title": "string"
}, - "invitedusers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "invitedcontacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}
], - "answers": [
- {
- "questionid": 0
}
], - "tags": [
- {
- "id": 0
}
]
}
Returns an activity
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "accountid": 0,
- "closed": 0,
- "contactattempts": [
- {
- "id": 0,
- "note": "string",
- "timestamp": "string",
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "description": "string",
- "date": "2019-08-24",
- "extrasexternalid": 0,
- "files": [
- {
- "id": 0,
- "name": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "invitedusers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "invitedcontacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}
], - "location": "string",
- "primarycontact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "title": "string"
}, - "priority": {
- "id": 0,
- "description": "string"
}, - "progressionstate": {
- "id": 0,
- "name": "string"
}, - "opportunity": {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "reminder": {
- "text": "string",
- "min": 0,
- "done": 0
}, - "start": "2019-01-25T00:00:00.000Z",
- "starttime": "string",
- "stop": "2019-01-25T00:00:00.000Z",
- "stoptime": "string",
- "result": "string",
- "type": {
- "id": 0,
- "name": "string"
}, - "user": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "userid": 0,
- "answers": [
- {
- "questionid": 0
}
], - "externalkey": "string",
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
Creates a new articlegroup
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
externalkey | string |
sortorder | integer Default: 0 |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "externalkey": "string",
- "sortorder": 0
}
Returns a paginated list of articlegroups
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
externalkey | string |
name | string this property will match groups with a name that begins with the supplied text |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "id_asc" "id_desc" "sort_asc" "sort_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "externalkey": "string"
}
]
}
]
Updates an articlegroup
Use this method to change root level properties of an articlegroup.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
externalkey | string |
sortorder | integer Default: 0 |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "externalkey": "string",
- "sortorder": 0
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "externalkey": "string",
- "sortorder": 0
}
Creates a new article
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
price required | number |
description required | string |
warehousestatusid | integer |
businessareaid | integer |
servicelevelid | integer |
warehouseid | integer |
unitid | integer |
groupid | integer |
number | string |
buyprice | number |
commision | number |
externalkey | string |
imageurl | string |
url1 | string |
url2 | string |
stockbalance | integer |
vat required | number |
accountid | integer |
suppliername | string |
supplierarticlenumber | string |
stockbalancewarningtreshold | integer |
brandid | integer |
materialid | integer |
incampaign | integer |
volume | integer |
area | number |
volumegroupid | integer |
discountgroupid | integer |
budgetgroupid | integer |
active | integer |
presentation | string |
discount | number |
sortorder | integer Default: 0 |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "price": 0,
- "description": "string",
- "warehousestatusid": 0,
- "businessareaid": 0,
- "servicelevelid": 0,
- "warehouseid": 0,
- "unitid": 0,
- "groupid": 0,
- "number": "string",
- "buyprice": 0,
- "commision": 0,
- "externalkey": "string",
- "imageurl": "string",
- "url1": "string",
- "url2": "string",
- "stockbalance": 0,
- "vat": 0,
- "accountid": 0,
- "suppliername": "string",
- "supplierarticlenumber": "string",
- "stockbalancewarningtreshold": 0,
- "brandid": 0,
- "materialid": 0,
- "incampaign": 0,
- "volume": 0,
- "area": 0,
- "volumegroupid": 0,
- "discountgroupid": 0,
- "budgetgroupid": 0,
- "active": 0,
- "presentation": "string",
- "discount": 0,
- "sortorder": 0,
- "tags": [
- {
- "id": 0
}
]
}
Returns a paginated list of articles
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
number | string query articles by number |
groupid | string query articles by id property of the ArticleGroup |
active | integer Enum: 0 1 get active or inactive articles |
supplierarticlenumber | string get active or inactive articles |
warehousestatusid | integer |
businessareaid' | integer |
servicelevelid | integer |
warehouseid | integer |
unitid | integer |
externalkey | string |
brandid | integer |
materialid | integer |
volumegroupid | integer |
discountgroupid | integer |
budgetgroupid | integer |
missionid | integer |
fulltext | string this property will be used in a search in title, description and result |
sorting required | string Default: "number_asc" Enum: "name_asc" "name_desc" "number_asc" "number_desc" "suppliername_asc" "suppliername_desc" "supplierarticlenumber_asc" "supplierarticlenumber_desc" "externalkey_asc" "externalkey_desc" "sort_asc" "sort_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "price": 0,
- "description": "string",
- "warehousestatusid": 0,
- "businessareaid": 0,
- "servicelevelid": 0,
- "warehouseid": 0,
- "unitid": 0,
- "groupid": 0,
- "number": "string",
- "buyprice": 0,
- "commision": 0,
- "externalkey": "string",
- "imageurl": "string",
- "url1": "string",
- "url2": "string",
- "stockbalance": 0,
- "vat": 0,
- "accountid": 0,
- "suppliername": "string",
- "supplierarticlenumber": "string",
- "stockbalancewarningtreshold": 0,
- "brandid": 0,
- "materialid": 0,
- "incampaign": 0,
- "volume": 0,
- "area": 0,
- "volumegroupid": 0,
- "discountgroupid": 0,
- "budgetgroupid": 0,
- "active": 0,
- "presentation": "string",
- "discount": 0,
- "sortorder": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
Returns a list of brands
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of budgetgroups
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of discountgroups
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
DEPRECATED Returns a list of articlegroups
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "externalkey": "string",
- "sortorder": 0
}
]
Returns a list of materials
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of servicelevels
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of articleunits
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "externalkey": "string"
}
]
Returns a list of volumegroups
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of warehouses
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of warehousestatuses
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Updates a article
Use this method to change root level properties of a article.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
price required | number |
description required | string |
warehousestatusid | integer |
businessareaid | integer |
servicelevelid | integer |
warehouseid | integer |
unitid | integer |
groupid | integer |
number | string |
buyprice | number |
commision | number |
externalkey | string |
imageurl | string |
url1 | string |
url2 | string |
stockbalance | integer |
vat required | number |
accountid | integer |
suppliername | string |
supplierarticlenumber | string |
stockbalancewarningtreshold | integer |
brandid | integer |
materialid | integer |
incampaign | integer |
volume | integer |
area | number |
volumegroupid | integer |
discountgroupid | integer |
budgetgroupid | integer |
active | integer |
presentation | string |
discount | number |
sortorder | integer Default: 0 |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "price": 0,
- "description": "string",
- "warehousestatusid": 0,
- "businessareaid": 0,
- "servicelevelid": 0,
- "warehouseid": 0,
- "unitid": 0,
- "groupid": 0,
- "number": "string",
- "buyprice": 0,
- "commision": 0,
- "externalkey": "string",
- "imageurl": "string",
- "url1": "string",
- "url2": "string",
- "stockbalance": 0,
- "vat": 0,
- "accountid": 0,
- "suppliername": "string",
- "supplierarticlenumber": "string",
- "stockbalancewarningtreshold": 0,
- "brandid": 0,
- "materialid": 0,
- "incampaign": 0,
- "volume": 0,
- "area": 0,
- "volumegroupid": 0,
- "discountgroupid": 0,
- "budgetgroupid": 0,
- "active": 0,
- "presentation": "string",
- "discount": 0,
- "sortorder": 0,
- "tags": [
- {
- "id": 0
}
]
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "price": 0,
- "description": "string",
- "warehousestatusid": 0,
- "businessareaid": 0,
- "servicelevelid": 0,
- "warehouseid": 0,
- "unitid": 0,
- "groupid": 0,
- "number": "string",
- "buyprice": 0,
- "commision": 0,
- "externalkey": "string",
- "imageurl": "string",
- "url1": "string",
- "url2": "string",
- "stockbalance": 0,
- "vat": 0,
- "accountid": 0,
- "suppliername": "string",
- "supplierarticlenumber": "string",
- "stockbalancewarningtreshold": 0,
- "brandid": 0,
- "materialid": 0,
- "incampaign": 0,
- "volume": 0,
- "area": 0,
- "volumegroupid": 0,
- "discountgroupid": 0,
- "budgetgroupid": 0,
- "active": 0,
- "presentation": "string",
- "discount": 0,
- "sortorder": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
Creates a new article
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
externalkey | string |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "externalkey": "string"
}
Returns a paginated list of articleunits
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
externalkey | string |
name | string this property will match units with a name that begins with the supplied text |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "id_asc" "id_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "externalkey": "string"
}
]
}
]
Updates an articleunit
Use this method to change root level properties of an articleunit.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
externalkey | string |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "externalkey": "string"
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "externalkey": "string"
}
Creates a new contact
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string This field must not be empty. |
surname required | string This field must not be empty. |
function | string |
department | string |
string | |
officephone | string |
cellphone | string |
title | string |
street | string |
city | string |
zip | string |
accountid required | integer |
primarycontact | integer |
socialmedia_fb | string |
socialmedia_tw | string |
socialmedia_li | string |
idnumber | string |
externalkey | string |
active | integer |
superiorid | integer |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "surname": "string",
- "function": "string",
- "department": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "title": "string",
- "street": "string",
- "city": "string",
- "zip": "string",
- "accountid": 0,
- "primarycontact": 0,
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "idnumber": "string",
- "externalkey": "string",
- "active": 0,
- "superiorid": 0,
- "tags": [
- {
- "id": 0
}
]
}
Returns a paginated list of contacts
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
accountid | integer Contact.id with which the Contact takes place |
accounttypeids | string Comma separated list of AccountType.id whose contacts are queried |
accountuserids | string Comma separated list of User.id of the user responsible for the Accounts whose contacts are queried |
active | integer Enum: 0 1 get active or inactive contacts |
cellphone | string use % as a wildcard |
city | string use % as a wildcard |
string use % as a wildcard | |
externalkey | string |
followedby | integer User.id whose followed accounts are queried |
fulltext | string this property will be used in a search in name, surname, email, officephone, cellphone, title, idnumber, street, city, zip |
name | string use % as a wildcard |
officephone | string use % as a wildcard |
surname | string use % as a wildcard |
title | string use % as a wildcard |
primarycontact | integer Enum: 0 1 get marked as primarycontact or not primarycontact contacts |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "surname_asc" "surname_desc" "email_asc" "email_desc" "primarycontact_asc" "primarycontact_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "name": "string",
- "surname": "string",
- "function": "string",
- "department": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "title": "string",
- "street": "string",
- "city": "string",
- "zip": "string",
- "primarycontact": 0,
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "idnumber": "string",
- "externalkey": "string",
- "active": 0,
- "superior": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "files": [
- {
- "id": 0,
- "name": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "photo": {
- "avatar": "string",
- "photo": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
Follows a contact
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
Unfollows a contact
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
Updates a contact
Use this method to change root level properties of a contact.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
surname | string |
function | string |
department | string |
string | |
officephone | string |
cellphone | string |
title | string |
street | string |
city | string |
zip | string |
primarycontact | integer |
socialmedia_fb | string |
socialmedia_tw | string |
socialmedia_li | string |
idnumber | string |
externalkey | string |
active | integer |
superiorid | integer |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "surname": "string",
- "function": "string",
- "department": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "title": "string",
- "street": "string",
- "city": "string",
- "zip": "string",
- "primarycontact": 0,
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "idnumber": "string",
- "externalkey": "string",
- "active": 0,
- "superiorid": 0,
- "tags": [
- {
- "id": 0
}
]
}
Returns a contact
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "name": "string",
- "surname": "string",
- "function": "string",
- "department": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "title": "string",
- "street": "string",
- "city": "string",
- "zip": "string",
- "primarycontact": 0,
- "socialmedia_fb": "string",
- "socialmedia_tw": "string",
- "socialmedia_li": "string",
- "idnumber": "string",
- "externalkey": "string",
- "active": 0,
- "superior": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "files": [
- {
- "id": 0,
- "name": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "photo": {
- "avatar": "string",
- "photo": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
Creates a new deliveryterm
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
default | integer |
externalkey required | string |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string"
}
Returns a paginated list of deliveryterms
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
default | integer |
externalkey | string |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "id_asc" "id_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string"
}
]
}
]
Updates an deliveryterm
Use this method to change root level properties of an deliveryterm.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
default | integer |
externalkey required | string |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string"
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string"
}
Creates a new deliverytype
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
default | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "default": 0
}
Returns a paginated list of deliverytypes
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
default | integer |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "id_asc" "id_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "default": 0
}
]
}
]
Updates an deliverytype
Use this method to change root level properties of an deliverytype.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
default | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "default": 0
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "default": 0
}
Returns a paginated list of dynamic fields
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
groups | Array of strings comma separated list of groups [account, contact, order, opportunity, article] |
typeid | integer |
fieldname | string |
sorting required | string Default: "sorting_asc" Enum: "name_asc" "name_desc" "sorting_asc" "sorting_desc" "groupname_asc" "groupname_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "group": "string",
- "sortorder": 0,
- "size": 0,
- "help": "string",
- "required": true,
- "inoverview": true,
- "visible": true,
- "readonly": true,
- "options": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "type": {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}, - "fieldgroup": {
- "id": 0,
- "name": "string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "selected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "unselected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
]
}
]
}
]
get_field_definition_item
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "group": "string",
- "sortorder": 0,
- "size": 0,
- "help": "string",
- "required": true,
- "inoverview": true,
- "visible": true,
- "readonly": true,
- "options": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "type": {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}, - "fieldgroup": {
- "id": 0,
- "name": "string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "selected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "unselected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
]
}
Returns a paginated list of dynamic data for a given resource
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
resourcetype required | string Enum: "account" "contact" "order" "quote" "opportunity" "activity" "article" |
resourceid required | integer |
fieldname | string |
fieldids | Array of integers |
sorting required | string Default: "sorting_asc" Enum: "name_asc" "name_desc" "sorting_asc" "sorting_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "required": true,
- "inoverview": true,
- "visible": true,
- "readonly": true,
- "selected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "unselected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "type": {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}, - "value": "string"
}
]
}
]
Updates the value(s) of a dynamic data object for a given resource
Authorizations:
path Parameters
fieldid required | integer |
resourceid required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
Array of objects (FieldType) | |
Array of objects (FieldType) | |
value | string |
Responses
Request samples
- Payload
{- "selected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "unselected": [
- {
- "id": 0,
- "fieldid": 0,
- "label": "string",
- "sortorder": 0,
- "group": "string"
}
], - "value": "string"
}
Creates a new file
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
info | string |
folderid | integer |
content required | string base64 representation of the file content. |
connectedactivities | Array of integers this is a list of Activity.id to which the file will be connected |
connectedaccounts | Array of integers this is a list of Account.id to which the file will be connected |
connectedcontacts | Array of integers this is a list of Contact.id to which the file will be connected |
connectedopportunities | Array of integers this is a list of Opportunity.id to which the file will be connected |
connectedorders | Array of integers this is a list of Order.id to which the file will be connected |
connectedleads | Array of integers this is a list of Lead.id to which the file will be connected |
connectedquotes | Array of integers this is a list of Quote.id to which the file will be connected |
connectedprojects | Array of integers this is a list of Project.id to which the file will be connected |
connectedobjects | Array of integers this is a list of Object.id to which the file will be connected |
connectedusers | Array of integers this is a list of User.id to which the file will be connected |
connectedarticles | Array of integers this is a list of Article.id to which the file will be connected |
connectedmissions | Array of integers this is a list of Mission.id to which the file will be connected |
connectedsubscriptions | Array of integers this is a list of Subscription.id to which the file will be connected |
Responses
Request samples
- Payload
{- "name": "string",
- "info": "string",
- "folderid": 0,
- "content": "string",
- "connectedactivities": [
- 0
], - "connectedaccounts": [
- 0
], - "connectedcontacts": [
- 0
], - "connectedopportunities": [
- 0
], - "connectedorders": [
- 0
], - "connectedleads": [
- 0
], - "connectedquotes": [
- 0
], - "connectedprojects": [
- 0
], - "connectedobjects": [
- 0
], - "connectedusers": [
- 0
], - "connectedarticles": [
- 0
], - "connectedmissions": [
- 0
], - "connectedsubscriptions": [
- 0
]
}
Returns a paginated list of files
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
activityid | integer |
articleid | integer |
accountid | integer |
contactid | integer |
opportunityid | integer |
quoteid | integer |
orderid | integer |
leadid | integer |
projectid | integer |
objectid | integer |
userid | integer |
missionid | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "info": "string",
- "timestamp": "string",
- "folderid": 0,
- "templateid": 0,
- "folder": {
- "id": 0,
- "name": "string",
- "parentfolderid": 0
}, - "template": {
- "id": 0,
- "name": "string"
}, - "activities": [
- {
- "id": 0,
- "description": "string",
- "date": "2019-08-24",
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}
}
], - "accounts": [
- {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}
], - "contacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}
], - "opportunities": [
- {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "connectedactivities": [
- 0
], - "connectedaccounts": [
- 0
], - "connectedcontacts": [
- 0
], - "connectedopportunities": [
- 0
], - "connectedorders": [
- 0
], - "connectedleads": [
- 0
], - "connectedquotes": [
- 0
], - "connectedprojects": [
- 0
], - "connectedobjects": [
- 0
], - "connectedusers": [
- 0
], - "connectedarticles": [
- 0
], - "connectedmissions": [
- 0
], - "connectedsubscriptions": [
- 0
]
}
]
}
]
Returns a paginated list of folders
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
folderid | integer |
accountid | integer |
parentfolderid | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "parentfolderid": 0,
- "accountid": 0,
- "files": [
- {
- "id": 0,
- "name": "string"
}
], - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "folders": [
- {
- "id": 0,
- "name": "string"
}
]
}
]
}
]
Returns a folder
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "parentfolderid": 0,
- "accountid": 0,
- "files": [
- {
- "id": 0,
- "name": "string"
}
], - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "folders": [
- {
- "id": 0,
- "name": "string"
}
]
}
Updates a file
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
info | string |
folderid | integer |
content required | string base64 representation of the file content. |
connectedactivities | Array of integers this is a list of Activity.id to which the file will be connected |
connectedaccounts | Array of integers this is a list of Account.id to which the file will be connected |
connectedcontacts | Array of integers this is a list of Contact.id to which the file will be connected |
connectedopportunities | Array of integers this is a list of Opportunity.id to which the file will be connected |
connectedorders | Array of integers this is a list of Order.id to which the file will be connected |
connectedleads | Array of integers this is a list of Lead.id to which the file will be connected |
connectedquotes | Array of integers this is a list of Quote.id to which the file will be connected |
connectedprojects | Array of integers this is a list of Project.id to which the file will be connected |
connectedobjects | Array of integers this is a list of Object.id to which the file will be connected |
connectedusers | Array of integers this is a list of User.id to which the file will be connected |
connectedarticles | Array of integers this is a list of Article.id to which the file will be connected |
connectedmissions | Array of integers this is a list of Mission.id to which the file will be connected |
connectedsubscriptions | Array of integers this is a list of Subscription.id to which the file will be connected |
Responses
Request samples
- Payload
{- "name": "string",
- "info": "string",
- "folderid": 0,
- "content": "string",
- "connectedactivities": [
- 0
], - "connectedaccounts": [
- 0
], - "connectedcontacts": [
- 0
], - "connectedopportunities": [
- 0
], - "connectedorders": [
- 0
], - "connectedleads": [
- 0
], - "connectedquotes": [
- 0
], - "connectedprojects": [
- 0
], - "connectedobjects": [
- 0
], - "connectedusers": [
- 0
], - "connectedarticles": [
- 0
], - "connectedmissions": [
- 0
], - "connectedsubscriptions": [
- 0
]
}
Returns a file object
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "info": "string",
- "timestamp": "string",
- "folderid": 0,
- "templateid": 0,
- "folder": {
- "id": 0,
- "name": "string",
- "parentfolderid": 0
}, - "template": {
- "id": 0,
- "name": "string"
}, - "activities": [
- {
- "id": 0,
- "description": "string",
- "date": "2019-08-24",
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}
}
], - "accounts": [
- {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}
], - "contacts": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}
], - "opportunities": [
- {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "connectedactivities": [
- 0
], - "connectedaccounts": [
- 0
], - "connectedcontacts": [
- 0
], - "connectedopportunities": [
- 0
], - "connectedorders": [
- 0
], - "connectedleads": [
- 0
], - "connectedquotes": [
- 0
], - "connectedprojects": [
- 0
], - "connectedobjects": [
- 0
], - "connectedusers": [
- 0
], - "connectedarticles": [
- 0
], - "connectedmissions": [
- 0
], - "connectedsubscriptions": [
- 0
]
}
Creates a new challenge
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
required | object (NewCahllengeUser) |
startdate required | string <date-time> |
object (ChallengeType) |
Responses
Request samples
- Payload
{- "challenged": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string"
}, - "startdate": "2019-08-24T14:15:22Z",
- "type": {
- "id": 0,
- "name": "string"
}
}
Response samples
- 200
[- {
- "id": 0,
- "active": 0,
- "challenged": {
- "id": 0,
- "accepted": { },
- "challengeid": 0,
- "owner": true,
- "score": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "challenger": {
- "id": 0,
- "accepted": { },
- "challengeid": 0,
- "owner": true,
- "score": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "created": { },
- "daysremaining": 0,
- "startdate": { },
- "stopdate": { },
- "type": {
- "id": 0,
- "name": "string"
}, - "winner": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
]
Returns a paginated list of challenges
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
challengerid | integer Userid of the user who issued the challenge |
challengedid | integer userid of the challenged user |
typeid | integer |
winnerid | integer Userid of the user who won the challenge |
status required | string Default: "pending" Enum: "pending" "unanswered" "ongoing" "won" "lost" "all" "closed" |
datespan_start | string Start of date span formatted(YYYY-MM-DD) for filtering challenges that took place within this span |
datespan_end | string End of date span formatted(YYYY-MM-DD) for filtering challenges that took place within this span |
sorting required | string Default: "active_desc" Enum: "active_asc" "active_desc" "type_asc" "type_desc" "winner_asc" "winner_desc" "challenger_asc" "challenger_desc" "challenged_asc" "challenged_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "active": 0,
- "challenged": {
- "id": 0,
- "accepted": { },
- "challengeid": 0,
- "owner": true,
- "score": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "challenger": {
- "id": 0,
- "accepted": { },
- "challengeid": 0,
- "owner": true,
- "score": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "created": { },
- "daysremaining": 0,
- "startdate": { },
- "stopdate": { },
- "type": {
- "id": 0,
- "name": "string"
}, - "winner": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
]
}
]
Returns a list of challengetypes
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a challenge object
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "achievements": {
- "day": 0,
- "week": 0,
- "month": 0
}, - "category": "string",
- "heartbeat": 0,
- "level": 0,
- "score": 0
}
Returns a challenge object
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "active": 0,
- "challenged": {
- "id": 0,
- "accepted": { },
- "challengeid": 0,
- "owner": true,
- "score": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "challenger": {
- "id": 0,
- "accepted": { },
- "challengeid": 0,
- "owner": true,
- "score": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "created": { },
- "daysremaining": 0,
- "startdate": { },
- "stopdate": { },
- "type": {
- "id": 0,
- "name": "string"
}, - "winner": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
Downloads the challenge contents
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "status": "string"
}
Downloads the challenge contents
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "status": "string"
}
Creates a new leadactivity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
object (LeadActivityType) | |
comment required | string |
object (LeadUser) | |
followup | string <date-time> |
done required | integer |
created | string <date-time> this will be ignored on PUT/POST requests |
updated | string <date-time> this will be ignored on PUT/POST requests |
object this will be ignored on PUT/POST requests |
Responses
Request samples
- Payload
{- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "comment": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "followup": "2019-08-24T14:15:22Z",
- "done": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "lead": {
- "id": 0,
- "title": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string"
}
}
}
Returns a paginated list of leadactivities
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
done | integer Filter Leads based on date of creation formatted(YYYY-MM-DD) |
typeid | integer |
leadid | integer |
userid | integer |
folowupdate | string |
comment | string |
sorting required | string Default: "done_asc" Enum: "followupdate_asc" "followupdate_desc" "created_asc" "created_desc" "done_asc" "done_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "comment": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "followup": "2019-08-24T14:15:22Z",
- "done": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "lead": {
- "id": 0,
- "title": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string"
}
}
}
]
}
]
Updates an leadactivity
Use this method to change root level properties of an leadactivity.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
object (LeadActivityType) | |
comment required | string |
object (LeadUser) | |
followup | string <date-time> |
done required | integer |
created | string <date-time> this will be ignored on PUT/POST requests |
updated | string <date-time> this will be ignored on PUT/POST requests |
object this will be ignored on PUT/POST requests |
Responses
Request samples
- Payload
{- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "comment": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "followup": "2019-08-24T14:15:22Z",
- "done": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "lead": {
- "id": 0,
- "title": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string"
}
}
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "comment": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "followup": "2019-08-24T14:15:22Z",
- "done": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "lead": {
- "id": 0,
- "title": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string"
}
}
}
Creates a new lead
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
contacttitle | string |
contactname | string |
contactsurname | string |
contactcompany | string |
contactstreet | string |
contactcity | string |
contactzip | string |
contactphone | string |
contactcellphone | string |
contactemail | string |
contactvatno | string |
value | number |
created | string <date-time> this will be ignored on PUT/POST requests |
updated | string <date-time> this will be ignored on PUT/POST requests |
title | string |
description | string |
rating | integer |
object (LeadUser) | |
object (Source) | |
object (Status) | |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "contacttitle": "string",
- "contactname": "string",
- "contactsurname": "string",
- "contactcompany": "string",
- "contactstreet": "string",
- "contactcity": "string",
- "contactzip": "string",
- "contactphone": "string",
- "contactcellphone": "string",
- "contactemail": "string",
- "contactvatno": "string",
- "value": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "title": "string",
- "description": "string",
- "rating": 0,
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "source": {
- "id": 0,
- "name": "string",
- "default": 0
}, - "status": {
- "id": 0,
- "name": "string",
- "sortorder": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "tags": [
- {
- "id": 0
}
]
}
Returns a paginated list of leads
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
created | string Filter Leads based on date of creation formatted(YYYY-MM-DD) |
status | integer |
source | integer |
rating | integer |
fulltext | string |
userid | integer |
userids | string |
sorting required | string Default: "age_desc" Enum: "age_asc" "age_desc" "statusid_asc" "statusid_desc" "userid_asc" "userid_desc" "sourceid_asc" "sourceid_desc" "value_asc" "value_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "contacttitle": "string",
- "contactname": "string",
- "contactsurname": "string",
- "contactcompany": "string",
- "contactstreet": "string",
- "contactcity": "string",
- "contactzip": "string",
- "contactphone": "string",
- "contactcellphone": "string",
- "contactemail": "string",
- "contactvatno": "string",
- "value": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "title": "string",
- "description": "string",
- "rating": 0,
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "source": {
- "id": 0,
- "name": "string",
- "default": 0
}, - "status": {
- "id": 0,
- "name": "string",
- "sortorder": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "activities": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "comment": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "followup": "2019-08-24T14:15:22Z",
- "done": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "lead": {
- "id": 0,
- "title": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string"
}
}
}
]
}
]
}
]
Updates an lead
Use this method to change root level properties of an lead.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
contacttitle | string |
contactname | string |
contactsurname | string |
contactcompany | string |
contactstreet | string |
contactcity | string |
contactzip | string |
contactphone | string |
contactcellphone | string |
contactemail | string |
contactvatno | string |
value | number |
created | string <date-time> this will be ignored on PUT/POST requests |
updated | string <date-time> this will be ignored on PUT/POST requests |
title | string |
description | string |
rating | integer |
object (LeadUser) | |
object (Source) | |
object (Status) | |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "contacttitle": "string",
- "contactname": "string",
- "contactsurname": "string",
- "contactcompany": "string",
- "contactstreet": "string",
- "contactcity": "string",
- "contactzip": "string",
- "contactphone": "string",
- "contactcellphone": "string",
- "contactemail": "string",
- "contactvatno": "string",
- "value": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "title": "string",
- "description": "string",
- "rating": 0,
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "source": {
- "id": 0,
- "name": "string",
- "default": 0
}, - "status": {
- "id": 0,
- "name": "string",
- "sortorder": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "tags": [
- {
- "id": 0
}
]
}
Returns a lead
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "contacttitle": "string",
- "contactname": "string",
- "contactsurname": "string",
- "contactcompany": "string",
- "contactstreet": "string",
- "contactcity": "string",
- "contactzip": "string",
- "contactphone": "string",
- "contactcellphone": "string",
- "contactemail": "string",
- "contactvatno": "string",
- "value": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "title": "string",
- "description": "string",
- "rating": 0,
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "source": {
- "id": 0,
- "name": "string",
- "default": 0
}, - "status": {
- "id": 0,
- "name": "string",
- "sortorder": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "activities": [
- {
- "id": 0,
- "type": {
- "id": 0,
- "name": "string"
}, - "comment": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string",
- "title": "nullable string",
- "email": "nullable string",
- "phone": "nullable string",
- "cellphone": "nullable string"
}, - "followup": "2019-08-24T14:15:22Z",
- "done": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "lead": {
- "id": 0,
- "title": "string",
- "user": {
- "id": 0,
- "name": "nullable string",
- "surname": "nullable string"
}
}
}
]
}
Creates a new opportunity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
accountid required | integer |
altaccountid | integer |
contactid required | integer |
phone | string |
title required | string |
description required | string |
userid required | integer |
result | string |
value | number |
altvalue | string |
altvaluelabel | string |
statusid required | integer |
estimatedenddate required | string |
lostreasonid | integer |
typeid required | integer |
winreasonid | integer |
enddate | string <date> 2020-01-25 |
stateid | integer |
estimateid | integer |
sourceid | string |
closed | integer |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "accountid": 0,
- "altaccountid": 0,
- "contactid": 0,
- "phone": "string",
- "title": "string",
- "description": "string",
- "userid": 0,
- "result": "string",
- "value": 0,
- "altvalue": "string",
- "altvaluelabel": "string",
- "statusid": 0,
- "estimatedenddate": "string",
- "lostreasonid": 0,
- "typeid": 0,
- "winreasonid": 0,
- "enddate": "2019-08-24",
- "stateid": 0,
- "estimateid": 0,
- "sourceid": "string",
- "closed": 0,
- "tags": [
- {
- "id": 0
}
]
}
Returns a paginated list of opportunities
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
userid | integer id property of the Contact whith which the Contact takes place |
userids | string comma separated list of userids |
accountid | integer |
accounttypeids | string Comma separated list of AccountType.id whose contacts are queried |
accountuserids | string Comma separated list of User.id of the user responsible for the Accounts whose contacts are queried |
estimated_startdate | string Start of date span formatted(YYYY-MM-DD) for filtering via estimatedenddate |
estimated_enddate | string End of date span formatted(YYYY-MM-DD) for filtering via estimatedenddate |
actual_startdate | string Start of date span formatted(YYYY-MM-DD) for filtering via actual end date |
actual_enddate | string End of date span formatted(YYYY-MM-DD) for filtering via actual end date |
statusid | integer id propterty of the OpportunityStatus object |
statusids | string comma separated list of statusids |
estimateid | integer id propterty of the OpportunityEstimate object |
estimateids | string comma separated list of estimateids |
lostreasonid | integer id propterty of the OpportunityLost object |
winreasonid | integer id propterty of the OpportunityWin object |
contactid | integer id property of the contact with which the appointment takes place |
typeid | integer id propterty of the OpportunityType object |
closed | integer Enum: 0 1 get open or closed opportunities |
progressionstateid | integer id propterty of the ProgressionState object |
description | string string to be matched against description |
followedby | integer id property of the user whose followed accounts are queried |
fulltext | string this property will be used in a search in title, description and result |
sorting required | string Default: "date_asc" Enum: "date_asc" "date_desc" "account_asc" "account_desc" "userid_asc" "userid_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "accountid": 0,
- "altaccount": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "altaccountid": 0,
- "altvalue": 0,
- "altvaluelabel": "string",
- "changedate": { },
- "changeuserid": 0,
- "changeuser": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "closed": 0,
- "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "contactid": 0,
- "description": "string",
- "estimate": {
- "id": 0,
- "description": "string",
- "sortorder": 0,
- "value": "string",
- "visible": 0
}, - "estimatedenddate": "2020-01-25",
- "files": [
- {
- "id": 0,
- "name": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "lostreason": {
- "id": 0,
- "name": "string",
- "sortorder": 0
}, - "lostreasonid": 0,
- "phone": "string",
- "progressionstate": {
- "id": 0,
- "name": "string"
}, - "regdate": { },
- "reguser": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "reguserid": 0,
- "result": "string",
- "source": {
- "id": 0,
- "name": "string",
- "default": 0
}, - "sourceid": 0,
- "state": {
- "id": 0,
- "state": "string",
- "sortorder": 0
}, - "stateid": 0,
- "status": {
- "id": 0,
- "color": "string",
- "description": "string",
- "name": "string",
- "lost": 0,
- "opportunitytypeid": 0,
- "sortorder": 0,
- "sortorderplug": 0,
- "won": 0
}, - "statusid": 0,
- "title": "string",
- "type": {
- "id": 0,
- "isdefault": 0,
- "name": "string",
- "sortorder": 0,
- "validstatuses": {
- "id": 0,
- "color": "string",
- "description": "string",
- "name": "string",
- "lost": 0,
- "opportunitytypeid": 0,
- "sortorder": 0,
- "sortorderplug": 0,
- "won": 0
}
}, - "typeid": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "userid": 0,
- "value": 0,
- "businessarea": {
- "opportunityid": 0,
- "businessareaid": 0
}, - "winreason": {
- "id": 0,
- "name": "string",
- "sortorder": 0
}, - "winreasonid": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
Returns a list of opportunityestimates
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "description": "string",
- "sortorder": 0,
- "value": "string",
- "visible": 0
}
]
Follows an opportunity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
Returns a list of opportunitylostreasons
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "sortorder": 0
}
]
Returns a list of progressionstates for opportunities
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of opportunitysources
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "default": 0
}
]
Returns a list of opportunitystatuses
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "color": "string",
- "description": "string",
- "name": "string",
- "lost": 0,
- "opportunitytypeid": 0,
- "sortorder": 0,
- "sortorderplug": 0,
- "won": 0
}
]
Returns a list of opportunitytypes
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "isdefault": 0,
- "name": "string",
- "sortorder": 0,
- "validstatuses": {
- "id": 0,
- "color": "string",
- "description": "string",
- "name": "string",
- "lost": 0,
- "opportunitytypeid": 0,
- "sortorder": 0,
- "sortorderplug": 0,
- "won": 0
}
}
]
Unfollows an opportunity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
key required | integer |
userid required | integer |
Responses
Request samples
- Payload
{- "key": 0,
- "userid": 0
}
Returns a list of opportunitywinreasons
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "sortorder": 0
}
]
Updates an opportunity
Use this method to change root level properties of an opportunity.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
accountid required | integer |
altaccountid | integer |
contactid required | integer |
phone | string |
title required | string |
description required | string |
userid required | integer |
result | string |
value | number |
altvalue | string |
altvaluelabel | string |
statusid required | integer |
estimatedenddate required | string |
lostreasonid | integer |
typeid required | integer |
winreasonid | integer |
enddate | string <date> 2020-01-25 |
stateid | integer |
estimateid | integer |
sourceid | string |
closed | integer |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "accountid": 0,
- "altaccountid": 0,
- "contactid": 0,
- "phone": "string",
- "title": "string",
- "description": "string",
- "userid": 0,
- "result": "string",
- "value": 0,
- "altvalue": "string",
- "altvaluelabel": "string",
- "statusid": 0,
- "estimatedenddate": "string",
- "lostreasonid": 0,
- "typeid": 0,
- "winreasonid": 0,
- "enddate": "2019-08-24",
- "stateid": 0,
- "estimateid": 0,
- "sourceid": "string",
- "closed": 0,
- "tags": [
- {
- "id": 0
}
]
}
Returns an opportunity
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "accountid": 0,
- "altaccount": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "altaccountid": 0,
- "altvalue": 0,
- "altvaluelabel": "string",
- "changedate": { },
- "changeuserid": 0,
- "changeuser": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "closed": 0,
- "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "contactid": 0,
- "description": "string",
- "estimate": {
- "id": 0,
- "description": "string",
- "sortorder": 0,
- "value": "string",
- "visible": 0
}, - "estimatedenddate": "2020-01-25",
- "files": [
- {
- "id": 0,
- "name": "string"
}
], - "followers": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
], - "lostreason": {
- "id": 0,
- "name": "string",
- "sortorder": 0
}, - "lostreasonid": 0,
- "phone": "string",
- "progressionstate": {
- "id": 0,
- "name": "string"
}, - "regdate": { },
- "reguser": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "reguserid": 0,
- "result": "string",
- "source": {
- "id": 0,
- "name": "string",
- "default": 0
}, - "sourceid": 0,
- "state": {
- "id": 0,
- "state": "string",
- "sortorder": 0
}, - "stateid": 0,
- "status": {
- "id": 0,
- "color": "string",
- "description": "string",
- "name": "string",
- "lost": 0,
- "opportunitytypeid": 0,
- "sortorder": 0,
- "sortorderplug": 0,
- "won": 0
}, - "statusid": 0,
- "title": "string",
- "type": {
- "id": 0,
- "isdefault": 0,
- "name": "string",
- "sortorder": 0,
- "validstatuses": {
- "id": 0,
- "color": "string",
- "description": "string",
- "name": "string",
- "lost": 0,
- "opportunitytypeid": 0,
- "sortorder": 0,
- "sortorderplug": 0,
- "won": 0
}
}, - "typeid": 0,
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "userid": 0,
- "value": 0,
- "businessarea": {
- "opportunityid": 0,
- "businessareaid": 0
}, - "winreason": {
- "id": 0,
- "name": "string",
- "sortorder": 0
}, - "winreasonid": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
Creates a new order
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
placedate required | string <_DateTime> Date for when the order was placed, only the date part will be used |
required | object (IdObject) |
required | object (IdObject) |
required | object (IdObject) |
required | object (IdObject) |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
price | number |
currencycode | string |
currencyrate | number |
statisticsprice | number |
alternativevalue | number |
alternateid | string |
externalcomment | string |
delivered | integer |
deliverydate | string <_DateTime> Date for when the order will be delivered, only the date part will be used |
deliveryname | string |
deliverystreet | string |
deliveryzip | string |
deliverycity | string |
deliverycountry | string |
invoicename | string |
invoicestreet | string |
invoicezip | string |
invoicecity | string |
invoicecountry | string |
invoiceemail | string |
invoicenumber | string |
invoicedate | string |
externalkey | string |
internalcomment | string |
marking | string |
referencecode | string |
extracode | string |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
Array of objects (IdObject) | |
Array of objects (OrderRow) |
Responses
Request samples
- Payload
{- "placedate": "2019-01-25T00:00:00.000Z",
- "account": {
- "id": 0
}, - "user": {
- "id": 0
}, - "contact": {
- "id": 0
}, - "status": {
- "id": 0
}, - "deliveryterm": {
- "id": 0
}, - "paymentterm": {
- "id": 0
}, - "deliverytype": {
- "id": 0
}, - "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "alternateid": "string",
- "externalcomment": "string",
- "delivered": 0,
- "deliverydate": "2019-01-25T00:00:00.000Z",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "invoicename": "string",
- "invoicestreet": "string",
- "invoicezip": "string",
- "invoicecity": "string",
- "invoicecountry": "string",
- "invoiceemail": "string",
- "invoicenumber": "string",
- "invoicedate": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "user2": {
- "id": 0
}, - "opportunity": {
- "id": 0
}, - "type": {
- "id": 0
}, - "tags": [
- {
- "id": 0
}
], - "rows": [
- {
- "id": 0,
- "orderid": 0,
- "accountid": 0,
- "userid": 0,
- "opportunityid": 0,
- "quantityordered": 0,
- "quantitydelivered": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternatvievalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "externalkey": "nullable string",
- "noprint": 0,
- "deleted": 0,
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "sortgroup": 0,
- "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
Returns a paginated list of orders
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
number | string |
altnumber | string |
externalkey | string |
accountids | string |
statusids | string |
opportunityid | integer |
contactid | integer |
userids | string comma separated list of userids |
missionids | string comma separated list of missionids |
missionresult | integer Enum: 0 1 only shows orders connected to missionid with result 1/0 |
datespan_start | string Start of date span formatted(YYYY-MM-DD) |
datespan_end | string End of date span formatted(YYYY-MM-DD) |
fulltext | string this property will be used in a search in internal and external comments |
typeids | string comma separated list of typeids |
accountresponsibleids | string comma separated list of accountresponsibleids |
accounttypeids | string comma separated list of accounttypeids |
sorting required | string Default: "placedate_desc" Enum: "placedate_asc" "placedate_desc" "deliverydate_asc" "deliverydate_desc" "number_asc" "number_desc" "accountid_asc" "accountid_desc" "externalkey_asc" "externalkey_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "discounted": true,
- "placedate": "2019-01-25T00:00:00.000Z",
- "alternateid": "string",
- "externalcomment": "string",
- "deliverydate": "2019-01-25T00:00:00.000Z",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "invoicename": "string",
- "invoicestreet": "string",
- "invoicezip": "string",
- "invoicecity": "string",
- "invoicecountry": "string",
- "invoiceemail": "string",
- "invoicenumber": "string",
- "invoicedate": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "user2": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "opportunity": {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "status": {
- "id": 0,
- "name": "string"
}, - "deliveryterm": {
- "id": 0,
- "name": "string"
}, - "paymentterm": {
- "id": 0,
- "name": "string"
}, - "deliverytype": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "delivered": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "rows": [
- {
- "id": 0,
- "orderid": 0,
- "accountid": 0,
- "userid": 0,
- "opportunityid": 0,
- "quantityordered": 0,
- "quantitydelivered": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternatvievalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "externalkey": "nullable string",
- "noprint": 0,
- "deleted": 0,
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": null,
- "name": null,
- "unit": null,
- "min": null,
- "max": null
}, - "article": {
- "id": null,
- "name": null,
- "number": null
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "sortgroup": 0,
- "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
}
]
Updates an order
Use this method to change root level properties of an order.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
price | number |
currencycode | string |
currencyrate | number |
statisticsprice | number |
alternativevalue | number |
buyprice | number |
discounted | boolean |
placedate | string <_DateTime> Date for when the order was placed, only the date part will be used |
alternateid | string |
externalcomment | string |
deliverydate | string <_DateTime> Date for when the order will be delivered, only the date part will be used |
deliveryname | string |
deliverystreet | string |
deliveryzip | string |
deliverycity | string |
deliverycountry | string |
invoicename | string |
invoicestreet | string |
invoicezip | string |
invoicecity | string |
invoicecountry | string |
invoiceemail | string |
invoicenumber | string |
invoicedate | string |
externalkey | string |
internalcomment | string |
marking | string |
referencecode | string |
extracode | string |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
delivered | integer |
Array of objects (IdObject) | |
Array of objects (OrderRow) |
Responses
Request samples
- Payload
{- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "discounted": true,
- "placedate": "2019-01-25T00:00:00.000Z",
- "alternateid": "string",
- "externalcomment": "string",
- "deliverydate": "2019-01-25T00:00:00.000Z",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "invoicename": "string",
- "invoicestreet": "string",
- "invoicezip": "string",
- "invoicecity": "string",
- "invoicecountry": "string",
- "invoiceemail": "string",
- "invoicenumber": "string",
- "invoicedate": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "account": {
- "id": 0
}, - "user": {
- "id": 0
}, - "user2": {
- "id": 0
}, - "opportunity": {
- "id": 0
}, - "contact": {
- "id": 0
}, - "status": {
- "id": 0
}, - "deliveryterm": {
- "id": 0
}, - "paymentterm": {
- "id": 0
}, - "deliverytype": {
- "id": 0
}, - "type": {
- "id": 0
}, - "delivered": 0,
- "tags": [
- {
- "id": 0
}
], - "rows": [
- {
- "id": 0,
- "orderid": 0,
- "accountid": 0,
- "userid": 0,
- "opportunityid": 0,
- "quantityordered": 0,
- "quantitydelivered": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternatvievalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "externalkey": "nullable string",
- "noprint": 0,
- "deleted": 0,
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "sortgroup": 0,
- "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
Returns an order
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "discounted": true,
- "placedate": "2019-01-25T00:00:00.000Z",
- "alternateid": "string",
- "externalcomment": "string",
- "deliverydate": "2019-01-25T00:00:00.000Z",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "invoicename": "string",
- "invoicestreet": "string",
- "invoicezip": "string",
- "invoicecity": "string",
- "invoicecountry": "string",
- "invoiceemail": "string",
- "invoicenumber": "string",
- "invoicedate": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "user2": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "opportunity": {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "status": {
- "id": 0,
- "name": "string"
}, - "deliveryterm": {
- "id": 0,
- "name": "string"
}, - "paymentterm": {
- "id": 0,
- "name": "string"
}, - "deliverytype": {
- "id": 0,
- "name": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "delivered": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "rows": [
- {
- "id": 0,
- "orderid": 0,
- "accountid": 0,
- "userid": 0,
- "opportunityid": 0,
- "quantityordered": 0,
- "quantitydelivered": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternatvievalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "externalkey": "nullable string",
- "noprint": 0,
- "deleted": 0,
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "sortgroup": 0,
- "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
Creates a new ordertype
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
default | integer |
name required | string |
sortorder required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "default": 0,
- "name": "string",
- "sortorder": 0
}
Returns a paginated list of ordertypes
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
default | integer |
sortorder | integer |
sorting required | string Default: "sortorder_asc" Enum: "name_asc" "name_desc" "sortorder_asc" "sortorder_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "default": 0,
- "name": "string",
- "sortorder": 0
}
]
}
]
Updates an ordertype
Use this method to change root level properties of an ordertype.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
default | integer |
name required | string |
sortorder required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "default": 0,
- "name": "string",
- "sortorder": 0
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "default": 0,
- "name": "string",
- "sortorder": 0
}
Creates a new paymentterm
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
default | integer |
externalkey required | string |
days required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string",
- "days": 0
}
Returns a paginated list of paymentterms
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
default | integer |
externalkey | string |
days | integer |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "days_asc" "days_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string",
- "days": 0
}
]
}
]
Updates an paymentterm
Use this method to change root level properties of an paymentterm.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
default | integer |
externalkey required | string |
days required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string",
- "days": 0
}
Returns a article
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "default": 0,
- "externalkey": "string",
- "days": 0
}
Creates a new pricelist
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
active required | boolean |
start required | string <date-time> |
stop required | string <date-time> |
default required | boolean |
externalkey | string |
strict required | boolean |
description | string |
currencyid | integer |
required | Array of objects (ArticlePrice) |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}
Returns a paginated list of pricelists
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
active | integer |
start | string Start of date span formatted(YYYY-MM-DD) |
stop | string End of date span formatted(YYYY-MM-DD) |
default | integer |
accountid | integer |
accountnumber | string |
externalkey | string |
strict | integer |
currencyid | integer |
sorting required | string Default: "start_asc" Enum: "name_asc" "name_desc" "start_asc" "start_desc" "active_asc" "active_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}
]
}
]
Creates a new pricegroup
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
required | object (ListedArticleUnit) |
min required | integer |
max required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}
Returns a paginated list of pricegroups
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
unitid | integer |
quantity | integer |
sorting required | string Default: "quantity_asc" Enum: "unitid_asc" "unitid_desc" "quantity_asc" "quantity_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}
]
}
]
Updates an pricegroup
Use this method to change root level properties of an pricegroup.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
required | object (ListedArticleUnit) |
min required | integer |
max required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}
Returns a pricegroup
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}
Updates an pricelist
Use this method to change root level properties of an pricelist.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
active required | boolean |
start required | string <date-time> |
stop required | string <date-time> |
default required | boolean |
externalkey | string |
strict required | boolean |
description | string |
currencyid | integer |
required | Array of objects (ArticlePrice) |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}
Returns a pricelist
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}
post_address
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
person_number required | string |
Responses
Request samples
- Payload
{- "person_number": "string"
}
Response samples
- 200
{- "name": "string",
- "surname": "string",
- "street": "string",
- "city": "string",
- "zip": "string"
}
Creates a new article Deprecated
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
abstract required | string userVisibleData |
digest | string userNonVisibleData |
personalnumber | string personalNumber of the person supposed to sign |
requirement | object |
nonce | string |
Responses
Request samples
- Payload
{- "abstract": "string",
- "digest": "string",
- "personalnumber": "string",
- "requirement": { },
- "nonce": "string"
}
Response samples
- 200
{- "id": 0,
- "message": "string",
- "status": "string",
- "orderref": "string",
- "personalnumber": "string",
- "autostarttoken": "string",
- "hintcode": "string",
- "completiondata": {
- "user": {
- "personalnumber": "string",
- "name": "string",
- "givenname": "string",
- "surname": "string"
}, - "device": {
- "ipaddress": "string"
}, - "cert": {
- "notbefore": "string",
- "notafter": "string"
}, - "signature": "string",
- "ocspresponse": "string"
}
}
Cancels a signing request Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "message": "string",
- "status": "string",
- "orderref": "string",
- "personalnumber": "string",
- "autostarttoken": "string",
- "hintcode": "string",
- "completiondata": {
- "user": {
- "personalnumber": "string",
- "name": "string",
- "givenname": "string",
- "surname": "string"
}, - "device": {
- "ipaddress": "string"
}, - "cert": {
- "notbefore": "string",
- "notafter": "string"
}, - "signature": "string",
- "ocspresponse": "string"
}
}
Checks status of a signing request Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "message": "string",
- "status": "string",
- "orderref": "string",
- "personalnumber": "string",
- "autostarttoken": "string",
- "hintcode": "string",
- "completiondata": {
- "user": {
- "personalnumber": "string",
- "name": "string",
- "givenname": "string",
- "surname": "string"
}, - "device": {
- "ipaddress": "string"
}, - "cert": {
- "notbefore": "string",
- "notafter": "string"
}, - "signature": "string",
- "ocspresponse": "string"
}
}
post_credit_check
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
person_number required | string = 12 characters ^[0-9]{12}$ |
Responses
Request samples
- Payload
{- "person_number": "stringstring"
}
Response samples
- 200
{- "person_number": "string",
- "status": "string",
- "correlationid": "string",
- "checkdate": "2019-08-24T14:15:22Z",
- "outcome": "string"
}
Returns a list of phone brands
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of budgetgroups
Authorizations:
query Parameters
brandid | integer Filter models by brand |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string"
}
]
Returns a list of budgetgroups
Authorizations:
query Parameters
modelid | integer Filter options by model |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "colours": {
- "id": 0,
- "name": "string"
}, - "sizes": {
- "id": 0,
- "name": "string"
}
}
Returns a list of budgetgroups
Authorizations:
query Parameters
modelid required | integer Filter phones |
colourid | integer Filter phones |
sizeid | integer Filter by size |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "price": 0
}
]
Creates a new user
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
active | integer |
cellphone required | string |
Array of objects (Department1) | |
string | |
id | integer |
language | string |
lastactive | object |
name required | string |
phone | string |
presentation | string |
startpage | integer DEPRECATED |
surname required | string |
title required | string |
avatar_b64 | string |
photo_b64 | string |
Array of objects (UserSetting) | |
required | Array of objects (Role) |
Array of objects (Tag) |
Responses
Request samples
- Payload
{- "active": 0,
- "cellphone": "string",
- "departments": [
- {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "email": "string",
- "id": 0,
- "language": "string",
- "lastactive": { },
- "name": "string",
- "phone": "string",
- "presentation": "string",
- "startpage": 0,
- "surname": "string",
- "title": "string",
- "avatar_b64": "string",
- "photo_b64": "string",
- "settings": [
- {
- "id": 0,
- "key": "string",
- "value": "string",
- "userid": 0
}
], - "roles": [
- {
- "id": 0,
- "name": "string"
}
], - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
Returns a paginated list of users
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
active | integer |
code | string Filter users matching the external system code |
fulltext | string this property will be used in a search in name, surname, and email |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "active_asc" "active_desc" "surname_asc" "surname_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "active": 0,
- "cellphone": "string",
- "departments": [
- {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": null,
- "name": null,
- "surname": null,
- "title": null,
- "email": null,
- "phone": null,
- "cellphone": null
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "email": "string",
- "id": 0,
- "language": "string",
- "lastactive": { },
- "name": "string",
- "phone": "string",
- "presentation": "string",
- "startpage": 0,
- "surname": "string",
- "title": "string",
- "avatar_b64": "string",
- "photo_b64": "string",
- "settings": [
- {
- "id": 0,
- "key": "string",
- "value": "string",
- "userid": 0
}
], - "roles": [
- {
- "id": 0,
- "name": "string"
}
], - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
get_budget_collection
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
userids | string comma separated list of userids |
year_from | integer |
month_from | integer |
year_to | integer |
month_to | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "userid": 0,
- "year": 0,
- "month": 0,
- "budget": 0,
- "pipeline": 0,
- "weeks": [
- {
- "week": "string",
- "budget": 0,
- "pipeline": 0,
- "days": [
- {
- "day": "string",
- "budget": 0,
- "pipeline": 0
}
]
}
]
}
]
}
]
Creates a new department
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id required | integer |
name | string |
object (Department4) | |
object (ListedUser) | |
Array of objects (ListedUser) |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "parent": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "users": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
]
}
Returns a paginated list of departments
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
parentid | integer |
managerid | integer |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "parent": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "users": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
]
}
]
}
]
Updates a department
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id required | integer |
name | string |
object (Department4) | |
object (ListedUser) | |
Array of objects (ListedUser) |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "parent": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "users": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
]
}
Returns a department
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "parent": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "users": [
- {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
]
}
Updates a user
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
active | integer |
cellphone | string |
customerid | integer |
Array of objects (Department1) | |
string | |
object (UserEmailSetting) | |
id | integer |
language | string |
lastactive | object |
name | string |
phone | string |
presentation | string |
object (UserProperty) | |
Array of objects (UserSetting) | |
startpage | integer DEPRECATED |
surname | string |
title | string |
avatar_b64 | string |
photo_b64 | string |
Responses
Request samples
- Payload
{- "active": 0,
- "cellphone": "string",
- "customerid": 0,
- "departments": [
- {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "email": "string",
- "emailsettings": {
- "id": 0,
- "email": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "port": "string",
- "authtype": 0,
- "incominserver": "string",
- "smtpserver": "string",
- "userid": 0,
- "signature": "string",
- "defaultemailtype": 0
}, - "id": 0,
- "language": "string",
- "lastactive": { },
- "name": "string",
- "phone": "string",
- "presentation": "string",
- "properties": {
- "userid": 0,
- "licenceadmin": 0,
- "elevatedaccount": 0,
- "salescoach": 0,
- "crmversion": 0
}, - "settings": [
- {
- "id": 0,
- "key": "string",
- "value": "string",
- "userid": 0
}
], - "startpage": 0,
- "surname": "string",
- "title": "string",
- "avatar_b64": "string",
- "photo_b64": "string"
}
Returns a user
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "active": 0,
- "cellphone": "string",
- "customerid": 0,
- "departments": [
- {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "email": "string",
- "emailsettings": {
- "id": 0,
- "email": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "port": "string",
- "authtype": 0,
- "incominserver": "string",
- "smtpserver": "string",
- "userid": 0,
- "signature": "string",
- "defaultemailtype": 0
}, - "id": 0,
- "language": "string",
- "lastactive": { },
- "name": "string",
- "phone": "string",
- "presentation": "string",
- "properties": {
- "userid": 0,
- "licenceadmin": 0,
- "elevatedaccount": 0,
- "salescoach": 0,
- "crmversion": 0
}, - "settings": [
- {
- "id": 0,
- "key": "string",
- "value": "string",
- "userid": 0
}
], - "startpage": 0,
- "surname": "string",
- "title": "string",
- "avatar_b64": "string",
- "photo_b64": "string"
}
Creates a new role
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string"
}
Returns a paginated list of roles
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" "id_asc" "id_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string"
}
]
}
]
Updates a user
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name | string |
surname | string |
string | |
language | string |
startpage | integer DEPRECATED |
active | integer |
phone | string |
cellphone | string |
title | string |
presentation | string |
avatar_b64 | string |
photo_b64 | string |
Array of objects (Department1) | |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "surname": "string",
- "email": "string",
- "language": "string",
- "startpage": 0,
- "active": 0,
- "phone": "string",
- "cellphone": "string",
- "title": "string",
- "presentation": "string",
- "avatar_b64": "string",
- "photo_b64": "string",
- "departments": [
- {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "tags": [
- {
- "id": 0
}
]
}
Returns a user
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "active": 0,
- "cellphone": "string",
- "departments": [
- {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentdepartment": {
- "id": 0,
- "name": "string",
- "parentid": 0,
- "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "manager": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}
], - "email": "string",
- "id": 0,
- "language": "string",
- "lastactive": { },
- "name": "string",
- "phone": "string",
- "presentation": "string",
- "startpage": 0,
- "surname": "string",
- "title": "string",
- "avatar_b64": "string",
- "photo_b64": "string",
- "settings": [
- {
- "id": 0,
- "key": "string",
- "value": "string",
- "userid": 0
}
], - "roles": [
- {
- "id": 0,
- "name": "string"
}
], - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
get_budget_collection
Authorizations:
path Parameters
userid required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
userids | string comma separated list of userids |
year_from | integer |
month_from | integer |
year_to | integer |
month_to | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "userid": 0,
- "year": 0,
- "month": 0,
- "budget": 0,
- "pipeline": 0,
- "weeks": [
- {
- "week": "string",
- "budget": 0,
- "pipeline": 0,
- "days": [
- {
- "day": "string",
- "budget": 0,
- "pipeline": 0
}
]
}
]
}
]
}
]
put_budget_item
Authorizations:
path Parameters
userid required | integer |
year required | integer |
month required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
budget | integer |
pipeline | integer |
Responses
Request samples
- Payload
{- "budget": 0,
- "pipeline": 0
}
delete_budget_item
Authorizations:
path Parameters
userid required | integer |
year required | integer |
month required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
get_budget_item
Authorizations:
path Parameters
userid required | integer |
year required | integer |
month required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "userid": 0,
- "year": 0,
- "month": 0,
- "budget": 0,
- "pipeline": 0,
- "weeks": [
- {
- "week": "string",
- "budget": 0,
- "pipeline": 0,
- "days": [
- {
- "day": "string",
- "budget": 0,
- "pipeline": 0
}
]
}
]
}
Returns a paginated list of kpis
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
userid required | integer |
sorting required | string Default: "sort_asc" Enum: "sort_asc" "sort_desc" |
location required | string Default: "dashboard" Enum: "dashboard" "all" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "title": "string",
- "type": "string",
- "subtitle": "string",
- "value": "string",
- "period": "string",
- "average": "string"
}
]
}
]
Creates a new orderstatus
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
default | integer |
name required | string |
step required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "default": 0,
- "name": "string",
- "step": 0
}
Returns a paginated list of orderstatus
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
default | integer |
step | integer |
sorting required | string Default: "name_asc" Enum: "name_asc" "name_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "default": 0,
- "name": "string",
- "step": 0
}
]
}
]
Updates an orderstatus
Use this method to change root level properties of an orderstatus.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
default | integer |
name required | string |
step required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "default": 0,
- "name": "string",
- "step": 0
}
Returns a orderstatus
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "default": 0,
- "name": "string",
- "step": 0
}
Creates a new mission
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
active | integer |
description | string |
startdate | string <date> Date 'YYYY-MM-DD' for when the Mission starts |
enddate | string <date> Date 'YYYY-MM-DD' for when the Mission ends |
script | string |
string | |
video | string |
terms | string |
userid | integer |
typeid | integer |
Responses
Request samples
- Payload
{- "name": "string",
- "active": 0,
- "description": "string",
- "startdate": "1985-11-17",
- "enddate": "2010-03-15",
- "script": "string",
- "pdf": "string",
- "video": "string",
- "terms": "string",
- "userid": 0,
- "typeid": 0
}
Returns a paginated list of missions
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
active | integer Default: 1 Enum: 0 1 get active or inactive missions |
datespan_start | string <date-time> |
datespan_end | string <date-time> |
ownerid | integer id property of the user owning the mission |
ownerids | string comma separated list of userids |
typeid | integer id property of the mission type |
sorting | string Default: "enddate_asc" Enum: "enddate_asc" "enddate_desc" "startdate_asc" "startdate_desc" "name_asc" "name_desc" "number_asc" "number_desc" |
accountids | string |
activityids | string |
articleids | string |
userids | string |
orderids | string |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "type": "string",
- "connectid": 0,
- "result": 0,
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}
]
}
]
Updates an mission
Use this method to change root level properties of an mission.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
active | integer |
description | string |
startdate | string <date> Date 'YYYY-MM-DD' for when the Mission starts |
enddate | string <date> Date 'YYYY-MM-DD' for when the Mission ends |
script | string |
string | |
video | string |
terms | string |
userid | integer |
typeid | integer |
Responses
Request samples
- Payload
{- "name": "string",
- "active": 0,
- "description": "string",
- "startdate": "1985-11-17",
- "enddate": "2010-03-15",
- "script": "string",
- "pdf": "string",
- "video": "string",
- "terms": "string",
- "userid": 0,
- "typeid": 0
}
Returns an mission
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "description": "string",
- "startdate": "1985-11-17",
- "enddate": "2010-03-15",
- "active": 0,
- "script": "string",
- "pdf": "string",
- "video": "string",
- "terms": "string",
- "userid": 0,
- "typeid": 0
}
get_mission_connection_collection
Authorizations:
path Parameters
mission_id required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
result | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "type": "string",
- "connectid": 0,
- "result": 0,
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}
]
}
]
get_mission_activity_connection_collection
Authorizations:
path Parameters
mission_id required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
result | integer |
typeids | string comma separated list of activity type ids |
userids | string comma separated list of user ids |
start | string <date-time> |
end | string <date-time> |
sorting | string Default: "number_asc" Enum: "start_asc" "start_desc" "end_asc" "end_desc" "number_asc" "number_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "type": "string",
- "connectid": 0,
- "result": 0,
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z",
- "activity": {
- "id": 0,
- "description": "string",
- "date": "2019-08-24",
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}
}
}
]
}
]
get_mission_connection_collection
Authorizations:
path Parameters
mission_id required | integer |
connection_type required | string |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
result | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "type": "string",
- "connectid": 0,
- "result": 0,
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}
]
}
]
put_mission_connection_item
Authorizations:
path Parameters
mission_id required | integer |
connection_type required | string |
other_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
type | string |
connectid | integer |
result | integer |
tscreated | string <date-time> |
tsupdated | string <date-time> |
Responses
Request samples
- Payload
{- "type": "string",
- "connectid": 0,
- "result": 0,
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}
get_mission_connection_item
Authorizations:
path Parameters
mission_id required | integer |
connection_type required | string |
other_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
{- "type": "string",
- "connectid": 0,
- "result": 0,
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}
get_mission_progress_collection
Authorizations:
path Parameters
mission_id required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
accountids | string comma separated list of accountids |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "activity": {
- "id": 0,
- "description": "string",
- "date": "2019-08-24",
- "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "type": {
- "id": 0,
- "name": "string"
}, - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}
}, - "accountid": 0,
- "accountname": "string",
- "lastactivity": "2019-08-24T14:15:22Z",
- "completed": true
}
], - "totalactive": 0,
- "totalcompleted": 0
}
]
Creates a new contract
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
number required | string |
number2 | string or null |
description | string or null |
object (IdObject) | |
start required | string <date-time> |
end required | string <date-time> |
installdate | string or null <date-time> |
value | number |
financed | integer |
object (IdObject) | |
object (IdObject) | |
required | object (IdObject) |
required | object (IdObject) |
object (IdObject) | |
reminderdays required | integer |
externalkey | string or null |
Responses
Request samples
- Payload
{- "number": "string",
- "number2": "nullable string",
- "description": "nullable string",
- "status": {
- "id": 0
}, - "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "installdate": "2019-08-24T14:15:22Z",
- "value": 0,
- "financed": 0,
- "financeaccount": {
- "id": 0
}, - "type": {
- "id": 0
}, - "contact": {
- "id": 0
}, - "responsible": {
- "id": 0
}, - "responsibleservice": {
- "id": 0
}, - "reminderdays": 0,
- "externalkey": "nullable string"
}
Returns a paginated list of contracts
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
number | string |
fulltext | string |
contactids | string comma separated list of contactids |
financeaccountids | string comma separated list of accountids |
responsibleids | string comma separated list of userids |
responsibleserviceids | string comma separated list of userids |
typeids | string comma separated list of objectcategoryids |
statusids | string comma separated list of objectcategoryids |
objectids | string comma separated list of objectids |
externalkey | string |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "number": "nullable string",
- "number2": "nullable string",
- "description": "nullable string",
- "status": {
- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "installdate": "2019-08-24T14:15:22Z",
- "value": "nullable number",
- "financed": 0,
- "financeaccount": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "type": {
- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "responsible": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "responsibleservice": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "reminderdays": 0,
- "externalkey": "nullable string"
}
]
}
]
get_contract_object_collection
Authorizations:
path Parameters
contract_id required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
location | string |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "contractid": 0,
- "objectid": 0,
- "location": "nullable string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
]
put_contract_object_item
Authorizations:
path Parameters
contract_id required | integer |
object_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
location | string or null |
Responses
Request samples
- Payload
{- "location": "nullable string"
}
get_contract_object_item
Authorizations:
path Parameters
contract_id required | integer |
object_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
{- "contractid": 0,
- "objectid": 0,
- "location": "nullable string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
get_contract_reminder_item
Authorizations:
path Parameters
contract_id required | integer |
activity_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
{- "activityid": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
get_contract_reminder_collection
Authorizations:
path Parameters
contract_id required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "activityid": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
]
Updates a contract
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
number | string or null |
number2 | string or null |
description | string or null |
object (IdObject) | |
start | string <date-time> |
end | string <date-time> |
installdate | string or null <date-time> |
value | number or null |
financed | integer or null |
IdObject (object) or (object or null) | |
object (IdObject) | |
object (IdObject) | |
IdObject (object) or (object or null) | |
IdObject (object) or (object or null) | |
reminderdays | integer or null |
externalkey | string or null |
Responses
Request samples
- Payload
{- "number": "nullable string",
- "number2": "nullable string",
- "description": "nullable string",
- "status": {
- "id": 0
}, - "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "installdate": "2019-08-24T14:15:22Z",
- "value": "nullable number",
- "financed": 0,
- "financeaccount": {
- "id": 0
}, - "type": {
- "id": 0
}, - "contact": {
- "id": 0
}, - "responsible": {
- "id": 0
}, - "responsibleservice": {
- "id": 0
}, - "reminderdays": 0,
- "externalkey": "nullable string"
}
Returns a contract
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "number": "nullable string",
- "number2": "nullable string",
- "description": "nullable string",
- "status": {
- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "installdate": "2019-08-24T14:15:22Z",
- "value": "nullable number",
- "financed": 0,
- "financeaccount": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "type": {
- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "responsible": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "responsibleservice": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "reminderdays": 0,
- "externalkey": "nullable string"
}
Creates a new object
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
description | string or null |
serialnumber | string or null |
required | object (IdObject) |
object (IdObject) | |
url | string or null |
image1 | string or null |
image2 | string or null |
image3 | string or null |
externalkey | string or null |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "description": "nullable string",
- "serialnumber": "nullable string",
- "manufacturer": {
- "id": 0
}, - "modelgroup": {
- "id": 0
}, - "url": "nullable string",
- "image1": "nullable string",
- "image2": "nullable string",
- "image3": "nullable string",
- "externalkey": "nullable string",
- "tags": [
- {
- "id": 0
}
]
}
Returns a paginated list of objects
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
serialnumber | string |
fulltext | string |
name | string |
manufacturerids | string comma separated list of accountids |
modelgroupids | string comma separated list of objectcategoryids |
externalkey | string |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "nullable string",
- "description": "nullable string",
- "serialnumber": "nullable string",
- "manufacturer": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "modelgroup": {
- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "url": "nullable string",
- "image1": "nullable string",
- "image2": "nullable string",
- "image3": "nullable string",
- "externalkey": "nullable string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
Creates a new object category
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
type required | string |
name required | string or null |
sort | integer |
default | integer |
Responses
Request samples
- Payload
{- "type": "string",
- "name": "nullable string",
- "sort": 0,
- "default": 0
}
Returns a paginated list of object categories
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
type | string Enum: "modelgroup" "contracttype" "contractstatus" |
name | string |
default | integer |
sorting | string Enum: "order_asc" "order_desc" "name_asc" "name_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
]
Updates a object category
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
type | string |
name | string or null |
sort | integer |
default | integer |
Responses
Request samples
- Payload
{- "type": "string",
- "name": "nullable string",
- "sort": 0,
- "default": 0
}
Returns a object category
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
Updates a object
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string or null |
description | string or null |
serialnumber | string or null |
object (IdObject) | |
object (IdObject) | |
url | string or null |
image1 | string or null |
image2 | string or null |
image3 | string or null |
externalkey | string or null |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "nullable string",
- "description": "nullable string",
- "serialnumber": "nullable string",
- "manufacturer": {
- "id": 0
}, - "modelgroup": {
- "id": 0
}, - "url": "nullable string",
- "image1": "nullable string",
- "image2": "nullable string",
- "image3": "nullable string",
- "externalkey": "nullable string",
- "tags": [
- {
- "id": 0
}
]
}
Returns a object
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "nullable string",
- "description": "nullable string",
- "serialnumber": "nullable string",
- "manufacturer": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "modelgroup": {
- "id": 0,
- "type": "nullable string",
- "name": "nullable string",
- "sort": 0,
- "default": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "url": "nullable string",
- "image1": "nullable string",
- "image2": "nullable string",
- "image3": "nullable string",
- "externalkey": "nullable string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
get_object_contract_collection
Authorizations:
path Parameters
object_id required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
location | string |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "contractid": 0,
- "objectid": 0,
- "location": "nullable string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
]
put_object_contract_item
Authorizations:
path Parameters
object_id required | integer |
contract_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Request Body schema: application/jsonrequired
location | string or null |
Responses
Request samples
- Payload
{- "location": "nullable string"
}
get_object_contract_item
Authorizations:
path Parameters
object_id required | integer |
contract_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
{- "contractid": 0,
- "objectid": 0,
- "location": "nullable string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
get_object_relation_collection
Authorizations:
path Parameters
object_id required | integer |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "type": "string",
- "objectid": 0,
- "otherid": 0
}
]
}
]
get_object_relation_collection
Authorizations:
path Parameters
object_id required | integer |
relation_type required | string |
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "type": "string",
- "objectid": 0,
- "otherid": 0
}
]
}
]
get_object_relation_item
Authorizations:
path Parameters
object_id required | integer |
relation_type required | string |
other_id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
Responses
Response samples
- 200
{- "type": "string",
- "objectid": 0,
- "otherid": 0
}
Updates settings
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
currency | string or null |
object (PortalSettings) | |
object (SalesSettings) | |
object (FieldsalesSettings) | |
object (ConsentSettings) |
Responses
Request samples
- Payload
{- "currency": "nullable string",
- "portal": {
- "name": "string",
- "street": "string",
- "zip": "string",
- "city": "string",
- "country": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "plusgiro": "string",
- "bankgiro": "string",
- "vatnumber": "string",
- "vatregnumber": "string",
- "url": "string",
- "iban": "nullable string",
- "swift": "nullable string",
- "seat": "nullable string"
}, - "sales": {
- "defaultinterest": 0
}, - "fieldsales": {
- "activitytypes": {
- "assigned": 0,
- "knock": 0,
- "note": 0,
- "return": 0,
- "notavailable": 0,
- "rejected": 0,
- "erpaccepted": 0,
- "erpdeclined": 0
}, - "numberporting": {
- "group": 0,
- "name": 0,
- "number": 0,
- "phone": 0
}, - "filter": 0,
- "headlines": [
- {
- "title": "string",
- "body": "string"
}
], - "erpurl": "string",
- "signaturefields": [
- 0
], - "terms": "string"
}, - "consent": {
- "logofileid": 0,
- "email": {
- "fromemail": "string",
- "fromname": "string",
- "user": "string",
- "port": "string",
- "server": "string",
- "body": "string",
- "password": "string",
- "auth": 0,
- "userid": 0,
- "type": 0
}
}
}
Returns settings
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "currency": "nullable string",
- "portal": {
- "name": "string",
- "street": "string",
- "zip": "string",
- "city": "string",
- "country": "string",
- "phone": "string",
- "fax": "string",
- "email": "string",
- "plusgiro": "string",
- "bankgiro": "string",
- "vatnumber": "string",
- "vatregnumber": "string",
- "url": "string",
- "iban": "nullable string",
- "swift": "nullable string",
- "seat": "nullable string"
}, - "sales": {
- "defaultinterest": 0
}, - "fieldsales": {
- "activitytypes": {
- "assigned": 0,
- "knock": 0,
- "note": 0,
- "return": 0,
- "notavailable": 0,
- "rejected": 0,
- "erpaccepted": 0,
- "erpdeclined": 0
}, - "numberporting": {
- "group": 0,
- "name": 0,
- "number": 0,
- "phone": 0
}, - "filter": 0,
- "headlines": [
- {
- "title": "string",
- "body": "string"
}
], - "erpurl": "string",
- "signaturefields": [
- 0
], - "terms": "string"
}, - "consent": {
- "logofileid": 0,
- "email": {
- "fromemail": "string",
- "fromname": "string",
- "user": "string",
- "port": "string",
- "server": "string",
- "body": "string",
- "password": "string",
- "auth": 0,
- "userid": 0,
- "type": 0
}
}
}
Returns a paginated list of addons
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
internalname | string |
sorting | string Default: "sort_asc" Enum: "sort_asc" "sort_desc" "title_asc" "title_desc" "internalname_asc" "internalname_desc" "number_asc" "number_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "title": "string",
- "url": "string",
- "internalname": "string",
- "sort": 0,
- "enabled": true,
- "parameters": [
- {
- "id": 0,
- "name": "string",
- "value": "string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
]
}
]
Returns a addon
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "title": "string",
- "url": "string",
- "internalname": "string",
- "sort": 0,
- "enabled": true,
- "parameters": [
- {
- "id": 0,
- "name": "string",
- "value": "string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
Initiates a signing request
This API offers no support for animated QR codes, which will be mandatory for all signatures by 2024-05-01. New implementations must use Cirrus API Gateway instead.
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
abstract required | string userVisibleData |
digest | string userNonVisibleData |
personalnumber | string personalNumber of the person supposed to sign |
requirement | object |
nonce | string |
Responses
Request samples
- Payload
{- "abstract": "string",
- "digest": "string",
- "personalnumber": "string",
- "requirement": { },
- "nonce": "string"
}
Response samples
- 200
{- "id": 0,
- "message": "string",
- "status": "string",
- "orderref": "string",
- "personalnumber": "string",
- "autostarttoken": "string",
- "hintcode": "string",
- "completiondata": {
- "user": {
- "personalnumber": "string",
- "name": "string",
- "givenname": "string",
- "surname": "string"
}, - "device": {
- "ipaddress": "string"
}, - "cert": {
- "notbefore": "string",
- "notafter": "string"
}, - "signature": "string",
- "ocspresponse": "string"
}
}
Connects a bankid signature to another entity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
signature required | integer |
type required | string |
otherid required | integer |
Responses
Request samples
- Payload
{- "signature": 0,
- "type": "string",
- "otherid": 0
}
Lists the relations of a bankid signature
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
type | string Value: "order" |
otherid | integer |
signatureid | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "signature": 0,
- "type": "string",
- "otherid": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
]
Updates or cancels a signing request
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
nonce | string |
status | string |
hintcode | string |
orderref | string |
completiondata | string |
errorcode | string |
Responses
Request samples
- Payload
{- "nonce": "string",
- "status": "string",
- "hintcode": "string",
- "orderref": "string",
- "completiondata": "string",
- "errorcode": "string"
}
Response samples
- 200
{- "id": 0,
- "message": "string",
- "status": "string",
- "orderref": "string",
- "personalnumber": "string",
- "autostarttoken": "string",
- "hintcode": "string",
- "completiondata": {
- "user": {
- "personalnumber": "string",
- "name": "string",
- "givenname": "string",
- "surname": "string"
}, - "device": {
- "ipaddress": "string"
}, - "cert": {
- "notbefore": "string",
- "notafter": "string"
}, - "signature": "string",
- "ocspresponse": "string"
}
}
Checks status of a signing request
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "message": "string",
- "status": "string",
- "orderref": "string",
- "personalnumber": "string",
- "autostarttoken": "string",
- "hintcode": "string",
- "completiondata": {
- "user": {
- "personalnumber": "string",
- "name": "string",
- "givenname": "string",
- "surname": "string"
}, - "device": {
- "ipaddress": "string"
}, - "cert": {
- "notbefore": "string",
- "notafter": "string"
}, - "signature": "string",
- "ocspresponse": "string"
}
}
Creates a new quote
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
placedate required | string <date> Date for when the quote was placed |
required | object (IdObject) |
required | object (IdObject) |
required | object (IdObject) |
required | object (IdObject) |
required | object (IdObject) |
required | object (IdObject) |
required | object (IdObject) |
object (IdObject) | |
object (IdObject) | |
validtodate | string <date> Last date the quote is valid (inclusive) |
price | number |
currencycode | string |
currencyrate | number |
statisticsprice | number |
alternativevalue | number |
alternateid | string |
externalcomment | string |
deliverydate | string <date> Date for when the quote will be delivered |
deliveryname | string |
deliverystreet | string |
deliveryzip | string |
deliverycity | string |
deliverycountry | string |
externalkey | string |
internalcomment | string |
marking | string |
referencecode | string |
extracode | string |
Array of objects (IdObject) | |
Array of objects (QuoteRow) |
Responses
Request samples
- Payload
{- "placedate": "2019-01-25",
- "status": {
- "id": 0
}, - "deliveryterm": {
- "id": 0
}, - "paymentterm": {
- "id": 0
}, - "deliverytype": {
- "id": 0
}, - "account": {
- "id": 0
}, - "contact": {
- "id": 0
}, - "user": {
- "id": 0
}, - "user2": {
- "id": 0
}, - "opportunity": {
- "id": 0
}, - "validtodate": "2019-01-25",
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "alternateid": "string",
- "externalcomment": "string",
- "deliverydate": "2019-01-25",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "tags": [
- {
- "id": 0
}
], - "rows": [
- {
- "id": 0,
- "quoteid": 0,
- "alternateid": "string",
- "quantity": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "costcenter": "string",
- "externalkey": "nullable string",
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "sortgroup": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
Returns a paginated list of quotes
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
externalkey | string |
altnumber | string |
accountids | string comma separated list of accountids |
statusids | string comma separated list of statusids |
contactids | string comma separated list of contactids |
opportunityids | string comma separated list of opportunityids |
userids | string comma separated list of userids |
user2ids | string comma separated list of userids |
orderids | string comma separated list of orderids |
activityids | string comma separated list of activityids |
placedate_start | string Start of date span formatted(YYYY-MM-DD) |
placedate_end | string End of date span formatted(YYYY-MM-DD) |
validtodate_start | string Start of date span formatted(YYYY-MM-DD) |
validtodate_end | string End of date span formatted(YYYY-MM-DD) |
deliverydate_start | string Start of date span formatted(YYYY-MM-DD) |
deliverydate_end | string End of date span formatted(YYYY-MM-DD) |
fulltext | string this property will be used in a search in internal and external comments |
sorting required | string Default: "placedate_desc" Enum: "placedate_asc" "placedate_desc" "validtodate_asc" "validtodate_desc" "deliverydate_asc" "deliverydate_desc" "number_asc" "number_desc" "externalkey_asc" "externalkey_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "discounted": true,
- "placedate": "2019-01-25",
- "validtodate": "2019-01-25",
- "alternateid": "string",
- "externalcomment": "string",
- "deliverydate": "2019-01-25",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z",
- "status": {
- "id": 0,
- "name": "string",
- "sortorder": 0,
- "isdefault": 0,
- "metatype": "string",
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}, - "deliveryterm": {
- "id": 0,
- "name": "string"
}, - "paymentterm": {
- "id": 0,
- "name": "string"
}, - "deliverytype": {
- "id": 0,
- "name": "string"
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "user2": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "opportunity": {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "rows": [
- {
- "id": 0,
- "quoteid": 0,
- "alternateid": "string",
- "quantity": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "costcenter": "string",
- "externalkey": "nullable string",
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": null,
- "name": null,
- "unit": null,
- "min": null,
- "max": null
}, - "article": {
- "id": null,
- "name": null,
- "number": null
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "sortgroup": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
}
]
Connects a quote relation to another entity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
quoteid required | integer |
type required | string |
otherid required | integer |
value | string |
Responses
Request samples
- Payload
{- "quoteid": 0,
- "type": "string",
- "otherid": 0,
- "value": "string"
}
Lists the relations of a quote
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
type | string Enum: "account" "opportunity" "contact" "user" "user2" "order" |
otherid | integer |
quoteid | integer |
value | string |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "quoteid": 0,
- "otherid": 0,
- "type": "string",
- "value": "string"
}
]
}
]
Connects a quote relation to another entity
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
sortorder | integer |
isdefault | integer |
metatype | string |
Responses
Request samples
- Payload
{- "name": "string",
- "sortorder": 0,
- "isdefault": 0,
- "metatype": "string"
}
Lists the statuses a quote can have
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
metatype | string Enum: "active" "expired" "denied" "order" |
default | integer |
sorting required | string Default: "sorting_asc" Enum: "sorting_asc" "sorting_desc" "name_asc" "name_desc" "number_asc" "number_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "sortorder": 0,
- "isdefault": 0,
- "metatype": "string",
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}
]
}
]
Updates a quote status
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
sortorder | integer |
isdefault | integer |
metatype | string |
Responses
Request samples
- Payload
{- "name": "string",
- "sortorder": 0,
- "isdefault": 0,
- "metatype": "string"
}
Returns a quote status
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "sortorder": 0,
- "isdefault": 0,
- "metatype": "string",
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}
Updates a quote
Use this method to change root level properties of a quote.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
price | number |
currencycode | string |
currencyrate | number |
statisticsprice | number |
alternativevalue | number |
buyprice | number |
discounted | boolean |
placedate | string <date> Date for when the quote was placed |
validtodate | string <date> Last date the quote is valid (inclusive) |
alternateid | string |
externalcomment | string |
deliverydate | string <date> Date for when the quote will be delivered |
deliveryname | string |
deliverystreet | string |
deliveryzip | string |
deliverycity | string |
deliverycountry | string |
externalkey | string |
internalcomment | string |
marking | string |
referencecode | string |
extracode | string |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
object (IdObject) | |
Array of objects (IdObject) | |
Array of objects (QuoteRow) |
Responses
Request samples
- Payload
{- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "discounted": true,
- "placedate": "2019-01-25",
- "validtodate": "2019-01-25",
- "alternateid": "string",
- "externalcomment": "string",
- "deliverydate": "2019-01-25",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "user": {
- "id": 0
}, - "user2": {
- "id": 0
}, - "account": {
- "id": 0
}, - "contact": {
- "id": 0
}, - "opportunity": {
- "id": 0
}, - "status": {
- "id": 0
}, - "deliveryterm": {
- "id": 0
}, - "paymentterm": {
- "id": 0
}, - "deliverytype": {
- "id": 0
}, - "tags": [
- {
- "id": 0
}
], - "rows": [
- {
- "id": 0,
- "quoteid": 0,
- "alternateid": "string",
- "quantity": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "costcenter": "string",
- "externalkey": "nullable string",
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "sortgroup": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
Returns a quote
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "discounted": true,
- "placedate": "2019-01-25",
- "validtodate": "2019-01-25",
- "alternateid": "string",
- "externalcomment": "string",
- "deliverydate": "2019-01-25",
- "deliveryname": "string",
- "deliverystreet": "string",
- "deliveryzip": "string",
- "deliverycity": "string",
- "deliverycountry": "string",
- "externalkey": "string",
- "internalcomment": "string",
- "marking": "string",
- "referencecode": "string",
- "extracode": "string",
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z",
- "status": {
- "id": 0,
- "name": "string",
- "sortorder": 0,
- "isdefault": 0,
- "metatype": "string",
- "tscreated": "2019-08-24T14:15:22Z",
- "tsupdated": "2019-08-24T14:15:22Z"
}, - "deliveryterm": {
- "id": 0,
- "name": "string"
}, - "paymentterm": {
- "id": 0,
- "name": "string"
}, - "deliverytype": {
- "id": 0,
- "name": "string"
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "user2": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}, - "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "contact": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "officephone": "string",
- "cellphone": "string",
- "number": "string"
}, - "opportunity": {
- "id": 0,
- "title": "string",
- "description": "string",
- "estimatedenddate": "string",
- "account": {
- "id": 0,
- "name": "string",
- "alt_name": "string",
- "number": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string",
- "coordinates": {
- "latitude": "nullable string",
- "longitude": "nullable string",
- "distance": "nullable string"
}
}, - "user": {
- "id": 0,
- "name": "string",
- "surname": "string",
- "title": "string",
- "email": "string",
- "phone": "string",
- "cellphone": "string"
}
}, - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
], - "rows": [
- {
- "id": 0,
- "quoteid": 0,
- "alternateid": "string",
- "quantity": 0,
- "discountspecial": 0,
- "sortorder": 0,
- "price": 0,
- "currencycode": "string",
- "currencyrate": 0,
- "statisticsprice": 0,
- "alternativevalue": 0,
- "buyprice": 0,
- "specification": "string",
- "discountpercent": 0,
- "discountamount": 0,
- "costcenter": "string",
- "externalkey": "nullable string",
- "pricewarning": 0,
- "totalprice": 0,
- "totalpricestatistics": 0,
- "totalalternativevalue": 0,
- "pricelist": {
- "id": 0,
- "name": "string",
- "active": true,
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "default": true,
- "externalkey": "string",
- "strict": true,
- "description": "string",
- "currencyid": 0,
- "prices": [
- {
- "id": 0,
- "price": 0,
- "discountpercent": 0,
- "discountamount": 0,
- "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}
}
]
}, - "pricegroup": {
- "id": 0,
- "name": "string",
- "unit": {
- "id": 0,
- "name": "string"
}, - "min": 0,
- "max": 0
}, - "article": {
- "id": 0,
- "name": "string",
- "number": "string"
}, - "articleunit": {
- "id": 0,
- "name": "string"
}, - "sortgroup": 0,
- "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
Returns a paginated list of emails Deprecated
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
accountid | integer |
contactid | integer |
date | string <date-time> |
sorting required | string Default: "date_desc" Enum: "date_asc" "date_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "sender": "string",
- "to": [
- "string"
], - "cc": [
- "string"
], - "subject": "string",
- "date": "2019-01-25T00:00:00.000Z",
- "body": "string",
- "text": "string"
}
]
}
]
Returns an email Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "sender": "string",
- "to": [
- "string"
], - "cc": [
- "string"
], - "subject": "string",
- "date": "2019-01-25T00:00:00.000Z",
- "body": "string",
- "text": "string"
}
Creates a new SortGroup
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
sort required | integer |
externalkey | string |
Responses
Request samples
- Payload
{- "name": "string",
- "sort": 0,
- "externalkey": "string"
}
Returns a paginated list of tags
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
sort | integer |
sorting | string Default: "sort_asc" Enum: "sort_asc" "sort_desc" "name_asc" "name_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "sort": 0,
- "externalkey": "string"
}
]
}
]
Updates a Sortgroup
Use this method to change root level properties of a sorgroup.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
sort | integer |
externalkey | string |
Responses
Request samples
- Payload
{- "name": "string",
- "sort": 0,
- "externalkey": "string"
}
Returns a sortgroup
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "sort": 0,
- "externalkey": "string"
}
Creates a new template Deprecated
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
resource required | string |
html | string |
url | string |
active | integer |
Array of objects (IdObject) | |
Array of objects (IdObject) | |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "resource": "string",
- "html": "string",
- "url": "string",
- "active": 0,
- "languages": [
- {
- "id": 0
}
], - "categories": [
- {
- "id": 0
}
], - "tags": [
- {
- "id": 0
}
]
}
Returns a paginated list of templates Deprecated
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
active | integer Enum: 0 1 get active or inactive templates |
resource | string Enum: "order" "quote" |
languageids | string Only list templates with languages in this comma separated list of ids |
categoryids | string Only list templates with categories in this comma separated list of ids |
sorting | string Default: "number_asc" Enum: "name_asc" "name_desc" "number_asc" "number_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "description": "string",
- "resource": "string",
- "html": "string",
- "url": "string",
- "active": 0,
- "languages": [
- {
- "id": 0,
- "name": "string",
- "sort": 0
}
], - "categories": [
- {
- "id": 0,
- "name": "string",
- "sort": 0
}
], - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
]
}
]
Creates a new template category Deprecated
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
sort | integer |
Responses
Request samples
- Payload
{- "name": "string",
- "sort": 0
}
Returns a paginated list of template categories Deprecated
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
sorting | string Default: "sort_asc" Enum: "sort_asc" "sort_desc" "name_asc" "name_desc" "number_asc" "number_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "sort": 0
}
]
}
]
put_template_category_item Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
sort | integer |
Responses
Request samples
- Payload
{- "name": "string",
- "sort": 0
}
Returns a template category Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "sort": 0
}
Creates a new template language Deprecated
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name required | string |
sort | integer |
Responses
Request samples
- Payload
{- "name": "string",
- "sort": 0
}
Returns a paginated list of template languages Deprecated
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
sorting | string Default: "sort_asc" Enum: "sort_asc" "sort_desc" "name_asc" "name_desc" "number_asc" "number_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "sort": 0
}
]
}
]
put_template_language_item Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
sort | integer |
Responses
Request samples
- Payload
{- "name": "string",
- "sort": 0
}
Returns a template language Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "sort": 0
}
put_template_item Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
resource | string |
html | string |
url | string |
active | integer |
Array of objects (IdObject) | |
Array of objects (IdObject) | |
Array of objects (IdObject) |
Responses
Request samples
- Payload
{- "name": "string",
- "resource": "string",
- "html": "string",
- "url": "string",
- "active": 0,
- "languages": [
- {
- "id": 0
}
], - "categories": [
- {
- "id": 0
}
], - "tags": [
- {
- "id": 0
}
]
}
Returns a template Deprecated
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "description": "string",
- "resource": "string",
- "html": "string",
- "url": "string",
- "active": 0,
- "languages": [
- {
- "id": 0,
- "name": "string",
- "sort": 0
}
], - "categories": [
- {
- "id": 0,
- "name": "string",
- "sort": 0
}
], - "tags": [
- {
- "id": 0,
- "name": "string",
- "type": "company"
}
]
}
Creates a new subscription
TODO: do it properly
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
active | integer |
name | string |
note | string |
startdate | string |
orderstartdate | string |
typeid | integer |
statusid | integer |
intervalid | integer |
periodid | integer |
nextperiodid | integer |
renewalperiodid | integer |
renewalid | integer |
advanceid | integer |
parentid | integer |
userid | integer |
contactid | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "active": 0,
- "name": "string",
- "note": "string",
- "startdate": "string",
- "orderstartdate": "string",
- "typeid": 0,
- "statusid": 0,
- "intervalid": 0,
- "periodid": 0,
- "nextperiodid": 0,
- "renewalperiodid": 0,
- "renewalid": 0,
- "advanceid": 0,
- "parentid": 0,
- "userid": 0,
- "contactid": 0
}
Returns a paginated list of subscriptions
TODO.
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
sort | integer |
sorting | string Default: "sort_asc" Enum: "sort_asc" "sort_desc" "name_asc" "name_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "active": 0,
- "name": "string",
- "note": "string",
- "startdate": "string",
- "orderstartdate": "string",
- "typeid": 0,
- "statusid": 0,
- "intervalid": 0,
- "periodid": 0,
- "nextperiodid": 0,
- "renewalperiodid": 0,
- "renewalid": 0,
- "advanceid": 0,
- "parentid": 0,
- "userid": 0,
- "contactid": 0
}
]
}
]
Updates a subscription TODO
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
name | string |
sort | integer |
externalkey | string |
Responses
Request samples
- Payload
{- "name": "string",
- "sort": 0,
- "externalkey": "string"
}
Returns a subscription
TODO.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "sort": 0,
- "externalkey": "string"
}
Returns a paginated list of projects
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
dynamicfield_id | Array of integers Query by dynamicfield value. Each dynamicfield_id must be paired with a dynamicfield_val parameter in order to filter |
dynamicfield_val | Array of strings Query by dynamicfield value. Each dynamicfield_val must be paired with a dynamicfield_id parameter in order to filter |
accountid | integer |
sorting | string Default: "name_asc" Enum: "name_asc" "name_desc" "number_asc" "number_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "type": {
- "id": 0,
- "name": "string"
}
}
]
}
]
Creates a new leadstatus
Authorizations:
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
sortorder required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "sortorder": 0
}
Returns a paginated list of leadstatus
Authorizations:
query Parameters
page | integer Default: 1 Page number |
per_page | integer Default: 10 Results per page {error_msg}, max pagesize is 50 |
name | string |
sortorder | integer |
sorting required | string Default: "sortorder_asc" Enum: "name_asc" "name_desc" "sortorder_asc" "sortorder_desc" |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
[- {
- "page": 0,
- "pages": 0,
- "per_page": 0,
- "total": 0,
- "items": [
- {
- "id": 0,
- "name": "string",
- "sortorder": 0
}
]
}
]
Updates an leadstatus
Use this method to change root level properties of an leadstatus.
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Request Body schema: application/jsonrequired
id | integer |
name required | string |
sortorder required | integer |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "sortorder": 0
}
Returns a leadstatus
Authorizations:
path Parameters
id required | integer |
header Parameters
X-Token | string X-Token can not be blank unless using a Bearer token from new auth |
X-Fields | string Mask which fields to include in the response '{id,name,description, etc}' |
Responses
Response samples
- 200
{- "id": 0,
- "name": "string",
- "sortorder": 0
}