Test url:
https://api.qa.sima.ag:8060 |
You must use the next endpoint to obtain the access_token.
Login uri:
/api/v2/login |
Method:
POST |
Header:
'Accept: application/json', 'Content-Type: application/json', 'X-SIMA-SYSTEM-ID: 8' (ThirdParty) 'X-SIMA-SYSTEM-ID: 5' (Albor) |
Body:
{ "email":"{{user_email}}", "password":"{{password}}" } |
Response example:
{ "access_token": "aff6ac1d-b48c-4ea4-aba2-a2753bf2abf5", "refresh_token": "20626ffd-1288-4106-ac10-dc5a5f3487bc", "expiration_datetime": "2021-06-16T17:38:58-03:00", "society": { "id": 34, "legalName": "User Name", "syncCheck": "user@user.com3293547", "profile": "Unspecified", "monitoringArea": "Unspecified", "createdById": 17, "dateCreated": "2014-01-01T00:00:00-03:00", "deleted": false, "country": { "id": 1, "name": "Argentina", "eqCountry": 1, "countryLocale": "es_AR", "countryCode": "54", "minimumAppVersion": 118 }, "countryCommercial": { "id": 1, "name": 1, "eqCountry": 1, "countryLocale": "es_AR", "countryCode": "54", "minimumAppVersion": 118 }, "licences": [ { "id": 20511, "startDate": "2020-04-22T12:26:40-03:00", "endDate": "2025-11-30T12:26:40-03:00", "licenceType": "SIMA", "licencedUsers": 0, "licencedPlots": 20, "licencedHa": 0, "plotPriceUsd": "0.000000", "observations": "informaciĆ³n de prueba", "current": true, "daysToRenew": 755, "to_renew": false } ] } } |
If we get an Http 200 response, we recommend saving the access_token obtained for future inquiries.
ActiveIngredients Active Ingredients Endpoint
Applicators: Applicators endpoint
Campaigns: Campaigns endpoint
Companies: Companies endpoint
Components: Components EndPoint
Cultivations: Cultivations endpoints
Establishments: Establishments endpoint V2
Farmers Farmers EndPoint
Formulateds: Formulated endpoint
Formulation Types: Formulation Types endpoint
Machines: Machines endpoint
Master Campaigns: Master Campaigns endpoints
Planting Times: Planting Times endpoint
Plots: Plots EndPoint V2
Units: Units endpoint
Voucher Labour Types: Voucher Labour Types Endpoint
Warehouse: Warehouses endpoint
Application Order Labour Types: Application Order Labour Types Endpoint
Description of protocol attributes
Link to class diagram: https://drive.google.com/file/d/1UfsRqjM7wborKcKFlnAaCgVVkrbdwXyb/view?usp=sharing
Adversity Kinds Adversity kinds EndPoint
Adversity Categories Adversity categories EndPoint
Adversity Adversity EndPoint
Scouting Scouting EndPoint