Funzioni e scopo
Il controller Company consente di eseguire innumerevoli operazioni nelle aziende del sistema.
Il Business Object che rappresenta le aziende è la classe CompanyBO.
Il DTO (Data Transfer Object) usato per rappresentare il modello dati dell'azienda è CompanyDTO
Sicurezza
Questo controller è sottoposto alle regole di security del sistema.
Per maggiori dettagli, fare riferimento alla sezione Authentication
Note
Le indicazioni riportate di seguito hanno lo scopo di illustrare le funzionalità e le caratteristiche di questo Web API controller.
Aliases
Questo controller è invocabile tramite altri nomi oltre a quello di default.
Ciò significa che, facendo riferimento alla grammatica di routing ({schema}://{host}/api/{version}/{controller}/{details}/{action}/{id}?{querystring}) è possibile utilizzare un fragment differente per il componente {controller}.
Di seguito è riportata la lista di tali alias per il fragment {controller}, in ordine di preferenza d'uso.
Alias | Path |
---|---|
Companies | /api/v1/Companies |
Company | /api/v1/Company |
Authentication
Token JWT
Al fine di potere invocare le API REST, è necessario ottenere un token di autenticazione tramite l’apposito servizio /Auth/Login.
Per maggiori informazioni fare riferimento all'apposita sezione di questa guida.
Bearer Authentication
La "Bearer Authentication" (tradotta "autenticazione al portatore", detta anche "autenticazione token") è uno schema di autenticazione HTTP che coinvolge un token di sicurezza denominato bearer token.
Per maggiori informazioni fare riferimento all'apposita sezione di questa guida.
Identificazione dell’applicazione chiamante
Alcune delle funzioni delle API REST possono essere utilizzate solamente se (oltre ad una corretta autenticazione dell’utente) si esegue anche una dichiarazione dell’applicazione chiamante.
Per maggiori informazioni fare riferimento all'apposita sezione di questa guida.
Actions & Paths
Di seguito sono elencate le azioni REST eseguibili tramite le Web API.
Le azioni sono raggruppate per "topic".
Clicca un "topic" per visualizzare le diverse azioni in esso contenute.
Ad ogni azione corrisponde un metodo interno alla classe del controller Web API, ed un set di paths di routing utilizzabili per invocarla.
GET: /api/v1/Company/
Routing template:
/api/{version}/Company/
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
DELETE: /api/v1/Company/{id}
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Boolean as application/json
- HTTP 200: Boolean as text/json
- HTTP 200: Boolean as application/xml
- HTTP 200: Boolean as text/plain
- HTTP 200: Boolean as application/octet-stream
Response: 200 (Success) Boolean
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) CompanyDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Activities
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: ActivityDTO as application/json
- HTTP 200: ActivityDTO as text/json
- HTTP 200: ActivityDTO as application/xml
- HTTP 200: ActivityDTO as text/plain
- HTTP 200: ActivityDTO as application/octet-stream
Response: 200 (Success) ActivityDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Activities/Count
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/ActivitiesIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Archive
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
template | string | NO | Query |
|
request | CompanyPrintableRequest | NO | Query |
|
Produces:
- HTTP 400: integer as application/json
- HTTP 400: integer as text/json
- HTTP 400: integer as application/xml
- HTTP 400: integer as text/plain
- HTTP 400: integer as application/octet-stream
- HTTP 400: integer as text/xml
Response: 400 (Bad Request) integer
Samples
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Contacts
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: ContactDTO as application/json
- HTTP 200: ContactDTO as text/json
- HTTP 200: ContactDTO as application/xml
- HTTP 200: ContactDTO as text/plain
- HTTP 200: ContactDTO as application/octet-stream
Response: 200 (Success) ContactDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Contacts/Count
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/ContactsIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Documents
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: StorageDTO as application/json
- HTTP 200: StorageDTO as text/json
- HTTP 200: StorageDTO as application/xml
- HTTP 200: StorageDTO as text/plain
- HTTP 200: StorageDTO as application/octet-stream
Response: 200 (Success) StorageDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Documents/Count
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/DocumentsIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Exists
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Boolean as application/json
- HTTP 200: Boolean as text/json
- HTTP 200: Boolean as application/xml
- HTTP 200: Boolean as text/plain
- HTTP 200: Boolean as application/octet-stream
Response: 200 (Success) Boolean
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Flows
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: FlowDTO as application/json
- HTTP 200: FlowDTO as text/json
- HTTP 200: FlowDTO as application/xml
- HTTP 200: FlowDTO as text/plain
- HTTP 200: FlowDTO as application/octet-stream
Response: 200 (Success) FlowDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Flows/Count
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/FlowsIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/FreeFields
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: FreeFieldsBOItemDTO as application/json
- HTTP 200: FreeFieldsBOItemDTO as text/json
- HTTP 200: FreeFieldsBOItemDTO as application/xml
- HTTP 200: FreeFieldsBOItemDTO as text/plain
- HTTP 200: FreeFieldsBOItemDTO as application/octet-stream
Response: 200 (Success) FreeFieldsBOItemDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/GetDownloadUrl
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
template | string | NO | Query |
|
request | CompanyPrintableRequest | NO | Query |
|
Produces:
- HTTP 400: string as application/json
- HTTP 400: string as text/json
- HTTP 400: string as application/xml
- HTTP 400: string as text/plain
- HTTP 400: string as application/octet-stream
- HTTP 400: string as text/xml
Response: 400 (Bad Request) string
Samples
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/GetFull
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) CompanyDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/GetHash
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: String as application/json
- HTTP 200: String as text/json
- HTTP 200: String as application/xml
- HTTP 200: String as text/plain
- HTTP 200: String as application/octet-stream
Response: 200 (Success) String
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/{id}/HtmlPreview
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
template | string | NO | Query |
|
request | CompanyPrintableRequest | NO | Query |
|
Produces:
- HTTP 200: String as application/json
- HTTP 200: String as text/json
- HTTP 200: String as application/xml
- HTTP 200: String as text/plain
- HTTP 200: String as application/octet-stream
Response: 200 (Success) String
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Humanize
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) CompanyDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Lists
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: ListDTO as application/json
- HTTP 200: ListDTO as text/json
- HTTP 200: ListDTO as application/xml
- HTTP 200: ListDTO as text/plain
- HTTP 200: ListDTO as application/octet-stream
Response: 200 (Success) ListDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/ListsCount
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/ListsIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Location
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: String as application/json
- HTTP 200: String as text/json
- HTTP 200: String as application/xml
- HTTP 200: String as text/plain
- HTTP 200: String as application/octet-stream
Response: 200 (Success) String
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Mailings
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: MailingDeliveryDTO as application/json
- HTTP 200: MailingDeliveryDTO as text/json
- HTTP 200: MailingDeliveryDTO as application/xml
- HTTP 200: MailingDeliveryDTO as text/plain
- HTTP 200: MailingDeliveryDTO as application/octet-stream
Response: 200 (Success) MailingDeliveryDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/MailingsCount
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/MailingsIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Opportunities
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: OpportunityDTO as application/json
- HTTP 200: OpportunityDTO as text/json
- HTTP 200: OpportunityDTO as application/xml
- HTTP 200: OpportunityDTO as text/plain
- HTTP 200: OpportunityDTO as application/octet-stream
Response: 200 (Success) OpportunityDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Opportunities/Count
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/OpportunitiesIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
DELETE: /api/v1/Company/{id}/Photo
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Response:
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Photo
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Response:
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/{id}/Photo
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Consumes:
- multipart/form-data
Response:
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/Preview
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
page | integer | NO | Query |
|
zoom | integer | NO | Query |
|
template | string | NO | Query |
|
request | CompanyPrintableRequest | NO | Query |
|
Response:
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/{id}/Previews
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
template | string | NO | Query |
|
request | CompanyPrintableRequest | NO | Query |
|
Produces:
- HTTP 400: array of FilePreview as application/json
- HTTP 400: array of FilePreview as text/json
- HTTP 400: array of FilePreview as application/xml
- HTTP 400: array of FilePreview as text/plain
- HTTP 400: array of FilePreview as application/octet-stream
- HTTP 400: array of FilePreview as text/xml
Response: 400 (Bad Request) array of FilePreview
Samples
Download Postman collection sample
Provalo !
PUT: /api/v1/Company/{id}/Recent
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Boolean as application/json
- HTTP 200: Boolean as text/json
- HTTP 200: Boolean as application/xml
- HTTP 200: Boolean as text/plain
- HTTP 200: Boolean as application/octet-stream
Response: 200 (Success) Boolean
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/SubLocations
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) CompanyDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/SubLocations/Count
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/{id}/SubLocationsIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
id | integer | YES | Path |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/Count
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
filter | string | NO | Query |
|
Produces:
- HTTP 200: Int32 as application/json
- HTTP 200: Int32 as text/json
- HTTP 200: Int32 as application/xml
- HTTP 200: Int32 as text/plain
- HTTP 200: Int32 as application/octet-stream
Response: 200 (Success) Int32
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/CreateOrUpdate
Routing template:
/api/{version}/Company/CreateOrUpdate
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
DELETE: /api/v1/Company/DeleteByExternalReference
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
externalReference | string | NO | Query |
|
Produces:
- HTTP 200: Boolean as application/json
- HTTP 200: Boolean as text/json
- HTTP 200: Boolean as application/xml
- HTTP 200: Boolean as text/plain
- HTTP 200: Boolean as application/octet-stream
Response: 200 (Success) Boolean
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/DeleteByExternalReference
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
externalReference | string | NO | Query |
|
Produces:
- HTTP 200: Boolean as application/json
- HTTP 200: Boolean as text/json
- HTTP 200: Boolean as application/xml
- HTTP 200: Boolean as text/plain
- HTTP 200: Boolean as application/octet-stream
Response: 200 (Success) Boolean
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetBoDeleteModes
Routing template:
/api/{version}/Company/GetBoDeleteModes
Produces:
- HTTP 200: BoDeleteMode as application/json
- HTTP 200: BoDeleteMode as text/json
- HTTP 200: BoDeleteMode as application/xml
- HTTP 200: BoDeleteMode as text/plain
- HTTP 200: BoDeleteMode as application/octet-stream
Response: 200 (Success) array of BoDeleteMode
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetByExternalReference
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
externalReference | string | NO | Query |
|
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) CompanyDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetIdsByExternalReference
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
externalReference | string | NO | Query |
|
excludeDeletedItems | boolean | NO | Query |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/GetIdsMappedByExternalReference
Routing template:
/api/{version}/Company/GetIdsMappedByExternalReference
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/GetIdsNotMappedByExternalReference
Routing template:
/api/{version}/Company/GetIdsNotMappedByExternalReference
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/GetItemsMappedByExternalReference
Routing template:
/api/{version}/Company/GetItemsMappedByExternalReference
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/GetItemsNotMappedByExternalReference
Routing template:
/api/{version}/Company/GetItemsNotMappedByExternalReference
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetNewInstance
Routing template:
/api/{version}/Company/GetNewInstance
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) CompanyDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetPolymorphicSchema
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
serializePropertiesAsDictionary | boolean | NO | Query |
|
honorAcceptLanguageHeader | boolean | NO | Query |
|
generateSample | boolean | NO | Query |
|
sampleGenerationStrategy | SampleGenerationStrategy | NO | Query |
|
useExtensions | boolean | NO | Query |
|
includeExplicitlyDeclaredVirtualProperties | boolean | NO | Query |
|
Produces:
- HTTP 400: object as application/json
- HTTP 400: object as text/json
- HTTP 400: object as application/xml
- HTTP 400: object as text/plain
- HTTP 400: object as application/octet-stream
Response: 400 (Bad Request) object
Samples
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetSample
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
force | boolean | NO | Query |
|
sampleGenerationStrategy | SampleGenerationStrategy | NO | Query |
|
useExtensions | boolean | NO | Query |
|
Produces:
- HTTP 200: JObject as application/json
- HTTP 200: JObject as text/json
- HTTP 200: JObject as application/xml
- HTTP 200: JObject as text/plain
- HTTP 200: JObject as application/octet-stream
Response: 200 (Success) JObject
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetStandardSchema
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
honorAcceptLanguageHeader | boolean | NO | Query |
|
Produces:
- HTTP 400: object as application/json
- HTTP 400: object as text/json
- HTTP 400: object as application/xml
- HTTP 400: object as text/plain
- HTTP 400: object as application/octet-stream
Response: 400 (Bad Request) object
Samples
Download Postman collection sample
Provalo !
GET: /api/v1/Company/GetSwagger
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
honorAcceptLanguageHeader | boolean | NO | Query |
|
bestPracticeOnly | boolean | NO | Query |
|
Produces:
- HTTP 200: object as application/json
- HTTP 200: object as text/json
- HTTP 200: object as application/xml
- HTTP 200: object as text/plain
- HTTP 200: object as application/octet-stream
Response: 200 (Success) object
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/MapByExternalReference
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
externalReference | string | NO | Query |
|
internalItemId | integer | NO | Query |
|
Response:
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
DELETE: /api/v1/Company/MultipleDelete
Routing template:
/api/{version}/Company/MultipleDelete
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: DeleteItemResult as application/json
- HTTP 200: DeleteItemResult as text/json
- HTTP 200: DeleteItemResult as application/xml
- HTTP 200: DeleteItemResult as text/plain
- HTTP 200: DeleteItemResult as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/MultipleDelete
Routing template:
/api/{version}/Company/MultipleDelete
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: DeleteItemResult as application/json
- HTTP 200: DeleteItemResult as text/json
- HTTP 200: DeleteItemResult as application/xml
- HTTP 200: DeleteItemResult as text/plain
- HTTP 200: DeleteItemResult as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/MultipleExists
Routing template:
/api/{version}/Company/MultipleExists
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: ExistsItemResult as application/json
- HTTP 200: ExistsItemResult as text/json
- HTTP 200: ExistsItemResult as application/xml
- HTTP 200: ExistsItemResult as text/plain
- HTTP 200: ExistsItemResult as application/octet-stream
Response: 200 (Success) ApiActionResult
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
POST: /api/v1/Company/MultipleGet
Routing template:
/api/{version}/Company/MultipleGet
Consumes:
- application/json
- application/xml
- text/plain
- application/json-patch+json
- text/json
- application/*+json
- text/xml
- application/*+xml
Produces:
- HTTP 200: GetItemResult`1 as application/json
- HTTP 200: GetItemResult`1 as text/json
- HTTP 200: GetItemResult`1 as application/xml
- HTTP 200: GetItemResult`1 as text/plain
- HTTP 200: GetItemResult`1 as application/octet-stream
Response: 200 (Success) ApiActionResult[]>
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/PrintableFields
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
includeFull | boolean | NO | Query |
|
includeNesting | boolean | NO | Query |
|
Produces:
- HTTP 400: array of LiquidStruct as application/json
- HTTP 400: array of LiquidStruct as text/json
- HTTP 400: array of LiquidStruct as application/xml
- HTTP 400: array of LiquidStruct as text/plain
- HTTP 400: array of LiquidStruct as application/octet-stream
Response: 400 (Bad Request) array of LiquidStruct
Samples
Download Postman collection sample
Provalo !
GET: /api/v1/Company/ResetExternalReferences
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
internalItemId | integer | NO | Query |
|
Response:
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/ResolveCustomerToken
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
token | string | NO | Query |
|
Produces:
- HTTP 200: integer as application/json
- HTTP 200: integer as text/json
- HTTP 200: integer as application/xml
- HTTP 200: integer as text/plain
- HTTP 200: integer as application/octet-stream
- HTTP 200: integer as text/xml
Response: 200 (Success) integer
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/Search
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
filter | string | NO | Query |
|
orderBy | string | NO | Query |
|
skip | integer | NO | Query |
|
top | integer | NO | Query |
|
select | string | NO | Query |
|
Produces:
- HTTP 200: CompanyDTO as application/json
- HTTP 200: CompanyDTO as text/json
- HTTP 200: CompanyDTO as application/xml
- HTTP 200: CompanyDTO as text/plain
- HTTP 200: CompanyDTO as application/octet-stream
Response: 200 (Success) CompanyDTO
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/SearchIds
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
filter | string | NO | Query |
|
orderBy | string | NO | Query |
|
skip | integer | NO | Query |
|
top | integer | NO | Query |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/SearchIdsByExternalReference
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
externalReference | string | NO | Query |
|
Produces:
- HTTP 200: Int64 as application/json
- HTTP 200: Int64 as text/json
- HTTP 200: Int64 as application/xml
- HTTP 200: Int64 as text/plain
- HTTP 200: Int64 as application/octet-stream
Response: 200 (Success) Int64
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
GET: /api/v1/Company/Templates
Routing template:
/api/{version}/Company/Templates
Produces:
- HTTP 400: array of string as application/json
- HTTP 400: array of string as text/json
- HTTP 400: array of string as application/xml
- HTTP 400: array of string as text/plain
- HTTP 400: array of string as application/octet-stream
- HTTP 400: array of string as text/xml
Response: 400 (Bad Request) array of string
Samples
Download Postman collection sample
Provalo !
GET: /api/v1/Company/UnmapByExternalReference
Parameters:
Name | Type | Required | In | Features |
---|---|---|---|---|
externalReference | string | NO | Query |
|
internalItemId | integer | NO | Query |
|
Response:
Samples
Download HTTP 200 response sample
Download Postman collection sample
Provalo !
Definizioni
Le definizioni a seguire descrivono la struttura dei datamodels coinvolti nelle diverse operazioni REST eseguibili per questo controller.
Alcune definizioni sono sottoposte a serializzazione polimorfica, e pertanto il loro schema polimorfico completo viene riportato.
Name | Description |
---|---|
ActionResultDTO | Action Result |
ActivityBOActivityRelationDTO | Activity BO Activity Relation |
ActivityBOHourBandDTO | Activity BO Hour Band |
ActivityCostBOPriceDetailDTO | Activity Cost BO Price Detail |
ActivityDTO | Activity |
ActivityEMailDataDTO | Activity EMail Data |
ActivityFaxDataDTO | Activity Fax Data |
ActivityPriorities | Activity Priorities |
ActivitySource | Activity Source |
ActivityStates | Activity States |
ActivityType | Activity Type |
AddressAccuracy | Address Accuracy |
AddressDTO | Address |
AddressesListDTO | Addresses List |
AlarmActionType | Alarm Action Type |
AlarmDTO | Alarm |
AlarmNotificationDTO | Alarm Notification |
AlarmTimeValueType | Alarm Time Value Type |
AnagraphicStatus | Anagraphic Status |
ApprovedStatus | Approved Status |
BoDeleteMode | Bo Delete Mode |
BusinessObjectType | Business Object Type |
CompanyDTO | Company |
CompanyPrintableRequest | Company Printable Request |
ContactDTO | Contact |
ContactOtherCompanyDTO | Contact Other Company |
CRMTables | CRM Tables |
CrossActivityWith | Cross Activity With |
CrossType | Cross Type |
DefaultCodeType | Default Code Type |
DefaultDocumentCategories | Default Document Categories |
DeleteItemResult | Delete Item Result |
DirectionDTO | Direction |
DTOPropertyUsage | DTO Property Usage |
EMailNormalizedDTO | EMail Normalized |
EMailNormalizeType | EMail Normalize Type |
ExistsItemResult | Exists Item Result |
ExternalReferenceDTO | External Reference |
FileCrossAttributes | File Cross Attributes |
FileCrossDTO | File Cross |
FileCrossTypes | File Cross Types |
FilePreview | File Preview |
FlowDTO | Flow |
FlowLinkDTO | Flow Link |
FlowLogDTO | Flow Log |
FlowStepResult | Flow Step Result |
FreeFieldsBOItemDTO | Free Fields BO Item |
FreeFieldsBOItemLocalizingDTO | Free Fields BO Item Localizing |
FreeFieldsBOTreeItemDTO | Free Fields BO Tree Item |
FreeFieldsType | Free Fields Type |
Gender | Gender |
GeoDTO | Geo |
GetIdsMappedByExternalReferenceRequest | Get Ids Mapped By External Reference Request |
GetItemResult`1[] | Get Item Result`1 |
GetItemsMappedByExternalReferenceRequest | Get Items Mapped By External Reference Request |
Gravity | Gravity |
InfluencerRoleType | Influencer Role Type |
JToken | J Token |
LinkItem | Link Item |
LiquidStruct | Liquid Struct |
ListDTO | List |
ListMailingListRightsDTO | List Mailing List Rights |
LocalizeType | Localize Type |
LocalizingDTO | Localizing |
LocationDTO | Location |
MailAddressDTO | Mail Address |
MailingDeliveryDTO | Mailing Delivery |
MailingListRightsDTO | Mailing List Rights |
MailListStatus | Mail List Status |
MultipleDeleteModel | Multiple Delete Model |
MultipleExistsModel | Multiple Exists Model |
MultipleGetModel | Multiple Get Model |
NormalizerNormalizeAddressDTO | Normalizer Normalize Address |
NormalizerNormalizeCityDTO | Normalizer Normalize City |
OpportunityCompetitorDTO | Opportunity Competitor |
OpportunityDTO | Opportunity |
OpportunityPartnerDTO | Opportunity Partner |
OpportunityProductDTO | Opportunity Product |
OpportunityReferrerDTO | Opportunity Referrer |
OpportunityRefStatusType | Opportunity Ref Status Type |
OpportunityStatus | Opportunity Status |
PaymentCrossDTO | Payment Cross |
PhoneNormalizedDTO | Phone Normalized |
PhoneNormalizeType | Phone Normalize Type |
PrivacyActivityMotivationImplicitConsentDTO | Privacy Activity Motivation Implicit Consent |
PrivacyManagementDTO | Privacy Management |
PrivacyTypeManagementDTO | Privacy Type Management |
RelationDTO | Relation |
SampleGenerationStrategy | Sample Generation Strategy |
ServiceCrossType | Service Cross Type |
SharePermissionDTO | Share Permission |
SharingDTO | Sharing |
ShippedBy | Shipped By |
StorageDTO | Storage |
StoragePermission | Storage Permission |
SyncPropertyFlag | Sync Property Flag |
TargetListCrossType | Target List Cross Type |
ToDoStates | To Do States |
TypePrivacy | Type Privacy |
Errori
Le actions del controller possono generare errori per i seguenti casi:
- Stato 400: query mal strutturate (es. parametri codificati non correttamente)
- Stato 401: errori di autenticazione (es. chiavi o credenziali non riconosciute)
- Stato 403: Proibito. La richiesta era valida, ma il server rifiuta l'azione. L'utente potrebbe non disporre delle autorizzazioni necessarie per una risorsa o potrebbe aver bisogno di un account di qualche tipo.
- Stato 404: Non trovato, o risorsa sconosciuta
- Stato 409: Conflitto. Indica che la richiesta non può essere elaborata a causa di conflitti nello stato corrente della risorsa, ad esempio un conflitto di modifica tra più aggiornamenti simultanei.
- Stato 500: Errore interno del del server
Gli errori sono formattati in JSON
Versioning
E’ possibile selezionare la versione dei web services tramite il token {version}
/api/{version}/{controller}/{details}/{action}/{id}?{querystring}
Il token {version} può contenere sia valori “esatti”, sia l’alias speciale “latest”, che identifica la versione più recente tra quelle esistenti nel sistema.
In linea generale si raccomanda vivamente l’utilizzo dell’alias speciale “latest”.
Qualora si desideri essere particolarmente “conservativi” ed aderenti ad una specifica versione, specificarne il nome in modo esplicito (es. “v1”).
Routing
Il sistema utilizza la seguente sintassi di routing, costituita da una sequenza di "path-tokens" (i parametri della request):
{schema}://{host}/api/{version}/{controller}/{details}/{action}/{id}?{querystring}
I tokens identificano rispettivamente:
- {host} -> HOST dell’URL
- {version} -> versione dei web services
- {controller} -> nome del servizio (controller) che si desidera invocare
- {details} -> livello opzionale di dettaglio del JSON ritornato (se pertinente)
- {action} -> azione opzionale (metodo) invocata nel controller
- {id} -> singolo argomento opzionale (parametro) di primary key del metodo nel controller, qualora esso lo preveda
- {querystring} -> parametri aggiuntivi ed eventuali "modificatori" del processo di elaborazione e serializzazione
OData
Le API REST sono internamente basate sulla tecnologia Microsoft WebAPI, e sono largamente compliant con le specifiche REST, OData v3 e OData v4.
Funzioni ed approfondimenti relativi a OData
Per maggiori approfondimenti e dettagli relativi ai criteri generali d'uso delle funzioni OData, fare riferimento alla guida di base sull'argomento
Opzioni
Le funzioni delle API REST implementate in CRM in Cloud includono un vasto set di opzioni che consentono di adattare struttura e forma dei pacchetti JSON in base alle proprie esigenze e preferenze.
Al contrario dei parametri, che vengono specificati nella route dell’URL (attraverso i tokens e la querystring), le opzioni devono invece essere passate tramite gli headers HTTP della request.
Come da RFC6648 tutte le opzioni passate tramite headers HTTP hanno nel proprio nome il prefisso custom “Crm-”.
Qualora una certa opzione non venga specificata, il sistema utilizzerà il valore di default specifico alla {version} indicata nell’URL.
Per una disquisizione completa relativa alle opzioni ed alla serializzazione polimorfica, fare riferimento alla guida generale sull'argomento
Swagger
Di seguito è possibile scaricare il descrittore JSON in formato Swagger/OpenAPI