Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Campaigns detail uri:

Code Block
/api/v1v2/third_party/campaigns/{id}

Method:

Code Block
GET

...

Response example:

Code Block
{
    "id": 9051677842,
    "schedulePlantingDateschedule_planting_date": "2020-1004-25T0015T11:0023:0001-03:00",
    "plantingDateplanting_date": "2020-10-25T00:00:00-03:00"null,
    "plantingDistanceplanting_distance": "3552.00",
    "plantingObjectiveAreaHaplanting_objective_area_ha": "2122.000",
    "harvestFinishedharvest_finished": falsetrue,
    "plantingFinishedplanting_finished": false,
    "rePlantingreplanting": false,
    "seed": false,
    "dateCreateddate_created": "20202019-0512-05T1011T06:0003:2606-03:00",
    "dateModifieddate_modified": "20202021-0502-05T1004T14:0003:2629-03:00",
    "date": "20202019-0412-30T1510T17:3209:5039-03:00",
    "refNumberref_number": "2004301533552019121017094731",
    "year": 20202019,
    "plot_id": 39901,
    "cycleNameplanting_system_id": 1,
  "2020/2021"  "maturity_group_id": 1,
    "farmerDescdays_from_planting": 0,
  "NESTOR VAGLIENTE"  "formulated_id": 9396,
    "master_campaign_id": 8747,
    "establishmentDescobjective_yield_kg_ha": "Vagliente Marcos Juárez, Córdoba, Argentina",
    "plotDesc": "Canal",null,
    "harvest_final_yield": 1000
}

Campaigns list uri:

Code Block
/api/v2/third_party/campaigns

Method:

Code Block
GET

Header:

Code Block
    'X-SIMA-APIKEY: {{API-KEY}}',
    'X-SIMA-SYSTEM-ID: 8',
    'Accept: application/json',
    'Content-Type: application/json'

Parameters:

Code Block
page:  (int) default value 1
size:  (int) default value 10
id: (int) optional
updated_from: (datetime) optional
created_from: (datetime) optional
plot_id: (int) optional
master_campaign_id: (int) optional

Response example:

Code Block
{
    "items": [
        {
            "id": 106357,
            "plotLatDescschedule_planting_date": "-32.87202518",2020-08-09T00:00:00-03:00",
            "plotLonDescplanting_date": "-62.133487642020-08-12T14:52:25-03:00",
    "cultivationDesc        "planting_distance": "Soja17.50",
            "plantingSystemDescplanting_objective_area_ha": "Siembra Directa17.000",
    "maturityGroupDesc": "IV",        "harvest_finished": false,
            "planting_finished": true,
            "plotAreareplanting": false,
 "21.00",           "seed": false,
     "daysFromPlanting       "date_created": 365,"2020-08-13T10:28:50-03:00",
      "maturityGroup      "date_modified": {"2020-11-27T19:05:25-03:00",
            "iddate": 2"2020-08-13T10:28:50-03:00",
        "name    "ref_number": "IV20081310285058",
      },      "formulatedyear": [],2020,
            "masterCampaignplot_id": 39507,
  {          "planting_system_id": 124871,
        "name    "maturity_group_id": "Soja | De primera | 2020/2021"1,
            "days_from_planting": 365,
        "cultivation    "formulated_id": {9760,
            "master_campaign_id": 112974,
            "nameobjective_yield_kg_ha": "Soja"3500,
            "harvest_final_yield": null
        },
        {
            "plantingTimeid": {114471,
            "idschedule_planting_date": 1"2020-10-05T00:00:00-03:00",
            "nameplanting_date": "De primera""2020-10-19T00:00:41-03:00",
             }"planting_distance": "52.00",
        "cycle    "planting_objective_area_ha": {"17.560",
            "idharvest_finished": 8false,
            "nameplanting_finished": true,
         "2020/2021"   "replanting": false,
            "activeseed": 8false,
            "dateFromdate_created": "2020-0510-01T0005T10:0035:00-03:00",
            "dateTodate_modified": "2021-04-03T10:27:41-03-31T00:00:00:00",
            "date": "2020-10-05T10:35:01-03:00",
        }     },"ref_number": "20100510350112",
      "plantingSystem      "year": { 2020,
            "plot_id": 139507,
        "name    "planting_system_id": "Siembra Directa"1,
       },     "pmaturity_group_geometryid": 1,
