POST SalesOrderV2/PostSalesOrderV2

Creates a Sales Order

Request Information

URI Parameters

Body Parameters

Object used to create a new Sales Order in the database.

ClsSalesOrderAdd
NameDescriptionTypeAdditional Information
OrderDate

The date the Sales Order was created. Omit or leave this property null to have the API system date used for the save of the Sales Order

string

Data type: DateTime

Format must be MM/dd/yyyy

FieldOwnerId

The Agvance ID for the owner (Customer) of the Field. Used in combination with the FieldId to set the field for the Sales Order. If set (Either directly or from the FieldOwnerGUID), will be the value used on the Sales Order

string

Max length: 6

FieldOwnerGuid

The Agvance globally unique identifier for the owner (Customer) of the Field. If this is valid in Agvance and the FieldOwnerId is not set, it will update the FieldOwerId property

globally unique identifier

(Hexadecimal 8-4-4-4-12)

FieldId

The Agvance ID of the Field for the Sales Order. If set, will be the value used on the Sales Order

string

Max length: 8

FieldGuid

The Agvance globally unique identifier for the Field. If assigned and the FieldOwnerId and FieldId are both null, will be the value used to set the field for the Sales Order

globally unique identifier

(Hexadecimal 8-4-4-4-12)

BillComment

The billing comment of the Sales Order

string

Max length: 80

EstDelDate

Estimated date of product delivery to the customer

string

Required

Data type: DateTime

Format must be MM/dd/yyyy

PickupOrDeliver

The type of Sales Order. Indicates the purpose of what will be done with the products on this order

EnumPickupOrDeliver

Required

Status

The customer approved status of the Sales Order. If not set, "Offered" will be the default.

EnumStatus
ShipVia

Method of shipment

string

Max length: 25

ShipTo

The destination address of the Sales Order

string

Max length: 50

County

The Agvance ID of the County of the destination address for the Sales Order

string

Max length: 60

Territory

A sales tool that can be used to group Sales Orders

string

Max length: 15

ControlNum

A value that may be used to reference an internal control number (such as hand ticket numbers) associated with the Sales Order

string

Max length: 10

SalespersonId

The Agvance ID of the Salesperson associated with this Sales Order

string

Max length: 15

CropId

The Agvance ID of the Crop associated with the Sales Order. If set, will be the value used on the Sales Order

string

Max length: 15

CropGuid

The Agvance globally unique identifier for the Crop associated with the Sales Order

globally unique identifier

(Hexadecimal 8-4-4-4-12)

CustPo

Customer provided purchase order number

string

Max length: 20

AuthAgent

Authorized Agent - the person associated with this customer who is authorized to make decisions or pickup products. Must exist as a contact with the "Authorized Agent" type for a customer on the split

string

Max length: 50

AaRelatedHow

How the Authorized Agent is related to the customer

string

Max length: 20

AaAddr1

Authorized Agent Address 1

string

Max length: 50

AaAddr2

Authorized Agent Address 2

string

Max length: 50

AaCity

Authorized Agent City

string

Max length: 50

AaState

Authorized Agent State

string

Max length: 2

AaZip

Authorized Agent Zipcode

string

Max length: 10

CustomApplied

Indicates if this Sales Order is to be applied by the dealer. Setting this property negates all federal and state checking for restricted use products

boolean

Must be 0, 1, True, or False

AddComments

A large text field that holds additional notes or comments about this Sales Order

string

Max length: 240

Acres

Indicates the number of Acres, Hectares, Tons, Metric Tonnes, or 1000 SqFt based on the UnitType

decimal number

Max of 3 decimal places

UnitType

The type of unit that was used to identify the Acres value entered. If not set, "Acres" will be the default

EnumUnitType
FedPermit

One of the non-expired federal permits of a customer associated with this Sales Order

string

Max length: 60

FedPermitExpDate

The expiration date of the indicated FedPermit property. Omit or leave null to set this value from Agvance

string

Data type: DateTime

Format must be MM/dd/yyyy

