POST api/v1/grower/grainbin/all

Provides all FMID_Bin_Ids for a list of Grower_IDs. Passing in a JSON Array with an identifier of 'id' for each grower_id in the Body of the request and with a Content-Type of application/json. Sample request payload - [{"id": 1}, {"id": 2}, {"id": 3}]

Request Information

Headers

In order to receive live data, you must provide the necessary information to authenticate. This will require an API-Key, which is to be provided within the request header for every request. If an API-Key is not provided, sandbox data will be returned.

Name Description Type Additional Information
API-Key 32 Character GUID key String Required to return live information. If not provided, sandbox data will be returned.

URI Parameters

None.

Body Parameters

The requesting Grower IDs

Collection of Object

None.

Request Formats

application/json, text/json, text/html, application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of V1_GrowersBins
NameDescriptionTypeAdditional information
Grower_Id

Grower_ID is the grower you entered

integer

Required

FMID_Bin_Id

Farm Market iD Internal Bin ID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Grower_Id": 1,
    "FMID_Bin_Id": 2
  },
  {
    "Grower_Id": 1,
    "FMID_Bin_Id": 2
  }
]

text/html

Sample:
[{"Grower_Id":1,"FMID_Bin_Id":2},{"Grower_Id":1,"FMID_Bin_Id":2}]

application/xml, text/xml

Sample:
<ArrayOfV1_GrowersBins xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FF_API.Models.Grower.V1">
  <V1_GrowersBins>
    <FMID_Bin_Id>2</FMID_Bin_Id>
    <Grower_Id>1</Grower_Id>
  </V1_GrowersBins>
  <V1_GrowersBins>
    <FMID_Bin_Id>2</FMID_Bin_Id>
    <Grower_Id>1</Grower_Id>
  </V1_GrowersBins>
</ArrayOfV1_GrowersBins>