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

ContractFormat

The Booking Contract that is selected when the Sales Order is created. If provided it must already exist. Default is empty string

string

Max length: 40

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": "8ee12f8f-68a4-4ef1-965a-526bf8445c6d",
  "FieldId": "sample string 7",
  "FieldGuid": "19725f8c-3109-40b1-b047-035a2232706f",
  "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": "6027a030-bc97-48dc-88e1-5601a23c690c",
  "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": "8340be53-e700-4e5e-9f0d-389d718fb8ad",
  "OfferExpiresDate": "sample string 32",
  "PaymentDate": "sample string 33",
  "CheckNumber": "sample string 34",
  "StartDate": "sample string 35",
  "ExpirationDate": "sample string 36",
  "ContractFormat": "sample string 37",
  "Splits": [
    {
      "CustId": "sample string 1",
      "CustomerGuid": "99e57cc1-4774-4a0a-bb54-fe1f6d73348f",
      "PercentS1": 2.1,
      "PercentS2": 3.1,
      "PercentS3": 4.1,
      "LineItems": [
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "4c28b157-66ea-4a26-a06d-dedd4c71fd7c",
          "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": "58d73074-b99d-46d2-9dfb-e3af9a46928d",
          "AllocationNumber": 12
        },
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "4c28b157-66ea-4a26-a06d-dedd4c71fd7c",
          "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": "58d73074-b99d-46d2-9dfb-e3af9a46928d",
          "AllocationNumber": 12
        }
      ]
    },
    {
      "CustId": "sample string 1",
      "CustomerGuid": "99e57cc1-4774-4a0a-bb54-fe1f6d73348f",
      "PercentS1": 2.1,
      "PercentS2": 3.1,
      "PercentS3": 4.1,
      "LineItems": [
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "4c28b157-66ea-4a26-a06d-dedd4c71fd7c",
          "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": "58d73074-b99d-46d2-9dfb-e3af9a46928d",
          "AllocationNumber": 12
        },
        {
          "DeptId": "sample string 1",
          "ProdId": "sample string 2",
          "ProductGuid": "4c28b157-66ea-4a26-a06d-dedd4c71fd7c",
          "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": "58d73074-b99d-46d2-9dfb-e3af9a46928d",
          "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>
  <ContractFormat>sample string 37</ContractFormat>
  <ControlNum>sample string 14</ControlNum>
  <County>sample string 12</County>
  <CropGuid>6027a030-bc97-48dc-88e1-5601a23c690c</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>19725f8c-3109-40b1-b047-035a2232706f</FieldGuid>
  <FieldId>sample string 7</FieldId>
  <FieldOwnerGuid>8ee12f8f-68a4-4ef1-965a-526bf8445c6d</FieldOwnerGuid>
  <FieldOwnerId>sample string 6</FieldOwnerId>
  <Location>sample string 31</Location>
  <LocationGuid>8340be53-e700-4e5e-9f0d-389d718fb8ad</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>99e57cc1-4774-4a0a-bb54-fe1f6d73348f</CustomerGuid>
      <LineItems>
        <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
          <AllocationNumber>12</AllocationNumber>
          <CropCode>sample string 9</CropCode>
          <CropCodeGuid>58d73074-b99d-46d2-9dfb-e3af9a46928d</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>4c28b157-66ea-4a26-a06d-dedd4c71fd7c</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>58d73074-b99d-46d2-9dfb-e3af9a46928d</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>4c28b157-66ea-4a26-a06d-dedd4c71fd7c</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>99e57cc1-4774-4a0a-bb54-fe1f6d73348f</CustomerGuid>
      <LineItems>
        <ClsSalesOrder.ClsSalesOrderAdd.ClsSalesOrderSplitAdd.ClsSalesOrderLineItemAdd>
          <AllocationNumber>12</AllocationNumber>
          <CropCode>sample string 9</CropCode>
          <CropCodeGuid>58d73074-b99d-46d2-9dfb-e3af9a46928d</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>4c28b157-66ea-4a26-a06d-dedd4c71fd7c</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>58d73074-b99d-46d2-9dfb-e3af9a46928d</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>4c28b157-66ea-4a26-a06d-dedd4c71fd7c</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": "fc4a06ca-5775-46c1-8dd4-7b99b02868d3",
      "OrderNum": 8,
      "OrderDate": "2024-11-21T09:33:56.8298734+00:00",
      "FieldOwnerId": "sample string 10",
      "FieldOwnerGuid": "539ec6c7-188b-42d1-b849-725a8844fb57",
      "FieldOwnerFirstName": "sample string 11",
      "FieldOwnerLastName": "sample string 12",
      "FieldOwnerName": "sample string 11 sample string 12",
      "FieldId": "sample string 13",
      "FieldGuid": "9fb9d919-0c42-4db9-8912-b173108e4142",
      "FieldDescription": "sample string 14",
      "BillComment": "sample string 15",
      "EstDelDate": "2024-11-21T09:33:56.8298734+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": "a52c2256-159b-4bf6-9a8a-a96a564f944d",
      "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": "2024-11-21T09:33:56.8298734+00:00",
      "DiscOpt": "sample string 38",
      "PaymentTermDescription": "sample string 39",
      "ProcessedYn": true,
      "Location": "sample string 41",
      "LocationGuid": "b1a6d4a1-d44e-49a4-b742-eb5e121878e4",
      "LocationName": "sample string 43",
      "OfferExpiresDate": "2024-11-21T09:33:56.8298734+00:00",
      "PaymentDate": "2024-11-21T09:33:56.8298734+00:00",
      "CheckNumber": "sample string 44",
      "StartDate": "2024-11-21T09:33:56.8298734+00:00",
      "ExpirationDate": "2024-11-21T09:33:56.8298734+00:00",
      "AddedByUserId": "sample string 45",
      "AddedByUserGuid": "7d92ab30-8f14-460f-b6b2-896a67a0c0ac",
      "AddedByUserFirstName": "sample string 46",
      "AddedByUserLastName": "sample string 47",
      "AddedByUserName": "sample string 46 sample string 47",
      "LastEditedUserId": "sample string 48",
      "LastEditedUserGuid": "3441887f-696d-4e94-a4de-e2875ef54811",
      "LastEditedUserFirstName": "sample string 49",
      "LastEditedUserLastName": "sample string 50",
      "LastEditedUserName": "sample string 49 sample string 50",
      "ContractFormat": "sample string 51",
      "Splits": [
        {
          "SalesOrderSplitGUID": "ece80aa1-a955-412e-82fe-b6fba6704539",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "b0c7890e-8c98-484b-9117-4ec369b95108",
          "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": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        },
        {
          "SalesOrderSplitGUID": "ece80aa1-a955-412e-82fe-b6fba6704539",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "b0c7890e-8c98-484b-9117-4ec369b95108",
          "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": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        }
      ],
      "Applications": [
        {
          "SalesOrderApplicationGUID": "ec97241f-1eeb-4372-a10b-0c12aec003ce",
          "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": "ec97241f-1eeb-4372-a10b-0c12aec003ce",
          "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": "366677fa-1f60-4e26-9aad-ed2e8e33bfbd",
          "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": "366677fa-1f60-4e26-9aad-ed2e8e33bfbd",
          "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": "fc4a06ca-5775-46c1-8dd4-7b99b02868d3",
      "OrderNum": 8,
      "OrderDate": "2024-11-21T09:33:56.8298734+00:00",
      "FieldOwnerId": "sample string 10",
      "FieldOwnerGuid": "539ec6c7-188b-42d1-b849-725a8844fb57",
      "FieldOwnerFirstName": "sample string 11",
      "FieldOwnerLastName": "sample string 12",
      "FieldOwnerName": "sample string 11 sample string 12",
      "FieldId": "sample string 13",
      "FieldGuid": "9fb9d919-0c42-4db9-8912-b173108e4142",
      "FieldDescription": "sample string 14",
      "BillComment": "sample string 15",
      "EstDelDate": "2024-11-21T09:33:56.8298734+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": "a52c2256-159b-4bf6-9a8a-a96a564f944d",
      "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": "2024-11-21T09:33:56.8298734+00:00",
      "DiscOpt": "sample string 38",
      "PaymentTermDescription": "sample string 39",
      "ProcessedYn": true,
      "Location": "sample string 41",
      "LocationGuid": "b1a6d4a1-d44e-49a4-b742-eb5e121878e4",
      "LocationName": "sample string 43",
      "OfferExpiresDate": "2024-11-21T09:33:56.8298734+00:00",
      "PaymentDate": "2024-11-21T09:33:56.8298734+00:00",
      "CheckNumber": "sample string 44",
      "StartDate": "2024-11-21T09:33:56.8298734+00:00",
      "ExpirationDate": "2024-11-21T09:33:56.8298734+00:00",
      "AddedByUserId": "sample string 45",
      "AddedByUserGuid": "7d92ab30-8f14-460f-b6b2-896a67a0c0ac",
      "AddedByUserFirstName": "sample string 46",
      "AddedByUserLastName": "sample string 47",
      "AddedByUserName": "sample string 46 sample string 47",
      "LastEditedUserId": "sample string 48",
      "LastEditedUserGuid": "3441887f-696d-4e94-a4de-e2875ef54811",
      "LastEditedUserFirstName": "sample string 49",
      "LastEditedUserLastName": "sample string 50",
      "LastEditedUserName": "sample string 49 sample string 50",
      "ContractFormat": "sample string 51",
      "Splits": [
        {
          "SalesOrderSplitGUID": "ece80aa1-a955-412e-82fe-b6fba6704539",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "b0c7890e-8c98-484b-9117-4ec369b95108",
          "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": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        },
        {
          "SalesOrderSplitGUID": "ece80aa1-a955-412e-82fe-b6fba6704539",
          "SplitNum": 2,
          "CustId": "sample string 3",
          "CustomerGuid": "b0c7890e-8c98-484b-9117-4ec369b95108",
          "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": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            },
            {
              "SalesOrderLineItemGUID": "4d9125d3-e877-4567-a58f-7c679e7ce479",
              "LineItem": 2,
              "DeptId": "sample string 3",
              "ProdId": "sample string 4",
              "ProductGuid": "2a43a015-4973-40a0-92bc-3a5576f74cc9",
              "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": "34e26c02-2c94-4704-963f-110d7e347cfb",
              "AllocationNumber": 20,
              "ProdIdAlternate": "sample string 22"
            }
          ]
        }
      ],
      "Applications": [
        {
          "SalesOrderApplicationGUID": "ec97241f-1eeb-4372-a10b-0c12aec003ce",
          "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": "ec97241f-1eeb-4372-a10b-0c12aec003ce",
          "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": "366677fa-1f60-4e26-9aad-ed2e8e33bfbd",
          "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": "366677fa-1f60-4e26-9aad-ed2e8e33bfbd",
          "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'.