Download OpenAPI specification:
This set of endpoints are custom built for DTN web application products such as Farmers for Soil Health (FSH) and the Grain Intelligence Hub.
Users must be authenticated through the DTN Identity Management Tool. Credentials are passed as bearer tokens from the web application.
Returns a list of all crop data from the Land, Income, and Crop object data tables.
[- {
- "lciId": 4,
- "lciShortDescription": "Cereal Grains",
- "lciDescription": "Cereal Grains (S)",
- "lciType": "CRP",
- "uom": "ACR",
- "groupIndicator": "Y",
- "activeFlag": "S"
}, - {
- "lciId": 5,
- "lciShortDescription": "Barley",
- "lciDescription": "Barley",
- "lciType": "CRP",
- "uom": "ACR",
- "groupIndicator": "N",
- "activeFlag": "L"
}
]Returns a list of cover crop and crop type data.
| landId required | integer Numeric ID of the land to get |
| limit | number The maximum response amount desired, if no limit all matching results will be returned. |
| offset | number The offset of the last previously returned pagination results. To be used with limit for pagination. |
| crop-year | number When passed, returns all data for a matching crop-year. Multiple occurrences are allowed. |
{- "results": [
- {
- "landId": 1154,
- "cropYear": 2020,
- "cover": false,
- "lci": 795
}
], - "links": {
- "count": 51
}
}Returns a list of cover crop and crop type data.
| year | number >= 1 The crop year associated with the requested data. This parameter is optional. |
List of primary keys for land objects.
| landIds required | Array of numbers[ items >= 1 ] |
{- "landIds": [
- 1
]
}[- {
- "landId": 2202,
- "cropYearData": [
- {
- "cropYear": 2019,
- "cover": false,
- "lci": 1
}
]
}
]Returns a list of a party's information based on a name and postal code search.
| name required | string Example: name=smith This will search for any party with last names starting with the inputted characters and search for any companies that include the specified characters. |
| postal-code required | string (postalCode) Example: postal-code=28320 A postal code search. |
[- {
- "companyName": "DESERT DISTRIBUTING CO",
- "firstName": "HERMAN MICHAEL",
- "lastName": "IUGWERSEN",
- "email": "agcore+9899347@dtn.com",
- "partyId": 122149,
- "address": {
- "addressLine": "73997 326 AVE",
- "city": "IMPERIAL",
- "stateCode": "NE",
- "postalCode": "69033"
}
}
]Returns a list of land data excluding a party (if party id is passed) or all for a given point radius.
| lat required | number (latitude) [ -90 .. 90 ] Example: lat=39.9191954099076 latitude |
| lon required | number (longitude) [ -180 .. 180 ] Example: lon=-73.899739925533 longitude |
| radius required | number (radius) [ 1 .. 50000 ] The search radius in meters. |
| party-id | number Optional, if no party id all parties land is searched. If party id is present that parties land is excluded from the search. |
[- [
- {
- "landId": 12345,
- "acres": 55.3,
- "averageCropAcres": 52.67,
- "lat": 33.98745,
- "lon": -98.654,
- "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10908899.733890262,
- 5465029.622038781
]
}, - "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -9469956.570871038,
- 3760777.9093726673
], - [
- -9474975.187479146,
- 3751164.760569398
], - [
- -9476802.051644254,
- 3734966.235942813
], - [
- -9476646.649634963,
- 3734316.572170302
], - [
- -9469956.570871038,
- 3760777.9093726673
]
]
]
]
}
}
]
]Returns a list of land data for a given point radius while excluding a party if party argument is passed.
| lat required | number (latitude) [ -90 .. 90 ] Example: lat=39.9191954099076 latitude |
| lon required | number (longitude) [ -180 .. 180 ] Example: lon=-73.899739925533 longitude |
| radius required | number (radius) [ 1 .. 50000 ] The search radius in meters. |
| party-id | number If no party id all parties land is searched. If party id is present that parties land is excluded from the search. |
List of land to exclude from search results (land has already been enrolled).
| excludeLandIds | Array of numbers[ items >= 1 ] |
| includeStates | Array of strings[ items >= 1 ] |
{- "excludeLandIds": [
- [
- 123,
- 124
]
], - "includeStates": [
- [
- "DE",
- "IL"
]
]
}[- [
- {
- "landId": 12345,
- "acres": 55.3,
- "averageCropAcres": 52.67,
- "lat": 33.98745,
- "lon": -98.654,
- "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10908899.733890262,
- 5465029.622038781
]
}, - "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -9469956.570871038,
- 3760777.9093726673
], - [
- -9474975.187479146,
- 3751164.760569398
], - [
- -9476802.051644254,
- 3734966.235942813
], - [
- -9476646.649634963,
- 3734316.572170302
], - [
- -9469956.570871038,
- 3760777.9093726673
]
]
]
]
}
}
]
]Returns a list land linked to a party id either all or filtered by participating states.
| partyId required | integer Numeric ID of the party |
List of participating states and or land ids to exclude.
| includeStates | Array of strings[ items >= 1 ] |
| excludeLandIds | Array of numbers[ items >= 1 ] |
{- "includeStates": [
- [
- "IA",
- "MN"
]
], - "excludeLandIds": [
- [
- 123,
- 124
]
]
}[- {
- "landId": 1154
}, - {
- "acres": 20.5
}, - {
- "averageCropAcres": 21.36
}, - {
- "lat": 47.06568
}, - {
- "lon": -96.1439
}, - {
- "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10908899.733890262,
- 5465029.622038781
]
}
}, - {
- "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -9469956.570871038,
- 3760777.9093726673
], - [
- -9474975.187479146,
- 3751164.760569398
], - [
- -9476802.051644254,
- 3734966.235942813
], - [
- -9476646.649634963,
- 3734316.572170302
], - [
- -9469956.570871038,
- 3760777.9093726673
]
]
]
]
}
}
]Returns a list land linked to a party id.
| partyId required | integer Numeric ID of the party |
[- {
- "landId": 1154
}, - {
- "acres": 20.5
}, - {
- "averageCropAcres": 21.36
}, - {
- "lat": 47.06568
}, - {
- "lon": -96.1439
}, - {
- "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10908899.733890262,
- 5465029.622038781
]
}
}, - {
- "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -9469956.570871038,
- 3760777.9093726673
], - [
- -9474975.187479146,
- 3751164.760569398
], - [
- -9476802.051644254,
- 3734966.235942813
], - [
- -9476646.649634963,
- 3734316.572170302
], - [
- -9469956.570871038,
- 3760777.9093726673
]
]
]
]
}
}
]Returns a list of results containing land attributes and 7 years of crop data.
| partyId required | integer Numeric ID of the party whose land we are getting. |
{- "result": [
- {
- "landId": 12345,
- "fipsCode": "01001",
- "zipCode": "55044",
- "landAcres": 12.3,
- "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10558738.900357295,
- 5008058.193060032
]
}, - "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -10558456.042657029,
- 5008347.949554658
], - [
- -10558455.341435859,
- 5008304.701148362
], - [
- -10558511.256451985,
- 5008305.0286874
], - [
- -10558512.935893303,
- 5008304.993006453
], - [
- -10558514.473155465,
- 5008298.213753284
], - [
- -10558513.975531062,
- 5008274.611287892
], - [
- -10558493.360265667,
- 5008253.122911593
], - [
- -10558464.09919755,
- 5008220.011736566
], - [
- -10558467.52292066,
- 5007836.703351381
], - [
- -10558770.981956609,
- 5007844.674019163
], - [
- -10558896.969501609,
- 5007843.679869688
], - [
- -10558938.29526675,
- 5007840.561177955
], - [
- -10559002.110848641,
- 5007839.202435153
], - [
- -10559010.039578905,
- 5007896.37707532
], - [
- -10559016.229459608,
- 5008348.259879513
], - [
- -10558456.042657029,
- 5008347.949554658
]
]
]
]
}, - "crops": [
- {
- "cropYear": 2025,
- "lciId": 795,
- "lciDescription": "Field Corn",
- "lciType": "CRP",
- "cropAcres": 1.54,
- "colorCode": "ff6666"
}
]
}
]
}Returns a list of land grids.
| partyId required | integer Numeric ID of the party whose land we are getting. |
[- {
- "gridId": 25967,
- "landIds": [
- 10334122,
- 12602666
], - "fields": 15,
- "prfAcres": 678.98,
- "alfalfa": 0,
- "pasturegrass": 678.98,
- "rangeland": 0,
- "shrubland": 0,
- "wheat": 0,
- "gridGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Polygon",
- "coordinates": [
- [
- [
- [
- -9323007.353936663,
- 3632749.143384427
], - [
- -9323007.353936663,
- 3600324.268028403
], - [
- -9350837.226634981,
- 3600324.268028403
], - [
- -9350837.226634981,
- 3632749.143384427
], - [
- -9323007.353936663,
- 3632749.143384427
]
]
]
]
}
}, - {
- "gridId": 26866,
- "landIds": [
- 10334,
- 12666
], - "fields": 12,
- "prfAcres": 189.63,
- "alfalfa": 0,
- "pasturegrass": 189.63,
- "rangeland": 0,
- "shrubland": 0,
- "wheat": 0,
- "gridGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Polygon",
- "coordinates": [
- [
- [
- -10157903.534886213,
- 5198502.107806752
], - [
- -10157903.534886213,
- 5160979.444049783
], - [
- -10185733.407584531,
- 5160979.444049783
], - [
- -10185733.407584531,
- 5198502.107806752
], - [
- -10157903.534886213,
- 5198502.107806752
]
]
]
}
}
]Returns a list of results containing a parties grainbins and their attributes.
| partyId required | integer Numeric ID of the party whose land we are getting. |
[- {
- "landId": 12345,
- "bushels": 583.4,
- "binId": 12345,
- "lat": 39.9191954099076,
- "lon": -73.899739925533
}
]Returns a list of grower names by partyIds.
| party-id required | Array of numbers Comma separated list of Party IDs. |
[- {
- "partyId": "4763",
- "companyName": "Doe Farms",
- "firstName": "John",
- "lastName": "Doe"
}
]Returns individual and shared data between main and related growers.
| party-id required | number Party ID for the main grower |
| related-party-id required | number Party ID for the related grower |
[- {
- "source": "overlap",
- "acres": 1320.59,
- "land": 135
}, - {
- "source": "mainGrower",
- "acres": 361,
- "land": 33
}, - {
- "source": "relatedGrower",
- "acres": 482,
- "land": 22
}
]Get detailed inventory of all lands enrolled in sustainable practice programs
| land-practice-id | Array of strings <uuid> [ items <uuid > ] when passed, returns all land practices with a matching land-practice-id. Multiple occurrences are allowed. |
| practice-id | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practices with a matching practice-id. Multiple occurrences are allowed. If none passed, only active sustainable practices are returned |
| state-code | Array of strings (participatingStates) Items Enum: "DE" "IL" "IN" "IA" "KS" "KY" "MD" "MI" "MN" "MO" "NE" "NY" "NC" "ND" "OH" "PA" "SD" "TN" "VA" "WI" Example: state-code=IA when passed, returns all lands with a matching state-code. Multiple occurrences are allowed. If none passed, lands in all participating states are returned |
| fsh-verified | boolean when TRUE, returns all lands in sustainable programs that have been verified by FSH. Otherwise, all lands are returned |
| crop-year | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practice programs with a matching crop-year. Multiple occurrences are allowed |
| land-id | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practices with a matching land-id. Multiple occurrences are allowed. |
| lat | number (latitude) [ -90 .. 90 ] Example: lat=39.9191954099076 latitude. Rerquired if lon and/or radius are passed. |
| lon | number (longitude) [ -180 .. 180 ] Example: lon=-73.899739925533 longitude. Rerquired if lon and/or radius are passed. |
| radius | number (radius) [ 1 .. 50000 ] The search radius in meters. Rerquired if lat and/or lon are passed. |
[- {
- "agCoreLandId": 279722,
- "landName": "North Field",
- "landPractices": [
- {
- "landPracticeId": "db1655d2-ff04-40b7-93e3-bbc15720793f",
- "agCoreLandId": 279722,
- "agCorePartyId": 1288801,
- "dtnCustomerId": "1692889833380926702530245",
- "landName": "North Field",
- "practiceId": "1",
- "practiceName": "Cover Crop",
- "programId": "1",
- "programName": "2024 Sustainable Practices Open Marketplace",
- "programStartsAt": "2024-07-01T05:00:00.000Z",
- "programEndsAt": "2024-08-31T05:00:00.000Z",
- "cropYear": 2024,
- "quantityAvailable": 55.64,
- "quantityEnrolled": 55,
- "quantitySold": 0,
- "quantityUnsold": 55,
- "unitType": "Acres",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "64e4dada75ddf5bcb63cf176",
- "verifiedAt": "2019-08-24T14:15:22Z",
- "fshVerified": false
}
], - "lat": 39.9191954099076,
- "lon": -73.899739925533,
- "stateCode": "IA",
- "party": {
- "address": {
- "addressLine": "123 Main St.",
- "city": "Maple Grove",
- "stateCode": "MN",
- "postalCode": "55441"
}, - "agCorePartyId": 123,
- "companyName": "string",
- "email": "bob@ross.com",
- "firstName": "Bob",
- "lastName": "Ross",
- "phone": 0
}, - "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10558738.900357295,
- 5008058.193060032
]
}, - "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -10558456.042657029,
- 5008347.949554658
], - [
- -10558455.341435859,
- 5008304.701148362
], - [
- -10558511.256451985,
- 5008305.0286874
], - [
- -10558512.935893303,
- 5008304.993006453
], - [
- -10558514.473155465,
- 5008298.213753284
], - [
- -10558513.975531062,
- 5008274.611287892
], - [
- -10558493.360265667,
- 5008253.122911593
], - [
- -10558464.09919755,
- 5008220.011736566
], - [
- -10558467.52292066,
- 5007836.703351381
], - [
- -10558770.981956609,
- 5007844.674019163
], - [
- -10558896.969501609,
- 5007843.679869688
], - [
- -10558938.29526675,
- 5007840.561177955
], - [
- -10559002.110848641,
- 5007839.202435153
], - [
- -10559010.039578905,
- 5007896.37707532
], - [
- -10559016.229459608,
- 5008348.259879513
], - [
- -10558456.042657029,
- 5008347.949554658
]
]
]
]
}
}
]Checks which given landIds have been already enrolled in a sustainable practice program by a different customerId
| land-id required | Array of numbers Required. AgCore Land identifier to be checked within the land practices. Multiple occurrences are allowed. |
[- 0
]Get detailed inventory of user's lands enrolled in sustainable practice programs
| land-practice-id | Array of strings <uuid> [ items <uuid > ] when passed, returns all land practices with a matching land-practice-id. Multiple occurrences are allowed. |
| practice-id | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practices with a matching practice-id. Multiple occurrences are allowed. If none passed, only active sustainable practices are returned |
| starts-after | string <date> Example: starts-after=2024-03-01 when passed, only land in sustainable programs that start on or after the given date are returned |
| ends-before | string <date> Example: ends-before=2025-03-01 when passed, only land in sustainable programs that end on or before the given date are returned |
| state-code | Array of strings (participatingStates) Items Enum: "DE" "IL" "IN" "IA" "KS" "KY" "MD" "MI" "MN" "MO" "NE" "NY" "NC" "ND" "OH" "PA" "SD" "TN" "VA" "WI" Example: state-code=IA when passed, returns all lands with a matching state-code. Multiple occurrences are allowed. If none passed, lands in all participating states are returned |
| fsh-verified | boolean when TRUE, returns all lands in sustainable programs that have been verified by FSH. Otherwise, all lands are returned |
| crop-year | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practice programs with a matching crop-year. Multiple occurrences are allowed |
[- {
- "agCoreLandId": 279722,
- "landName": "North Field",
- "landPractices": [
- {
- "landPracticeId": "db1655d2-ff04-40b7-93e3-bbc15720793f",
- "agCoreLandId": 279722,
- "agCorePartyId": 1288801,
- "dtnCustomerId": "1692889833380926702530245",
- "landName": "North Field",
- "practiceId": "1",
- "practiceName": "Cover Crop",
- "programId": "1",
- "programName": "2024 Sustainable Practices Open Marketplace",
- "programStartsAt": "2024-07-01T05:00:00.000Z",
- "programEndsAt": "2024-08-31T05:00:00.000Z",
- "cropYear": 2024,
- "quantityAvailable": 55.64,
- "quantityEnrolled": 55,
- "quantitySold": 0,
- "quantityUnsold": 55,
- "unitType": "Acres",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "64e4dada75ddf5bcb63cf176",
- "verifiedAt": "2019-08-24T14:15:22Z",
- "fshVerified": false
}
], - "lat": 39.9191954099076,
- "lon": -73.899739925533,
- "stateCode": "IA",
- "party": {
- "address": {
- "addressLine": "123 Main St.",
- "city": "Maple Grove",
- "stateCode": "MN",
- "postalCode": "55441"
}, - "agCorePartyId": 123,
- "companyName": "string",
- "email": "bob@ross.com",
- "firstName": "Bob",
- "lastName": "Ross",
- "phone": 0
}, - "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10558738.900357295,
- 5008058.193060032
]
}, - "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -10558456.042657029,
- 5008347.949554658
], - [
- -10558455.341435859,
- 5008304.701148362
], - [
- -10558511.256451985,
- 5008305.0286874
], - [
- -10558512.935893303,
- 5008304.993006453
], - [
- -10558514.473155465,
- 5008298.213753284
], - [
- -10558513.975531062,
- 5008274.611287892
], - [
- -10558493.360265667,
- 5008253.122911593
], - [
- -10558464.09919755,
- 5008220.011736566
], - [
- -10558467.52292066,
- 5007836.703351381
], - [
- -10558770.981956609,
- 5007844.674019163
], - [
- -10558896.969501609,
- 5007843.679869688
], - [
- -10558938.29526675,
- 5007840.561177955
], - [
- -10559002.110848641,
- 5007839.202435153
], - [
- -10559010.039578905,
- 5007896.37707532
], - [
- -10559016.229459608,
- 5008348.259879513
], - [
- -10558456.042657029,
- 5008347.949554658
]
]
]
]
}
}
]Update inventories of lands enrolled in sustainable practice programs through transactions
List of objects containing details of a transaction request to update the land practice inventory.
| landPracticeId required | string <uuid> |
| originator required | string Value: "SusMarketplace" |
| originatorReference required | string |
| executionStatus required | string Enum: "accepted" "adjusted_up" "adjusted_down" "withdrawn" |
| lastQuantity required | number |
| executedAt required | string <date-time> |
[- {
- "landPracticeId": "db1655d2-ff04-40b7-93e3-bbc15720793f",
- "originator": "SusMarketplace",
- "originatorReference": "abc1234567890",
- "executionStatus": "accepted",
- "lastQuantity": 55.64,
- "executedAt": "2024-05-29T17:02:03.117Z"
}
][- {
- "transactionId": "8f47e7b0-f8a2-465a-b423-5c7aa3a7b0c5",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "64e4dada75ddf5bcb63cf176",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "64e4dada75ddf5bcb63cf176",
- "landPracticeId": "db1655d2-ff04-40b7-93e3-bbc15720793f",
- "originator": "SusMarketplace",
- "originatorReference": "abc1234567890",
- "executionStatus": "accepted",
- "lastQuantity": 55.64,
- "executedAt": "2024-05-29T17:02:03.117Z"
}
]Get list of land identifiers enrolled with a given sustainable practice that have not been verified yet in a given crop year
| crop-year required | integer <int64> Required. Filters all land practices enrolled in a sustainable practice programs with a matching crop-year. |
| practice-id required | integer <int64> Required. filters all lands enrolled in a sustainable practice with a matching practice-id. Currently, only practiceId=1 (Cover crop) is allowed. |
| land-id | Array of numbers Optional. AgCore Land identifier to be checked within the land practices. Multiple occurrences are allowed. |
[- 0
]Update verfication status of lands enrolled in sustainable practice programs
List of objects containing details of a land verified.
| agCoreLandId required | number Uniquely identifies the land in agcore |
| practiceId required | integer <int64> |
| verifiedAt required | string <date-time> |
| cropYear required | integer <int64> |
| coverCrop | boolean |
[- {
- "agCoreLandId": 279722,
- "practiceId": "1",
- "verifiedAt": "2019-08-24T14:15:22Z",
- "cropYear": "2024",
- "coverCrop": false
}
][- {
- "agCoreLandId": 279722,
- "landPracticeCount": "1"
}
]By passing in the appropriate options, you can search in the sustainable practice catalog the practices that meet the given criteria
| practice-id | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practices with a matching practice-id. Multiple occurrences are allowed. If none passed, only active sustainable practices are returned |
| show-all | boolean when TRUE, returns all active and inactive sustainable practices. Otherwise, only active ones are returned |
[- {
- "id": "1",
- "name": "Cover Crop",
- "description": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]By passing in the appropriate options, you can search in the sustainable practice programs catalog the programs that meet the given criteria
| program-id | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practice programs with a matching program-id. Multiple occurrences are allowed |
| practice-id | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practices with a matching practice-id. Multiple occurrences are allowed. If none passed, only active sustainable practices are returned |
| show-all | boolean when TRUE, returns all active and inactive sustainable programs. Otherwise, only active ones are returned |
| status | Array of strings Items Enum: "open" "closed" "restricted" when passed, returns all sustainable programs with a matching status. Multiple occurrences are allowed. If none passed, only sustainable programs with an "open" status are returned |
| starts-after | string <date> Example: starts-after=2024-03-01 when passed, only sustainable programs that start on or after the given date are returned |
| ends-before | string <date> Example: ends-before=2025-03-01 when passed, only sustainable programs that end on or before the given date are returned |
| crop-year | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practice programs with a matching crop-year. Multiple occurrences are allowed |
[- {
- "programId": "1",
- "name": "string",
- "description": "string",
- "status": "open",
- "active": "true",
- "startsAt": "2023-03-01T05:00:00.000Z",
- "endsAt": "2024-03-01T05:00:00.000Z",
- "cropYear": 2024,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "practices": [
- {
- "programPracticeId": "d5430127-2c42-4885-8b50-6b3473735e87",
- "programId": "1",
- "practiceId": "1",
- "name": "Cover Crop",
- "active": "true",
- "unitsType": "Acres",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
]By passing in the appropriate options, you can get details of a given sustainable practice program, including specific practices associated with it
| programId required | integer <int64> sustainable practice program identifier |
| practice-id | Array of integers <int64> [ items <int64 > ] when passed, returns all sustainable practices with a matching practice-id. Multiple occurrences are allowed. If none passed, only active sustainable practices are returned |
{- "programId": "1",
- "name": "string",
- "description": "string",
- "status": "open",
- "active": "true",
- "startsAt": "2023-03-01T05:00:00.000Z",
- "endsAt": "2024-03-01T05:00:00.000Z",
- "cropYear": 2024,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "practices": [
- {
- "programPracticeId": "d5430127-2c42-4885-8b50-6b3473735e87",
- "programId": "1",
- "practiceId": "1",
- "name": "Cover Crop",
- "active": "true",
- "unitsType": "Acres",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Allows users to save a sustainable practices enrollment for a specific program. Users can specify the parties, lands, and practices they want to enroll in the program. The service processes the given enrollment object and performs actions like adding, updating, or deleting the land practice data accordingly.
| programId required | integer The identifier for the sustainable practice program. |
Object containing details for sustainable practices enrollment.
Array of objects | |
required | Array of objects |
{- "parties": [
- {
- "address": {
- "addressLine": "string",
- "city": "string",
- "stateCode": "string",
- "postalCode": "string"
}, - "agCorePartyId": "string",
- "companyName": "string",
- "email": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": 0
}
], - "enrolledLands": [
- {
- "programId": 0,
- "agCorePartyId": "string",
- "agCoreLandId": 0,
- "landName": "string",
- "acres": 0,
- "enrolledAcres": 0,
- "practices": [
- 0
], - "allowOffers": true
}
]
}{- "dtnCustomerId": "string",
- "enrolledLands": [
- {
- "agCorePartyId": 1288801,
- "agCoreLandId": 279722,
- "landName": "Test Land",
- "enrolledAcres": 55,
- "acres": 57.6,
- "programId": 1,
- "practices": [
- 3
]
}
], - "parties": [
- {
- "agCorePartyId": 1288801,
- "companyName": "LILBORN LOWELL FOX JR CENTENNIAL FARM",
- "firstName": "KIPPY",
- "lastName": "CHICKEDANTZ",
- "email": "agcore+752366@dtn.com",
- "address": {
- "addressLine": "200 SKYLINE DR",
- "city": "ELKHORN",
- "stateCode": "NE",
- "postalCode": "68022"
}, - "phone": "5809765432"
}
]
}Returns the sustainable practices enrollments and associated parties.
| programId required | integer The identifier for the sustainable practice program. |
{- "dtnCustomerId": "string",
- "enrolledLands": [
- {
- "agCorePartyId": 1288801,
- "agCoreLandId": 279722,
- "landName": "Test Land",
- "enrolledAcres": 55,
- "acres": 57.6,
- "programId": 1,
- "practices": [
- 3
]
}
], - "parties": [
- {
- "agCorePartyId": 1288801,
- "companyName": "LILBORN LOWELL FOX JR CENTENNIAL FARM",
- "firstName": "KIPPY",
- "lastName": "CHICKEDANTZ",
- "email": "agcore+752366@dtn.com",
- "address": {
- "addressLine": "200 SKYLINE DR",
- "city": "ELKHORN",
- "stateCode": "NE",
- "postalCode": "68022"
}, - "phone": "5809765432"
}
]
}| verified | boolean |
| fips-codes | string Example: fips-codes=100010,470321 |
| crop-years | string Example: crop-years=2024,2023 |
| land-outcome-ids | string Example: land-outcome-ids=1,2 |
| outcome-type-ids | string Example: outcome-type-ids=1,2 |
| unit-of-measurements | string Example: unit-of-measurements=1,2 |
| state-codes | string Example: state-codes=CO,MO |
| outcomes | string Example: outcomes=Cover Crop |
| active | boolean |
| limit | number |
| offset | number |
| x-requested-customer-id | string Required if the requesting user has multiple customer ids or using an M2M token. |
{- "results": [
- {
- "landOutcomeId": 0,
- "sustainableLandId": 0,
- "outcomeId": 0,
- "cropYear": 0,
- "quantity": 0,
- "baseUomId": [
- 0
], - "verifiedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "outcome": {
- "outcomeId": 0,
- "outcomeTypeId": 0,
- "name": "string",
- "description": "string",
- "active": true,
- "allowedUnitsOfMeasure": [
- 0
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "outcomeType": {
- "outcomeTypeId": 0,
- "name": "string",
- "description": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}, - "sustainableLand": {
- "sustainableLandId": 0,
- "agcoreLandId": 0,
- "dtnCustomerId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "land": {
- "landId": 0,
- "lat": 0.1,
- "lon": 0.1,
- "acres": 0.1,
- "polyGeom": {
- "type": "string",
- "coordinates": [
- [
- [
- [
- null
]
]
]
]
}, - "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10558738.900357295,
- 5008058.193060032
]
}, - "landPractice": {
- "landName": "string"
}, - "fips": {
- "stateCode": "string"
}
}
}
}
], - "count": 0
}| agcoreLandId required | integer |
| dtnCustomerId | string |
required | Array of objects |
{- "agcoreLandId": 10,
- "dtnCustomerId": "4c6966d49d0a4bcea2a024b7cf505b19",
- "outcomes": [
- {
- "outcomeId": 1,
- "quantity": 20,
- "unitOfMeasure": "acres",
- "cropYear": 2024,
- "verifiedAt": "2023-10-20T06:00:00.000Z"
}
]
}{- "sustainableLandId": 102,
- "agcoreLandId": 10,
- "dtnCustomerId": "string",
- "createdAt": "2025-03-04T04:12:52.138Z",
- "updatedAt": "2025-03-04T04:12:52.138Z",
- "deletedAt": null,
- "land": {
- "landId": 10,
- "lat": 35.8935383887716,
- "lon": -85.7263193952867,
- "acres": 3.88,
- "polyGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "MultiPolygon",
- "coordinates": [
- [
- [
- [
- -9542808.292875644
]
]
]
]
}, - "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -9543011.822663374
]
}
}, - "outcomes": [
- {
- "landOutcomeId": 112,
- "sustainableLandId": 102,
- "outcomeId": 1,
- "cropYear": 2024,
- "quantity": 20,
- "baseUomId": [
- 2
], - "verifiedAt": "2023-10-20T06:00:00.000Z",
- "createdAt": "2025-03-04T04:12:52.540Z",
- "createdBy": null,
- "updatedAt": "2025-03-04T04:12:52.540Z",
- "updatedBy": null,
- "outcome": {
- "outcomeId": 1,
- "outcomeTypeId": 1,
- "name": "Cover Crop",
- "description": null,
- "active": true,
- "allowedUnitsOfMeasure": [
- 2
], - "createdAt": "2025-02-05T05:36:59.896Z",
- "updatedAt": null,
- "outcomeType": {
- "outcomeTypeId": 1,
- "name": "Verified Regenerative Practices",
- "description": null,
- "active": true,
- "createdAt": "2025-02-05T05:36:56.642Z",
- "updatedAt": null
}
}
}
]
}| landOutcomeId | number |
| x-requested-customer-id | string Required if the requesting user has multiple customer ids or using an M2M token. |
{- "landOutcomeId": 0,
- "sustainableLandId": 0,
- "outcomeId": 0,
- "cropYear": 0,
- "quantity": 0,
- "baseUomId": [
- 0
], - "verifiedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "outcome": {
- "outcomeId": 0,
- "outcomeTypeId": 0,
- "name": "string",
- "description": "string",
- "active": true,
- "allowedUnitsOfMeasure": [
- 0
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "outcomeType": {
- "outcomeTypeId": 0,
- "name": "string",
- "description": "string",
- "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}, - "sustainableLand": {
- "sustainableLandId": 0,
- "agcoreLandId": 0,
- "dtnCustomerId": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "land": {
- "landId": 0,
- "lat": 0.1,
- "lon": 0.1,
- "acres": 0.1,
- "polyGeom": {
- "type": "string",
- "coordinates": [
- [
- [
- [
- 0
]
]
]
]
}, - "pointGeom": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "EPSG:3857"
}
}, - "type": "Point",
- "coordinates": [
- -10558738.900357295,
- 5008058.193060032
]
}, - "landPractice": {
- "landName": "string"
}, - "fips": {
- "stateCode": "string"
}
}
}
}| landOutcomeId | number |
| x-requested-customer-id | string Required if the requesting user has multiple customer ids or using an M2M token. |
{- "type": "bad-request",
- "title": "Invalid Request",
- "status": 400,
- "detail": "Request contains unexpected request parameters",
- "instance": "urn:dtn:/api/v1/participating-states?k=r:requestId:959babbe-81ca-4667-a880-a9447bf05dc6",
- "error": "Request body is invalid, please use array of fips codes. example: {'fipsCodes': [1,2,3]}",
- "errors": [
- {
- "keyword": "required",
- "dataPath": "/prop/1/subProp",
- "schemaPath": "#/additionalProperties",
- "message": "should have required property 'fipsCodes'"
}
]
}