DiscOpt

The Agvance ID of the Payment Term associated with this Sales Order

string

Max length: 15

Location

The Agvance ID for the Location of this Sales Order. Either this or the LocationGuid property is required. If set, will be the value used on the Sales Order

string

Max length: 6

LocationGuid

The Agvance globally unique identifier for the Location of this Sales Order. Either this or the Location property is required

globally unique identifier

(Hexadecimal 8-4-4-4-12)

OfferExpiresDate

The date that the Sales Order is no longer valid; Works in conjunction with the Status of "Offered"

string

Data type: DateTime

Format must be MM/dd/yyyy

PaymentDate

The date that the payment is received for this Sales Order

string

Data type: DateTime

Format must be MM/dd/yyyy

CheckNumber

The check number for the payment received

string

Max length: 10

StartDate

The date that transfers to the Booking Start Date

string

Data type: DateTime

Format must be MM/dd/yyyy

ExpirationDate

The date that transfers to the Booking Expiration Date

string

Data type: DateTime

Format must be MM/dd/yyyy

Splits

List of customers to whom the order is being sent

Collection of ClsSalesOrderSplitAdd

List cannot be empty

Maximum of 8 allowed

Applications

List of applicator / vehicle records for the Sales Order

Collection of ClsSalesOrderApplicationAdd

Maximum of 25 allowed

Discounts

List of Sales Order Discounts to apply to the Sales Order

Collection of ClsSalesOrderDiscountAdd

Maximum of 5 allowed

Request Formats

application/json, text/json

