### Get Cover Crops Data (getsovesci) - CURL Example Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index This example illustrates how to use CURL to call the getsovesci endpoint, which retrieves data on cover crops or intercrops. It requires an access token and company ID, and supports filtering by date range, production units, and crop ID. The API returns data in JSON format. ```bash curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getsovesci?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&lista_id_unita={string}&id_coltura={numeric}" -H "Accept: application/json" ``` -------------------------------- ### GET /qdc/v2/integrazioni/getconcesementi Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of concessions made within a specified period. This endpoint requires authentication and company ID, with optional start and end dates. Dates should be in 'dd/mm/yyyy' format. ```APIDOC ## GET /qdc/v2/integrazioni/getconcesementi ### Description Retrieves a list of concessions made within a specified period. This endpoint requires authentication and company ID, with optional start and end dates. Dates should be in 'dd/mm/yyyy' format. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getconcesementi ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **data_periododa** (string) - Optional - Start date of the period of interest. Dates must be in "dd/mm/yyyy" format. If not specified, it defaults to one year before [data_periodoa]. - **data_periodoa** (string) - Optional - End date of the period of interest, which can be at most 365 days after the start date. Dates must be in "dd/mm/yyyy" format. If not specified, it defaults to the current date. ### Request Example ```json { "example": "curl -X GET \"https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getconcesementi?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}\" -H \"Accept: application/json\"" } ``` ### Response #### Success Response (200) - **(response structure not provided)** #### Response Example { "example": "(response body not provided)" } ``` -------------------------------- ### Get Irrigations API Call (CURL) Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index This CURL example demonstrates fetching irrigation data. The API requires an access token and company ID, and allows filtering by date range, unit IDs, and crop ID. The results are returned as JSON. ```bash curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getirrigazioni?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&lista_id_unita={string}&id_coltura={numeric}" -H "Accept: application/json" ``` -------------------------------- ### GET /rest/qdc/v2/integrazioni/getlicenzaaziende Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of all company licenses. Requires an access token for authentication. ```APIDOC ## GET /rest/qdc/v2/integrazioni/getlicenzaaziende ### Description Retrieves a list of all company licenses associated with the provided access token. ### Method GET ### Endpoint `https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getlicenzaaziende` ### Parameters #### Query Parameters - **access_token** (string) - Required - The authentication token. ### Request Example ``` GET https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getlicenzaaziende?access_token=YOUR_TOKEN ``` ### Response #### Success Response (200) - **message** (string) - A message indicating the number of companies found. - **result** (object) - An object containing the company data. - **COLUMNS** (array) - An array of strings representing the column names. - **DATA** (array) - An array of arrays, where each inner array represents a company's data. #### Response Example ```json { "message": "Trovate 2 aziende", "result": { "COLUMNS": [ "ID", "AZIENDA", "PIVA", "CF", "VALIDADA", "VALIDAA" ], "DATA": [ [ 102697, "Image Line :: Demo Integrazione QdC 1", "01070780398", "01070780398", "01/01/2017", "31/12/2018" ], [ 102698, "Image Line :: Demo Integrazione QdC 2", "01070780398", "01070780398", "01/01/2017", "31/12/2018" ] ] } } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getlicenzatecnici Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of technicians enabled for the current license. ```APIDOC ## GET /qdc/v2/integrazioni/getlicenzatecnici ### Description Retrieves a list of technicians enabled for the current license. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzatecnici ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. ### Request Example ```bash curl -X GET "https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzatecnici?access_token={string}" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **technicians** (array) - A list of enabled technicians. - **id** (numeric) - The unique identifier for the technician. - **name** (string) - The name of the technician. #### Response Example ```json { "technicians": [ { "id": 789, "name": "Mario Rossi" }, { "id": 101, "name": "Luigi Verdi" } ] } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getazienda Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves company registration information in JSON format. ```APIDOC ## GET /qdc/v2/integrazioni/getazienda ### Description Retrieves the company's registration information in JSON format. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getazienda ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - ID of the company. ### Request Example ``` curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getazienda?access_token={string}&id_azienda={numeric}" -H "Accept: application/json" ``` ### Response #### Success Response (200) (Response structure not provided in the input text) #### Response Example (Response example not provided in the input text) ``` -------------------------------- ### GET /qdc/v2/integrazioni/setlicenzaassociazione Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Creates a technician/company association in the current license. Requires the IDs of the company and technician. ```APIDOC ## GET /qdc/v2/integrazioni/setlicenzaassociazione ### Description Creates a technician/company association in the current license. Requires the IDs of the company and technician. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/setlicenzaassociazione ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - The ID of the company obtained via the /GETLICENZAAZIENDE call. - **id_tecnico** (numeric) - Required - The ID of the technician obtained via the /GETLICENZATECNICI call. Technicians can be added via the "Amministra aziende" section of the web application with the role of "consulente" or "operatore". ### Request Example ```bash curl -X GET "https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/setlicenzaassociazione?access_token={string}&id_azienda={numeric}&id_tecnico={numeric}" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **status** (string) - Indicates the success of the operation (e.g., "success"). - **message** (string) - A confirmation message. #### Response Example ```json { "status": "success", "message": "Association created successfully." } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getscadenze Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a report on the status of permits/certificates and functional checks of equipment. ```APIDOC ## GET /qdc/v2/integrazioni/getscadenze ### Description Retrieves a report on the status of permits/certificates and functional checks of equipment. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getscadenze ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. ### Request Example ```json { "example": "curl -X GET \"https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getscadenze?access_token={string}&id_azienda={numeric}\" -H \"Accept: application/json\"" } ``` ### Response #### Success Response (200) - **[response fields]** (type) - Description of the response fields. ``` -------------------------------- ### GET /qdc/v2/integrazioni/dellicenzaassociazione Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Associates a technical license with a company. Requires a technical ID obtained from GETLICENZATECNICI. ```APIDOC ## GET /qdc/v2/integrazioni/dellicenzaassociazione ### Description Associates a technical license with a company. Requires a technical ID obtained from GETLICENZATECNICI. Technicians can be added via the "Manage Companies" section of the web application with the "consultant" or "operator" role. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/dellicenzaassociazione ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - ID of the company. - **id_tecnico** (numeric) - Required - ID of the technician obtained via the /GETLICENZATECNICI call. ### Request Example ``` curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/dellicenzaassociazione?access_token={string}&id_azienda={numeric}&id_tecnico={numeric}" -H "Accept: application/json" ``` ### Response #### Success Response (200) (Response structure not provided in the input text) #### Response Example (Response example not provided in the input text) ``` -------------------------------- ### GET /qdc/v2/integrazioni/getlicenzaassociazioni Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves the list of technician/company associations for the current license. ```APIDOC ## GET /qdc/v2/integrazioni/getlicenzaassociazioni ### Description Retrieves the list of technician/company associations for the current license. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzaassociazioni ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. ### Request Example ```bash curl -X GET "https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzaassociazioni?access_token={string}" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **associations** (array) - A list of technician/company associations. - **id_azienda** (numeric) - The ID of the company. - **id_tecnico** (numeric) - The ID of the technician. - **company_name** (string) - The name of the company. - **technician_name** (string) - The name of the technician. #### Response Example ```json { "associations": [ { "id_azienda": 123, "id_tecnico": 789, "company_name": "Azienda Esempio Srl", "technician_name": "Mario Rossi" } ] } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getlanciausiliari Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of auxiliary launch operations performed within a given period. Dates should be provided in 'dd/mm/yyyy' format. ```APIDOC ## GET /qdc/v2/integrazioni/getlanciausiliari ### Description Retrieves a list of auxiliary launch operations performed within a given period. Dates should be provided in 'dd/mm/yyyy' format. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlanciausiliari ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **data_periododa** (string) - Optional - Start date of the period of interest. Format: "dd/mm/yyyy". If not specified, it defaults to one year before `data_periodoa`. - **data_periodoa** (string) - Optional - End date of the period of interest, maximum 365 days after the start date. Format: "dd/mm/yyyy". If not specified, it defaults to the current date. - **lista_id_unita** (string) - Optional - Comma-separated list of production unit IDs. - **id_coltura** (numeric) - Optional - Filters the list of operations based on the specified crop ID. Crop IDs can be obtained via the /GETUNITA method. ### Request Example ```bash curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getlanciausiliari?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&lista_id_unita={string}&id_coltura={numeric}" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **Example**: (Response structure not provided in the source text, but expected to be JSON) #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getlicenzainfo Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves detailed information about the current license, such as license type, expiration date, number of technicians, and number of companies. ```APIDOC ## GET /qdc/v2/integrazioni/getlicenzainfo ### Description Retrieves detailed information about the current license, such as license type, expiration date, number of technicians, and number of companies. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzainfo ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. ### Request Example ```bash curl -X GET "https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzainfo?access_token={string}" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **license_info** (object) - Contains details about the license. - **type** (string) - The type of license. - **expiration_date** (string) - The expiration date of the license. - **num_technicians** (integer) - The number of available technicians. - **num_companies** (integer) - The number of associated companies. #### Response Example ```json { "license_info": { "type": "premium", "expiration_date": "2024-12-31", "num_technicians": 10, "num_companies": 50 } } ``` ``` -------------------------------- ### GET /rest/qdc/v2/integrazioni/getazienda Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves detailed information for a specific company using its ID. Requires an access token and the company ID. ```APIDOC ## GET /rest/qdc/v2/integrazioni/getazienda ### Description Retrieves detailed information for a specific company based on its ID. Requires an access token and the company ID. ### Method GET ### Endpoint `https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getazienda` ### Parameters #### Query Parameters - **access_token** (string) - Required - The authentication token. - **id_azienda** (integer) - Required - The ID of the company to retrieve. ### Request Example ``` GET https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getazienda?access_token=YOUR_TOKEN&id_azienda=102697 ``` ### Response #### Success Response (200) - **message** (string) - A message indicating the company was found. - **result** (object) - An object containing the company details. - **COLUMNS** (array) - An array of strings representing the column names. - **DATA** (array) - An array containing a single inner array with the company's data. #### Response Example ```json { "message": "Azienda trovata", "result": { "COLUMNS": [ "ID", "AZIENDA", "PIVA", "CF", "SUPERFICIETOTALE", "SUPERFICIESAU", "FAX", "TELEFONO", "INDIRIZZO", "COMUNE", "CAP", "PROVINCIA", "REGIONE", "LAT", "LON", "EMAIL", "TITOLARENOME", "TITOLARECOGNOME", "TITOLAREEMAIL", "SITOWEB", "CUAA", "CODICEAUSL", "INIZIOANNATAAGRARIA", "CERTIFICATAGLOBALGAP", "CODICEGLOBALGAP", "NUMEROGLOBALGAP" ], "DATA": [ [ 102697, "IMAGE LINE :: DEMO INTEGRAZIONE QDC 1", "01070780398", "01070780398", 11.5, 10.7, "", "", "Via Gallo Marcucci 24", "Faenza", "48018", "RA", "EMR", 44.2912455, 11.8740341, "", "servizi@imageline.it", "", "", null, "", "0123456", "0123456", "01/01/2017", false, null, null ] ] } } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getlicenzaaziende Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of companies associated with the current license. It can optionally include disabled companies and filter by CUAA. ```APIDOC ## GET /qdc/v2/integrazioni/getlicenzaaziende ### Description Retrieves a list of companies associated with the current license. It can optionally include disabled companies and filter by CUAA. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzaaziende ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **mostra_disabilitate** (boolean) - Optional - If true, includes disabled companies and adds a "disabilitata" boolean field to each company. Defaults to False. - **cuaa** (string) - Optional - Filters the company list by CUAA. ### Request Example ```bash curl -X GET "https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getlicenzaaziende?access_token={string}&mostra_disabilitate={boolean}&cuaa={string}" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **companies** (array) - A list of companies associated with the license. - **id** (numeric) - The unique identifier for the company. - **name** (string) - The name of the company. - **disabilitata** (boolean) - Present only if `mostra_disabilitate` is true, indicates if the company is disabled. #### Response Example ```json { "companies": [ { "id": 123, "name": "Azienda Esempio Srl", "disabilitata": false }, { "id": 456, "name": "Azienda Disabilitata Spa", "disabilitata": true } ] } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getunita Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of production units for a given company and year, with optional filtering parameters. ```APIDOC ## GET /qdc/v2/integrazioni/getunita ### Description Retrieves the list of production units for the requested company and year (id_azienda and year are mandatory parameters). It is also possible to refine the search using the various method parameters. Dates must be passed in "dd/mm/yyyy" format. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getunita ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - ID of the company obtained via the /GETLICENZAAZIENDE call. - **anno** (numeric) - Optional - It is possible to view only one year/one crop year per request (see also the "inizioannataagraria" parameter). - **lista_id_unita** (string) - Optional - Comma-separated list of production unit IDs. - **id_coltura** (numeric) - Optional - Filters the list of production units based on the indicated crop (ID_COLTURA). It is possible to obtain crop IDs using the same /GETUNITA method. - **daconfermare** (boolean) - Optional - Shows only production units to be confirmed (true) or confirmed (false). If this parameter is not specified, all units are shown. - **codice** (string) - Optional - Shows the production unit with the indicated code. The code is an arbitrary internal string, assignable by QuadernoDiCampagna® to production units. - **codiceesterno** (string) - Optional - Shows the production unit with the indicated external code. It is an alphanumeric code used for synchronization with external management software. - **datarif_superficie** (string) - Optional - In case of surface variations, the surface in use on the indicated date will be returned. The date must be specified in text format "dd/mm/yyyy". If this parameter is not specified, the last day of the displayed crop year will be used as a reference. - **inizioannataagraria** (string) - Optional - Interprets the year filter using the day and month of this date as the start of the crop year. For example, by passing 01/11/2017, the program will consider the crop year from 1/November/[year-1] to 31/October/[year]. In QuadernoDiCampagna®, companies have the option to choose the start day of the crop year. This data can be obtained, as indicated in QuadernoDiCampagna®, via the /GETAZIENDA method. If this parameter is not specified, January 1st (solar year) will be used as a reference. ### Request Example ``` curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getunita?access_token={string}&id_azienda={numeric}&anno={numeric}&lista_id_unita={string}&id_coltura={numeric}&daconfermare={boolean}&codice={string}&codiceesterno={string}&datarif_superficie={string}&inizioannataagraria={string}" -H "Accept: application/json" ``` ### Response #### Success Response (200) (Response structure not provided in the input text) #### Response Example (Response example not provided in the input text) ``` -------------------------------- ### GET /rest/qdc/v2/integrazioni/delcaricofertilizzante Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index This endpoint retrieves information about fertilizer returns. It requires an access token, company ID, and return ID. ```APIDOC ## GET /rest/qdc/v2/integrazioni/delcaricofertilizzante ### Description Retrieves information about fertilizer returns. It requires an access token, company ID, and return ID. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/delcaricofertilizzante ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **id_carico** (numeric) - Required - The ID of the fertilizer return to retrieve. ### Request Example ```json { "example": "curl -X GET \"https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/delcaricofertilizzante?access_token={string}&id_azienda={numeric}&id_carico={numeric}\" -H \"Accept: application/json\"" } ``` ### Response #### Success Response (200) - **(structure not provided)** - Description of the returned data structure. #### Response Example ```json { "example": "(response body not provided)" } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/gettrattamenti Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves the list of treatments performed within a specified period. Dates should be passed in 'dd/mm/yyyy' format. ```APIDOC ## GET /qdc/v2/integrazioni/gettrattamenti ### Description Retrieves the list of treatments performed within a specified period. Dates should be passed in 'dd/mm/yyyy' format. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/gettrattamenti ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **data_periododa** (string) - Optional - Start date of the period of interest (format: 'dd/mm/yyyy'). If not provided, defaults to one year before `data_periodoa`. - **data_periodoa** (string) - Optional - End date of the period of interest (format: 'dd/mm/yyyy'). Maximum 365 days after `data_periododa`. If not provided, defaults to the current date. - **lista_id_unita** (string) - Optional - Comma-separated list of production unit IDs. - **id_coltura** (numeric) - Optional - Filter the list of treatments by crop ID. Crop IDs can be obtained via the /GETUNITA method. ### Request Example ```json { "example": "curl -X GET \"https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/gettrattamenti?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&lista_id_unita={string}&id_coltura={numeric}\" -H \"Accept: application/json\"" } ``` ### Response #### Success Response (200) - **[response fields]** (type) - Description of the response fields. ``` -------------------------------- ### GET /qdc/v2/integrazioni/getfertilizzazioni Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves the list of fertilizations performed within a specified period. Dates should be passed in 'dd/mm/yyyy' format. ```APIDOC ## GET /qdc/v2/integrazioni/getfertilizzazioni ### Description Retrieves the list of fertilizations performed within a specified period. Dates should be passed in 'dd/mm/yyyy' format. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getfertilizzazioni ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **data_periododa** (string) - Optional - Start date of the period of interest (format: 'dd/mm/yyyy'). If not provided, defaults to one year before `data_periodoa`. - **data_periodoa** (string) - Optional - End date of the period of interest (format: 'dd/mm/yyyy'). Maximum 365 days after `data_periododa`. If not provided, defaults to the current date. - **lista_id_unita** (string) - Optional - Comma-separated list of production unit IDs. - **id_coltura** (numeric) - Optional - Filter the list of operations by crop ID. Crop IDs can be obtained via the /GETUNITA method. ### Request Example ```json { "example": "curl -X GET \"https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getfertilizzazioni?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&lista_id_unita={string}&id_coltura={numeric}\" -H \"Accept: application/json\"" } ``` ### Response #### Success Response (200) - **[response fields]** (type) - Description of the response fields. ``` -------------------------------- ### GET /qdc/v2/integrazioni/getaltreoperazioni Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of other cultural operations. Dates should be in 'dd/mm/yyyy' format. If 'data_periododa' is not provided, it defaults to one year prior to 'data_periodoa'. ```APIDOC ## GET /qdc/v2/integrazioni/getaltreoperazioni ### Description Retrieves a list of other cultural operations. Dates should be in 'dd/mm/yyyy' format. If 'data_periododa' is not provided, it defaults to one year prior to 'data_periodoa'. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getaltreoperazioni ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **data_periododa** (string) - Optional - Start date of the period of interest. Format: 'dd/mm/yyyy'. Defaults to one year before 'data_periodoa' if not specified. - **data_periodoa** (string) - Optional - End date of the period of interest. Maximum 365 days after the start date. Format: 'dd/mm/yyyy'. Defaults to the current date if not specified. - **lista_id_unita** (string) - Optional - Comma-separated list of production unit IDs. - **id_coltura** (numeric) - Optional - Filter operations by the specified crop (ID_COLTURA). Crop IDs can be obtained via the /GETUNITA method. - **tipo_operazione_id** (numeric) - Optional - Filter by operation type. ### Request Example ```json { "example": "curl -X GET \"https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getaltreoperazioni?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&lista_id_unita={string}&id_coltura={numeric}&tipo_operazione_id={numeric}\" -H \"Accept: application/json\"" } ``` ### Response #### Success Response (200) - **operations** (array) - List of operation objects. - **id** (numeric) - Operation ID. - **date** (string) - Operation date. - **unit_id** (numeric) - Production unit ID. - **crop_id** (numeric) - Crop ID. - **operation_type_id** (numeric) - Type of operation ID. #### Response Example ```json { "example": "{\"operations\": [{\"id\": 789, \"date\": \"20/07/2023\", \"unit_id\": 45, \"crop_id\": 67, \"operation_type_id\": 10}]}" } ``` ``` -------------------------------- ### GET /qdc/v2/integrazioni/getresifertilizzanti Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves fertilizer data based on specified parameters. It allows filtering by company ID, date range, and enabled ID. ```APIDOC ## GET /qdc/v2/integrazioni/getresifertilizzanti ### Description Retrieves fertilizer data based on specified parameters. It allows filtering by company ID, date range, and enabled ID. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getresifertilizzanti ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **data_periododa** (string) - Optional - Start date of the period of interest. Format: "dd/mm/yyyy". Defaults to one year prior to `data_periodoa` if not specified. - **data_periodoa** (string) - Optional - End date of the period of interest. Maximum 365 days after `data_periododa`. Format: "dd/mm/yyyy". Defaults to the current date if not specified. - **id_abilitato** (numeric) - Optional - Filters movements involving the fertilizer by its unique enabled ID. Defaults to 0. ### Request Example ```bash curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getresifertilizzanti?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&id_abilitato={numeric}" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **[Fields will vary based on the data returned]** #### Response Example ```json { "example": "response body" } ``` ``` -------------------------------- ### Get Waste Disposal Data (CURL) Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves waste disposal data for a specified period. Requires an access token, company ID, and optionally start and end dates. The end date can be up to 365 days after the start date. If no end date is provided, it defaults to the current date. ```curl curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getsmaltimentirifiuti?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}" -H "Accept: application/json" ``` -------------------------------- ### GET /qdc/v2/integrazioni/getsmaltimentirifiuti Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of waste disposal operations. This endpoint requires authentication and company ID, with optional start and end dates. Dates should be in 'dd/mm/yyyy' format. ```APIDOC ## GET /qdc/v2/integrazioni/getsmaltimentirifiuti ### Description Retrieves a list of waste disposal operations. This endpoint requires authentication and company ID, with optional start and end dates. Dates should be in 'dd/mm/yyyy' format. ### Method GET ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getsmaltimentirifiuti ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. - **id_azienda** (numeric) - Required - Company ID obtained via the /GETLICENZAAZIENDE call. - **data_periododa** (string) - Optional - Start date of the period of interest. Dates must be in "dd/mm/yyyy" format. If not specified, it defaults to one year before [data_periodoa]. - **data_periodoa** (string) - Optional - End date of the period of interest, which can be at most 365 days after the start date. Dates must be in "dd/mm/yyyy" format. If not specified, it defaults to the current date. ### Request Example ```json { "example": "curl -X GET \"https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getsmaltimentirifiuti?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}\" -H \"Accept: application/json\"" } ``` ### Response #### Success Response (200) - **(response structure not provided)** #### Response Example { "example": "(response body not provided)" } ``` -------------------------------- ### POST /qdc/v2/integrazioni/setnuovofertilizzante Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Creates a new fertilizer load in the warehouse. If the main information matches an existing load, the product will be added to that operation. Otherwise, a new load will be created. ```APIDOC ## POST /qdc/v2/integrazioni/setnuovofertilizzante ### Description Creates a new fertilizer load in the warehouse. If the main information matches an existing load (date, DDT, invoice), the product will be added to that operation, and the remaining information (notes, suppliers) will be ignored. If the fertilizer's enabled ID also matches, the quantity will be added to the existing one, and the unit price will be recalculated. ### Method POST ### Endpoint https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/setnuovofertilizzante ### Parameters #### Query Parameters - **access_token** (string) - Required - Authentication token passed as a URL parameter. #### Request Body - **nome** (string) - Required - Name of the fertilizer. - **bio** (boolean) - Required - Indicates if the fertilizer is organic. - **tipo** (numeric) - Required - Type of the fertilizer. ### Request Example ``` curl -X POST "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/setnuovofertilizzante?access_token={string}" -d "nome={string}" -d "bio={boolean}" -d "tipo={numeric}" -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" ``` ### Response #### Success Response (200) - **message** (string) - Confirmation message of the operation. #### Response Example ```json { "message": "Fertilizer load created successfully." } ``` ``` -------------------------------- ### Enable Product for API Use (GET /prodottoabilita) Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Assigns a unique ID (id_abilitato) to a fertilizer identified by 'prod_key', making it usable via APIs for writing to the fertilizer warehouse. This endpoint requires an access token and the product key. ```curl curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/prodottoabilita?access_token={string}&prod_key={string}" -H "Accept: application/json" ``` -------------------------------- ### Get Agricultural Chemical Loads (CURL) Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of loads of agricultural chemicals within a specified period. Requires an access token and company ID. Start and end dates can be provided in 'dd/mm/yyyy' format. If the start date is omitted, it defaults to one year prior to the end date. An optional registration number can filter the results. ```curl curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getcarichiagrofarmaci?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}&numreg={numeric}" -H "Accept: application/json" ``` -------------------------------- ### Get Agricultural Chemical Returns (CURL) Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves a list of returns of agricultural chemicals from the warehouse within a specified period. Requires an access token and company ID. Start and end dates can be provided in 'dd/mm/yyyy' format. If the start date is omitted, it defaults to one year prior to the end date. An optional registration number can filter the results. ```curl curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getresiagrofarmaci?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}" -H "Accept: application/json" ``` -------------------------------- ### Get Concessions Data via CURL Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Retrieves concession data from the Imageline Network API. Requires an access token and company ID, with optional start and end dates. Dates should be in 'dd/mm/yyyy' format. ```curl curl -X GET "https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/getconcesementi?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}" -H "Accept: application/json" ``` -------------------------------- ### Get Waste Disposal Operations via CURL Source: https://servizi.imagelinenetwork.com/rest/qdc/v2/integrazioni/help/index Fetches waste disposal operation data from the Imageline Network API. Requires an access token and company ID, with optional start and end dates. Dates must be in 'dd/mm/yyyy' format. ```curl curl -X GET "https://servizi.imagelinenetwork.com/qdc/v2/integrazioni/getsmaltimentirifiuti?access_token={string}&id_azienda={numeric}&data_periododa={string}&data_periodoa={string}" -H "Accept: application/json" ```