GET api/v1/Public/GetLabelsByCropId?apiKey={apiKey}&cropId={cropId}&currentYear={currentYear}&state={state}&acceptTos={acceptTos}

Gets the labels by a single crop identifier.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

The API key.

string

Required

cropId

The crop identifier.

integer

Required

currentYear

if set to true results are restricted to the current registration year, otherwise all years results will be included.

boolean

Required

state

The ID of the state you wish to restrict your results to, -1 for all states.

integer

Required

acceptTos

if set to true [accept tos].

boolean

Required

Body Parameters

None.

Response Information

Resource Description

A JSON encoded collection of labels

Picol.Classes.Api.V1.ResultOfPicol.Classes.Api.V1.Label
NameDescriptionTypeAdditional information
Error

boolean

None.

Message

string

None.

Data

Collection of Picol.Classes.Api.V1.Label

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": true,
  "Message": "sample string 2",
  "Data": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "EpaNumber": "sample string 3",
      "IntendedUser": {
        "Id": 1,
        "Name": "sample string 2",
        "Code": "sample string 3"
      },
      "Ingredients": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3",
          "Notes": "sample string 4",
          "Resistance": {
            "Id": 1,
            "Source": "sample string 2",
            "Code": "sample string 3",
            "MethodOfAction": "sample string 4"
          }
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3",
          "Notes": "sample string 4",
          "Resistance": {
            "Id": 1,
            "Source": "sample string 2",
            "Code": "sample string 3",
            "MethodOfAction": "sample string 4"
          }
        }
      ],
      "PesticideTypes": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3"
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3"
        }
      ],
      "Registrant": {
        "Id": 1,
        "Name": "sample string 2",
        "Website": "sample string 3"
      },
      "Sln": "sample string 4",
      "SlnName": "sample string 5",
      "SlnExpiration": "2024-06-20T02:41:42.711024-07:00",
      "StateRecords": [
        {
          "Id": 1,
          "StateId": 2,
          "Name": "sample string 3",
          "AgencyId": "sample string 4",
          "Version": "sample string 5",
          "Year": 6,
          "I502": true,
          "Essb6206": true
        },
        {
          "Id": 1,
          "StateId": 2,
          "Name": "sample string 3",
          "AgencyId": "sample string 4",
          "Version": "sample string 5",
          "Year": 6,
          "I502": true,
          "Essb6206": true
        }
      ],
      "Supplemental": "sample string 6",
      "SupplementalName": "sample string 7",
      "SupplementalExpiration": "2024-06-20T02:41:42.711024-07:00",
      "Formulation": "sample string 8",
      "SignalWord": "sample string 9",
      "Usage": "sample string 10",
      "Organic": true,
      "Spanish": true,
      "EsaNotice": true,
      "Section18": "sample string 11"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "EpaNumber": "sample string 3",
      "IntendedUser": {
        "Id": 1,
        "Name": "sample string 2",
        "Code": "sample string 3"
      },
      "Ingredients": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3",
          "Notes": "sample string 4",
          "Resistance": {
            "Id": 1,
            "Source": "sample string 2",
            "Code": "sample string 3",
            "MethodOfAction": "sample string 4"
          }
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3",
          "Notes": "sample string 4",
          "Resistance": {
            "Id": 1,
            "Source": "sample string 2",
            "Code": "sample string 3",
            "MethodOfAction": "sample string 4"
          }
        }
      ],
      "PesticideTypes": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3"
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "Code": "sample string 3"
        }
      ],
      "Registrant": {
        "Id": 1,
        "Name": "sample string 2",
        "Website": "sample string 3"
      },
      "Sln": "sample string 4",
      "SlnName": "sample string 5",
      "SlnExpiration": "2024-06-20T02:41:42.711024-07:00",
      "StateRecords": [
        {
          "Id": 1,
          "StateId": 2,
          "Name": "sample string 3",
          "AgencyId": "sample string 4",
          "Version": "sample string 5",
          "Year": 6,
          "I502": true,
          "Essb6206": true
        },
        {
          "Id": 1,
          "StateId": 2,
          "Name": "sample string 3",
          "AgencyId": "sample string 4",
          "Version": "sample string 5",
          "Year": 6,
          "I502": true,
          "Essb6206": true
        }
      ],
      "Supplemental": "sample string 6",
      "SupplementalName": "sample string 7",
      "SupplementalExpiration": "2024-06-20T02:41:42.711024-07:00",
      "Formulation": "sample string 8",
      "SignalWord": "sample string 9",
      "Usage": "sample string 10",
      "Organic": true,
      "Spanish": true,
      "EsaNotice": true,
      "Section18": "sample string 11"
    }
  ]
}