Sample:
{
  "OrderDate": "sample string 5",
  "FieldOwnerId": "sample string 6",
  "FieldOwnerGuid": "e5015311-1df2-4e5e-bffa-824fc2ae4845",
  "FieldId": "sample string 7",
  "FieldGuid": "8d8cb691-204f-40d8-af35-985a7b6f44bc",
  "BillComment": "sample string 8",
  "EstDelDate": "sample string 9",
  "PickupOrDeliver": 0,
  "Status": 0,
  "ShipVia": "sample string 10",
  "ShipTo": "sample string 11",
  "County": "sample string 12",
  "Territory": "sample string 13",
  "ControlNum": "sample string 14",
  "SalespersonId": "sample string 15",
  "CropId": "sample string 16",
  "CropGuid": "b66f0992-bf63-4d07-9102-c32d1481cda6",
  "CustPo": "sample string 17",
  "AuthAgent": "sample string 18",
  "AaRelatedHow": "sample string 19",
  "AaAddr1": "sample string 20",
  "AaAddr2": "sample string 21",
  "AaCity": "sample string 22",
  "AaState": "sample string 23",
  "AaZip": "sample string 24",
  "CustomApplied": true,
  "AddComments": "sample string 26",
  "Acres": 27.1,
  "UnitType": 0,
  "FedPermit": "sample string 28",
  "FedPermitExpDate": "sample string 29",
  "DiscOpt": "sample string 30",
  "Location": "sample string 31",
  "LocationGuid": "86457001-25da-481d-b516-6e843fb6442f",
  "OfferExpiresDate": "sample string 32",
  "PaymentDate": "sample string 33",
  "CheckNumber": "sample string 34",
  "StartDate": "sample string 35",
  "ExpirationDate": "sample string 36",
  "Splits": [
    {
      "CustId": "sample string 1",
      "CustomerGuid": "e289da9e-ef30-4c66-9b0e-fef36d742e7f",
      "PercentS1": 2.1,
      "PercentS2": 3.1,
      "PercentS3": 4.1,
      "LineItems": [
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "c6d6ac64-98e5-4504-8eb2-d40114e5cd6f",
          "ProductDescription": "sample string 3",
          "Quantity": 4.1,
          "Price": 5.1,
          "PriceLevel": 0,
          "SplitNum": 6,
          "SplitPercent": 7.1,
          "LotNumber": "sample string 8",
          "CropCode": "sample string 9",
          "CropCodeGuid": "540ac38b-7ea0-4395-bc99-3d25ce1a0a34",
          "AllocationNumber": 12
        },
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "c6d6ac64-98e5-4504-8eb2-d40114e5cd6f",
          "ProductDescription": "sample string 3",
          "Quantity": 4.1,
          "Price": 5.1,
          "PriceLevel": 0,
          "SplitNum": 6,
          "SplitPercent": 7.1,
          "LotNumber": "sample string 8",
          "CropCode": "sample string 9",
          "CropCodeGuid": "540ac38b-7ea0-4395-bc99-3d25ce1a0a34",
          "AllocationNumber": 12
        }
      ]
    },
    {
      "CustId": "sample string 1",
      "CustomerGuid": "e289da9e-ef30-4c66-9b0e-fef36d742e7f",
      "PercentS1": 2.1,
      "PercentS2": 3.1,
      "PercentS3": 4.1,
      "LineItems": [
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "c6d6ac64-98e5-4504-8eb2-d40114e5cd6f",
          "ProductDescription": "sample string 3",
          "Quantity": 4.1,
          "Price": 5.1,
          "PriceLevel": 0,
          "SplitNum": 6,
          "SplitPercent": 7.1,
          "LotNumber": "sample string 8",
          "CropCode": "sample string 9",
          "CropCodeGuid": "540ac38b-7ea0-4395-bc99-3d25ce1a0a34",
          "AllocationNumber": 12
        },
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "c6d6ac64-98e5-4504-8eb2-d40114e5cd6f",
          "ProductDescription": "sample string 3",
          "Quantity": 4.1,
          "Price": 5.1,
          "PriceLevel": 0,
          "SplitNum": 6,
          "SplitPercent": 7.1,
          "LotNumber": "sample string 8",
          "CropCode": "sample string 9",
          "CropCodeGuid": "540ac38b-7ea0-4395-bc99-3d25ce1a0a34",
          "AllocationNumber": 12
        }
      ]
    }
  ],
  "Applications": [
    {
      "ApplicatorId": "sample string 1",
      "VehicleId": "sample string 2",
      "Acres": 3.1
    },
    {
      "ApplicatorId": "sample string 1",
      "VehicleId": "sample string 2",
      "Acres": 3.1
    }
  ],
  "Discounts": [
    {
      "SalesOrderDiscountKey": 1,
      "Rate": 2.1,
      "Manual": 3.1
    },
    {
      "SalesOrderDiscountKey": 1,
      "Rate": 2.1,
      "Manual": 3.1
    }
  ]
}

application/xml, text/xml

