GET Seed/GetDealerOrder?locationId={locationId}&vendorId={vendorId}

Returns the supplier's dealer order combined with grower orders.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
locationId

Location ID.

string

Required

vendorId

Vendor ID.

string

Required

Body Parameters

Response Information

Resource Description

Returns the supplier's dealer order combined with grower orders.

AgvDealerOrder
NameDescriptionTypeAdditional Information
Status

0 = Success. 1 = An error occurred. 2 = An error occurred. 3 = Descriptive message, process was successful.

string
Message

Informational message that corresponds to the Status returned. 0 - Message will be "OK". 1 - Detailed message returned to give user an indication of what went wrong. 2 - Less Detailed message returned that may not mean anything to the user but that the application might use to take a corrective action. 3 - Not an error but something the user might need to know.

string
ErrorList

List of errors from the API

Collection of string
WarningList

List of warnings from the API

Collection of string
Count

Count of how many Products are returned

string
Data

List of Dealer order rows

Collection of DealerOrderRow

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "ErrorList": [
    "sample string 1",
    "sample string 2"
  ],
  "WarningList": [
    "sample string 1",
    "sample string 2"
  ],
  "Count": "2",
  "Data": [
    {
      "Gtin": "sample string 1",
      "DepartmentId": "sample string 2",
      "ProductId": "sample string 3",
      "Variety": "sample string 4",
      "ProductDescription": "sample string 5",
      "QuantityOnGrowerOrder": 6.1,
      "QuantityOnDealerOrder": 7.1,
      "LongShort": 1.0,
      "Position": 2,
      "ShippedQuantity": 8.1,
      "Uncommitted": 9.1,
      "GrowerOrderRows": [
        {
          "DepartmentId": "sample string 1",
          "ProductId": "sample string 2",
          "ProductDescription": "sample string 3",
          "QuantityOnGrowerOrder": 4.1
        },
        {
          "DepartmentId": "sample string 1",
          "ProductId": "sample string 2",
          "ProductDescription": "sample string 3",
          "QuantityOnGrowerOrder": 4.1
        }
      ]
    },
    {
      "Gtin": "sample string 1",
      "DepartmentId": "sample string 2",
      "ProductId": "sample string 3",
      "Variety": "sample string 4",
      "ProductDescription": "sample string 5",
      "QuantityOnGrowerOrder": 6.1,
      "QuantityOnDealerOrder": 7.1,
      "LongShort": 1.0,
      "Position": 2,
      "ShippedQuantity": 8.1,
      "Uncommitted": 9.1,
      "GrowerOrderRows": [
        {
          "DepartmentId": "sample string 1",
          "ProductId": "sample string 2",
          "ProductDescription": "sample string 3",
          "QuantityOnGrowerOrder": 4.1
        },
        {
          "DepartmentId": "sample string 1",
          "ProductId": "sample string 2",
          "ProductDescription": "sample string 3",
          "QuantityOnGrowerOrder": 4.1
        }
      ]
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: No set method for property 'Position' in type 'SKY.Core.Seed.DealerOrder+DealerOrderRow'.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: No set method for property 'Position' in type 'SKY.Core.Seed.DealerOrder+DealerOrderRow'.