"{\"type\":\"Polygon\",\"coordinates\":[[[-62.133487644656,-32.872025183534], [-62.131305858493,-32.863403341699], [-62.133558914065,-32.862970771156], [-62.135626133047,-32.871643146657], [-62.133487644656,-32.872025183534]]]}"            "days_from_planting": 365,
            "formulated_id": null,
            "master_campaign_id": 14255,
            "objective_yield_kg_ha": null,
    "plot": {        "harvest_final_yield": 2823.52
        },
        {
            "id": 22864141249,
        "area    "schedule_planting_date": "21.2021-04-30T00:00:00-03:00",
            "establishmentplanting_date": {null,
            "idplanting_distance": 11879"52.00",
            "nameplanting_objective_area_ha": "Vagliente16.000",
            "locationTextharvest_finished": false,
"Marcos Juárez, Córdoba, Argentina"            "planting_finished": false,
            "replanting": false,
            "farmerseed": {false,
            "date_created": "2021-04-12T15:56:26-03:00",
            "iddate_modified": 8885"2021-12-23T10:41:25-03:00",
            "date": "2021-04-12T15:56:26-03:00",
            "nameref_number": "NESTOR21041215562647",
            "year": 2021,
       "simaUserName": "-"
     "plot_id": 39507,
            "planting_system_id": 2,
           }
  "maturity_group_id": 1,
      }     }
}

Campaigns list uri:

Code Block
/api/v2/campaigns

Method:

Code Block
GET

Header:

Code Block
    'X-SIMA-APIKEY: {{API-KEY}}',
    'X-SIMA-SYSTEM-ID: 8' "days_from_planting": 0,
            "formulated_id": 9396,
            "master_campaign_id": 19878,
    'Accept: application/json',        'Content-Type: application/json'

Parameters:

Code Block
cycleId: (int)
page: (int) {1..} default 1
size: (int) {1..} default 10
only_deleted: (int) {1-0} default 0
deleted_from: (date) {YYYY-mm-dd}

Response example:

Code Block
["objective_yield_kg_ha": 4000,
            "harvest_final_yield": null
        },
        {
            "id": 71639303299,
        "name    "schedule_planting_date": "Contratista2023-05-15T03:00:00-03:00",
            "dateCreatedplanting_date": "20212023-1005-18T1125T03:1200:00-030003:00",
        "createdById    "planting_distance": 38117"21.00",
        "externalCode    "planting_objective_area_ha": null"18.000",
        "machines    "harvest_finished": [
   false,
            "planting_finished": false,
         {   "replanting": false,
            "idseed": 9372false,
            "date_created": "2023-05-15T09:11:01-03:00",
         "brand   "date_modified": "Maquina 1",2023-05-15T09:11:01-03:00",
            "date": "2023-05-15T09:11:01-03:00",
            "createdByIdref_number": 38117"23051509110199",
            "year": 2023,
      "externalCode      "plot_id": null39507,
            "planting_system_id": 1,
     "machineType       "maturity_group_id": {1,
            "days_from_planting": 365,
            "formulated_id": 5,9758,
            "master_campaign_id": 29738,
            "nameobjective_yield_kg_ha": "Otro"4000,
            "harvest_final_yield": null
        },
        {
    },        "id": 329730,
       "machineTypeDesc     "schedule_planting_date": "Otro"2023-08-01T03:00:00-03:00",
            "planting_date": null,
 }            ]"planting_distance": "52.00",
        "own": 1    "planting_objective_area_ha": "18.000",
             },"harvest_finished": false,
          {   "planting_finished": false,
            "idreplanting": 71636false,
            "nameseed": "Contratista FN",false,
            "date_created": "2023-08-01T12:01:06-03:00",
            "dateCreateddate_modified": "20212023-1008-18T11:1201T12:01:06-03:00-0300",
            "createdByIddate": 38117,"2023-08-01T12:01:06-03:00",
            "externalCoderef_number": null"23080112010673",
            "machinesyear": []2023,
            "ownplot_id": 039507,
             },
"planting_system_id": null,
   {         "maturity_group_id": 725781,
            "namedays_from_planting": "Contratista test",0,
            "formulated_id": 36501,
            "dateCreatedmaster_campaign_id": "2021-10-29T17:13:06-0300",31922,
           "createdById "objective_yield_kg_ha": 38117null,
            "externalCodeharvest_final_yield": null,
        }
    ],
    "machinescurrent_page": []1,
    "next_page": 2,
    "owntotal_pages": 09,
    }
]"total_items": 42
}