Sample:
<ClsSalesOrder.ClsSalesOrderAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.plbl">
  <AaAddr1>sample string 20</AaAddr1>
  <AaAddr2>sample string 21</AaAddr2>
  <AaCity>sample string 22</AaCity>
  <AaRelatedHow>sample string 19</AaRelatedHow>
  <AaState>sample string 23</AaState>
  <AaZip>sample string 24</AaZip>
  <Acres>27.1</Acres>
  <AddComments>sample string 26</AddComments>
  <Applications>
    <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderApplicationAdd>
      <Acres>3.1</Acres>
      <ApplicatorId>sample string 1</ApplicatorId>
      <VehicleId>sample string 2</VehicleId>
    </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderApplicationAdd>
    <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderApplicationAdd>
      <Acres>3.1</Acres>
      <ApplicatorId>sample string 1</ApplicatorId>
      <VehicleId>sample string 2</VehicleId>
    </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderApplicationAdd>
  </Applications>
  <AuthAgent>sample string 18</AuthAgent>
  <BillComment>sample string 8</BillComment>
  <CheckNumber>sample string 34</CheckNumber>
  <ControlNum>sample string 14</ControlNum>
  <County>sample string 12</County>
  <CropGuid>b66f0992-bf63-4d07-9102-c32d1481cda6</CropGuid>
  <CropId>sample string 16</CropId>
  <CustPo>sample string 17</CustPo>
  <CustomApplied>true</CustomApplied>
  <DiscOpt>sample string 30</DiscOpt>
  <Discounts>
    <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderDiscountAdd>
      <Manual>3.1</Manual>
      <Rate>2.1</Rate>
      <SalesOrderDiscountKey>1</SalesOrderDiscountKey>
    </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderDiscountAdd>
    <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderDiscountAdd>
      <Manual>3.1</Manual>
      <Rate>2.1</Rate>
      <SalesOrderDiscountKey>1</SalesOrderDiscountKey>
    </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderDiscountAdd>
  </Discounts>
  <EstDelDate>sample string 9</EstDelDate>
  <ExpirationDate>sample string 36</ExpirationDate>
  <FedPermit>sample string 28</FedPermit>
  <FedPermitExpDate>sample string 29</FedPermitExpDate>
  <FieldGuid>8d8cb691-204f-40d8-af35-985a7b6f44bc</FieldGuid>
  <FieldId>sample string 7</FieldId>
  <FieldOwnerGuid>e5015311-1df2-4e5e-bffa-824fc2ae4845</FieldOwnerGuid>
  <FieldOwnerId>sample string 6</FieldOwnerId>
  <Location>sample string 31</Location>
  <LocationGuid>86457001-25da-481d-b516-6e843fb6442f</LocationGuid>
  <OfferExpiresDate>sample string 32</OfferExpiresDate>
  <OrderDate>sample string 5</OrderDate>
  <PaymentDate>sample string 33</PaymentDate>
  <PickupOrDeliver>Pickup</PickupOrDeliver>
  <SalespersonId>sample string 15</SalespersonId>
  <ShipTo>sample string 11</ShipTo>
  <ShipVia>sample string 10</ShipVia>
  <Splits>
    <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd>
      <CustId>sample string 1</CustId>
      <CustomerGuid>e289da9e-ef30-4c66-9b0e-fef36d742e7f</CustomerGuid>
      <LineItems>
        <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
          <AllocationNumber>12</AllocationNumber>
          <CropCode>sample string 9</CropCode>
          <CropCodeGuid>540ac38b-7ea0-4395-bc99-3d25ce1a0a34</CropCodeGuid>
          <DeptId>sample string 1</DeptId>
          <LotNumber>sample string 8</LotNumber>
          <Price>5.1</Price>
          <PriceLevel>List</PriceLevel>
          <ProdId>sample string 2</ProdId>
          <ProductDescription>sample string 3</ProductDescription>
          <ProductGuid>c6d6ac64-98e5-4504-8eb2-d40114e5cd6f</ProductGuid>
          <Quantity>4.1</Quantity>
          <SplitNum>6</SplitNum>
          <SplitPercent>7.1</SplitPercent>
        </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
        <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
          <AllocationNumber>12</AllocationNumber>
          <CropCode>sample string 9</CropCode>
          <CropCodeGuid>540ac38b-7ea0-4395-bc99-3d25ce1a0a34</CropCodeGuid>
          <DeptId>sample string 1</DeptId>
          <LotNumber>sample string 8</LotNumber>
          <Price>5.1</Price>
          <PriceLevel>List</PriceLevel>
          <ProdId>sample string 2</ProdId>
          <ProductDescription>sample string 3</ProductDescription>
          <ProductGuid>c6d6ac64-98e5-4504-8eb2-d40114e5cd6f</ProductGuid>
          <Quantity>4.1</Quantity>
          <SplitNum>6</SplitNum>
          <SplitPercent>7.1</SplitPercent>
        </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
      </LineItems>
      <PercentS1>2.1</PercentS1>
      <PercentS2>3.1</PercentS2>
      <PercentS3>4.1</PercentS3>
    </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd>
    <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd>
      <CustId>sample string 1</CustId>
      <CustomerGuid>e289da9e-ef30-4c66-9b0e-fef36d742e7f</CustomerGuid>
      <LineItems>
        <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
          <AllocationNumber>12</AllocationNumber>
          <CropCode>sample string 9</CropCode>
          <CropCodeGuid>540ac38b-7ea0-4395-bc99-3d25ce1a0a34</CropCodeGuid>
          <DeptId>sample string 1</DeptId>
          <LotNumber>sample string 8</LotNumber>
          <Price>5.1</Price>
          <PriceLevel>List</PriceLevel>
          <ProdId>sample string 2</ProdId>
          <ProductDescription>sample string 3</ProductDescription>
          <ProductGuid>c6d6ac64-98e5-4504-8eb2-d40114e5cd6f</ProductGuid>
          <Quantity>4.1</Quantity>
          <SplitNum>6</SplitNum>
          <SplitPercent>7.1</SplitPercent>
        </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
        <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
          <AllocationNumber>12</AllocationNumber>
          <CropCode>sample string 9</CropCode>
          <CropCodeGuid>540ac38b-7ea0-4395-bc99-3d25ce1a0a34</CropCodeGuid>
          <DeptId>sample string 1</DeptId>
          <LotNumber>sample string 8</LotNumber>
          <Price>5.1</Price>
          <PriceLevel>List</PriceLevel>
          <ProdId>sample string 2</ProdId>
          <ProductDescription>sample string 3</ProductDescription>
          <ProductGuid>c6d6ac64-98e5-4504-8eb2-d40114e5cd6f</ProductGuid>
          <Quantity>4.1</Quantity>
          <SplitNum>6</SplitNum>
          <SplitPercent>7.1</SplitPercent>
        </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
      </LineItems>
      <PercentS1>2.1</PercentS1>
      <PercentS2>3.1</PercentS2>
      <PercentS3>4.1</PercentS3>
    </ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd>
  </Splits>
  <StartDate>sample string 35</StartDate>
  <Status>Offered</Status>
  <Territory>sample string 13</Territory>
  <UnitType>A</UnitType>
</ClsSalesOrder.ClsSalesOrderAdd>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ClsSalesOrderAdd'.

Response Information

Resource Description

Creates a Sales Order

AgvSalesOrderV2
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 error messages of the API call.

Collection of string
Count

Number of results returned.

string
SalesOrders

List of Properties and Values returned for each Sales Order that matches the request.

Collection of ClsSalesOrder

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "ErrorList": [
    "sample string 1",
    "sample string 2"
  ],
  "Count": "2",
  "SalesOrders": [
    {
      "SalesOrderGUID": "2bf01c9c-29a5-4571-9c3e-012dd97dae6a",
      "OrderNum": 8,
      "OrderDate": "2022-12-08T02:17:02.4660976+00:00",
      "FieldOwnerId": "sample string 10",
      "FieldOwnerGuid": "fa128bf6-8862-4550-bf1b-cf682851d33b",
      "FieldOwnerFirstName": "sample string 11",
      "FieldOwnerLastName": "sample string 12",
      "FieldOwnerName": "sample string 11 sample string 12",
      "FieldId": "sample string 13",
      "FieldGuid": "796ef767-fb8a-438e-a488-fe0f93c564cf",
      "FieldDescription": "sample string 14",
      "BillComment": "sample string 15",
      "EstDelDate": "2022-12-08T02:17:02.4660976+00:00",
      "PickupOrDeliver": 0,
      "PickupOrDeliverAsString": "Pickup",
      "Status": 0,
      "StatusAsString": "Offered",
      "ShipVia": "sample string 17",
      "ShipTo": "sample string 18",
      "County": "sample string 19",
      "Territory": "sample string 20",
      "ControlNum": "sample string 21",
      "SalespersonId": "sample string 22",
      "SalespersonFirstName": "sample string 23",
      "SalespersonLastName": "sample string 24",
      "SalespersonName": "sample string 23 sample string 24",
      "CropId": "sample string 25",
      "CropGuid": "86a5e7e9-92a7-4d7e-b952-6ee7158cb66d",
      "CustPo": "sample string 26",
      "AuthAgent": "sample string 27",
      "AaRelatedHow": "sample string 28",
      "AaAddr1": "sample string 29",
      "AaAddr2": "sample string 30",
      "AaCity": "sample string 31",
      "AaState": "sample string 32",
      "AaZip": "sample string 33",
      "CustomApplied": true,
      "AddComments": "sample string 35",
      "Acres": 36.1,
      "UnitType": 0,
      "UnitTypeAsString": "A",
      "FedPermit": "sample string 37",
      "FedPermitExpDate": "2022-12-08T02:17:02.4660976+00:00",
      "DiscOpt": "sample string 38",
      "PaymentTermDescription": "sample string 39",
      "ProcessedYn": true,
      "Location": "sample string 41",
      "LocationGuid": "15a29f29-ef8f-45d1-9907-f67ba5b4b920",
      "LocationName": "sample string 43",
      "OfferExpiresDate": "2022-12-08T02:17:02.4660976+00:00",
      "PaymentDate": "2022-12-08T02:17:02.4660976+00:00",
      "CheckNumber": "sample string 44",
      "StartDate": "2022-12-08T02:17:02.4660976+00:00",
      "ExpirationDate": "2022-12-08T02:17:02.4660976+00:00",
      "AddedByUserId": "sample string 45",
      "AddedByUserGuid": "9c3de50c-8690-4a22-906f-1f8b741107f0",
      "AddedByUserFirstName": "sample string 46",
      "AddedByUserLastName": "sample string 47",
      "AddedByUserName": "sample string 46 sample string 47",
      "LastEditedUserId": "sample string 48",
      "LastEditedUserGuid": "3de73f49-826c-4b1b-aa26-e279a3e75db3",
      "LastEditedUserFirstName": "sample string 49",
      "LastEditedUserLastName": "sample string 50",
      "LastEditedUserName": "sample string 49 sample string 50",
      "Splits": [
        {
          "SalesOrderSplitGUID": "92dab51f-0140-4b3e-9c6b-77d443787c1a",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "ae966317-e4e4-4bf2-8980-81a373cee9a9",
          "CustomerFirstName": "sample string 5",
          "CustomerLastName": "sample string 6",
          "CustomerName": "sample string 5 sample string 6",
          "PercentS1": 7.1,
          "PercentS2": 8.1,
          "PercentS3": 9.1,
          "LineItems": [
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        },
        {
          "SalesOrderSplitGUID": "92dab51f-0140-4b3e-9c6b-77d443787c1a",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "ae966317-e4e4-4bf2-8980-81a373cee9a9",
          "CustomerFirstName": "sample string 5",
          "CustomerLastName": "sample string 6",
          "CustomerName": "sample string 5 sample string 6",
          "PercentS1": 7.1,
          "PercentS2": 8.1,
          "PercentS3": 9.1,
          "LineItems": [
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        }
      ],
      "Applications": [
        {
          "SalesOrderApplicationGUID": "3ee35358-cbba-4113-aa8b-744501211f44",
          "LineItem": 2,
          "ApplicatorId": "sample string 3",
          "ApplicatorFirstName": "sample string 4",
          "ApplicatorLastName": "sample string 5",
          "ApplicatorName": "sample string 4 sample string 5",
          "VehicleId": "sample string 6",
          "Vehicledescription": "sample string 7",
          "Acres": 8.1
        },
        {
          "SalesOrderApplicationGUID": "3ee35358-cbba-4113-aa8b-744501211f44",
          "LineItem": 2,
          "ApplicatorId": "sample string 3",
          "ApplicatorFirstName": "sample string 4",
          "ApplicatorLastName": "sample string 5",
          "ApplicatorName": "sample string 4 sample string 5",
          "VehicleId": "sample string 6",
          "Vehicledescription": "sample string 7",
          "Acres": 8.1
        }
      ],
      "Discounts": [
        {
          "SalesOrderDiscountGUID": "ff0f1ff8-3153-4c62-a502-a177505684ac",
          "LineItem": 3,
          "DiscountName": "sample string 4",
          "Quantity": 5.1,
          "Total": 6.1,
          "Manual": 7.1,
          "Rate": 8.1,
          "DiscountType": 0,
          "DiscountTypeAsString": "Percent",
          "SalesOrderDiscountKey": 9
        },
        {
          "SalesOrderDiscountGUID": "ff0f1ff8-3153-4c62-a502-a177505684ac",
          "LineItem": 3,
          "DiscountName": "sample string 4",
          "Quantity": 5.1,
          "Total": 6.1,
          "Manual": 7.1,
          "Rate": 8.1,
          "DiscountType": 0,
          "DiscountTypeAsString": "Percent",
          "SalesOrderDiscountKey": 9
        }
      ]
    },
    {
      "SalesOrderGUID": "2bf01c9c-29a5-4571-9c3e-012dd97dae6a",
      "OrderNum": 8,
      "OrderDate": "2022-12-08T02:17:02.4660976+00:00",
      "FieldOwnerId": "sample string 10",
      "FieldOwnerGuid": "fa128bf6-8862-4550-bf1b-cf682851d33b",
      "FieldOwnerFirstName": "sample string 11",
      "FieldOwnerLastName": "sample string 12",
      "FieldOwnerName": "sample string 11 sample string 12",
      "FieldId": "sample string 13",
      "FieldGuid": "796ef767-fb8a-438e-a488-fe0f93c564cf",
      "FieldDescription": "sample string 14",
      "BillComment": "sample string 15",
      "EstDelDate": "2022-12-08T02:17:02.4660976+00:00",
      "PickupOrDeliver": 0,
      "PickupOrDeliverAsString": "Pickup",
      "Status": 0,
      "StatusAsString": "Offered",
      "ShipVia": "sample string 17",
      "ShipTo": "sample string 18",
      "County": "sample string 19",
      "Territory": "sample string 20",
      "ControlNum": "sample string 21",
      "SalespersonId": "sample string 22",
      "SalespersonFirstName": "sample string 23",
      "SalespersonLastName": "sample string 24",
      "SalespersonName": "sample string 23 sample string 24",
      "CropId": "sample string 25",
      "CropGuid": "86a5e7e9-92a7-4d7e-b952-6ee7158cb66d",
      "CustPo": "sample string 26",
      "AuthAgent": "sample string 27",
      "AaRelatedHow": "sample string 28",
      "AaAddr1": "sample string 29",
      "AaAddr2": "sample string 30",
      "AaCity": "sample string 31",
      "AaState": "sample string 32",
      "AaZip": "sample string 33",
      "CustomApplied": true,
      "AddComments": "sample string 35",
      "Acres": 36.1,
      "UnitType": 0,
      "UnitTypeAsString": "A",
      "FedPermit": "sample string 37",
      "FedPermitExpDate": "2022-12-08T02:17:02.4660976+00:00",
      "DiscOpt": "sample string 38",
      "PaymentTermDescription": "sample string 39",
      "ProcessedYn": true,
      "Location": "sample string 41",
      "LocationGuid": "15a29f29-ef8f-45d1-9907-f67ba5b4b920",
      "LocationName": "sample string 43",
      "OfferExpiresDate": "2022-12-08T02:17:02.4660976+00:00",
      "PaymentDate": "2022-12-08T02:17:02.4660976+00:00",
      "CheckNumber": "sample string 44",
      "StartDate": "2022-12-08T02:17:02.4660976+00:00",
      "ExpirationDate": "2022-12-08T02:17:02.4660976+00:00",
      "AddedByUserId": "sample string 45",
      "AddedByUserGuid": "9c3de50c-8690-4a22-906f-1f8b741107f0",
      "AddedByUserFirstName": "sample string 46",
      "AddedByUserLastName": "sample string 47",
      "AddedByUserName": "sample string 46 sample string 47",
      "LastEditedUserId": "sample string 48",
      "LastEditedUserGuid": "3de73f49-826c-4b1b-aa26-e279a3e75db3",
      "LastEditedUserFirstName": "sample string 49",
      "LastEditedUserLastName": "sample string 50",
      "LastEditedUserName": "sample string 49 sample string 50",
      "Splits": [
        {
          "SalesOrderSplitGUID": "92dab51f-0140-4b3e-9c6b-77d443787c1a",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "ae966317-e4e4-4bf2-8980-81a373cee9a9",
          "CustomerFirstName": "sample string 5",
          "CustomerLastName": "sample string 6",
          "CustomerName": "sample string 5 sample string 6",
          "PercentS1": 7.1,
          "PercentS2": 8.1,
          "PercentS3": 9.1,
          "LineItems": [
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        },
        {
          "SalesOrderSplitGUID": "92dab51f-0140-4b3e-9c6b-77d443787c1a",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "ae966317-e4e4-4bf2-8980-81a373cee9a9",
          "CustomerFirstName": "sample string 5",
          "CustomerLastName": "sample string 6",
          "CustomerName": "sample string 5 sample string 6",
          "PercentS1": 7.1,
          "PercentS2": 8.1,
          "PercentS3": 9.1,
          "LineItems": [
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "74b00cf1-8de0-4128-b014-450d526f01cd",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "e4d45f28-8695-46af-92af-cfbc31ac988d",
              "ProductDescription": "sample string 6",
              "Quantity": 7.1,
              "QuantityUnits": "sample string 8",
              "Price": 9.1,
              "PriceUnits": "sample string 10",
              "QuantityToPricingRatio": 11.1,
              "PriceLevel": 0,
              "PriceLevelDescription": "sample string 12",
              "SplitNum": 13,
              "SplitPercent": 14.1,
              "LotNumber": "sample string 15",
              "CropCode": "sample string 17",
              "CropCodeGuid": "a38213c8-fa33-4292-9138-d38fc2133288",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        }
      ],
      "Applications": [
        {
          "SalesOrderApplicationGUID": "3ee35358-cbba-4113-aa8b-744501211f44",
          "LineItem": 2,
          "ApplicatorId": "sample string 3",
          "ApplicatorFirstName": "sample string 4",
          "ApplicatorLastName": "sample string 5",
          "ApplicatorName": "sample string 4 sample string 5",
          "VehicleId": "sample string 6",
          "Vehicledescription": "sample string 7",
          "Acres": 8.1
        },
        {
          "SalesOrderApplicationGUID": "3ee35358-cbba-4113-aa8b-744501211f44",
          "LineItem": 2,
          "ApplicatorId": "sample string 3",
          "ApplicatorFirstName": "sample string 4",
          "ApplicatorLastName": "sample string 5",
          "ApplicatorName": "sample string 4 sample string 5",
          "VehicleId": "sample string 6",
          "Vehicledescription": "sample string 7",
          "Acres": 8.1
        }
      ],
      "Discounts": [
        {
          "SalesOrderDiscountGUID": "ff0f1ff8-3153-4c62-a502-a177505684ac",
          "LineItem": 3,
          "DiscountName": "sample string 4",
          "Quantity": 5.1,
          "Total": 6.1,
          "Manual": 7.1,
          "Rate": 8.1,
          "DiscountType": 0,
          "DiscountTypeAsString": "Percent",
          "SalesOrderDiscountKey": 9
        },
        {
          "SalesOrderDiscountGUID": "ff0f1ff8-3153-4c62-a502-a177505684ac",
          "LineItem": 3,
          "DiscountName": "sample string 4",
          "Quantity": 5.1,
          "Total": 6.1,
          "Manual": 7.1,
          "Rate": 8.1,
          "DiscountType": 0,
          "DiscountTypeAsString": "Percent",
          "SalesOrderDiscountKey": 9
        }
      ]
    }
  ]
}

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 'LastEditedUserName' in type 'SSI.plbl.ClsSalesOrder'.

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 'LastEditedUserName' in type 'SSI.plbl.ClsSalesOrder'.