POST PaperClip/PostAssemblySTLM

Create an Assembly for STLM ONLY

Request Information

URI Parameters

Body Parameters

ClsGrPaperclipAdd
NameDescriptionTypeAdditional Information
PaperclipId

Assembly Number on the Assembly

string

Max length: 20

LocationGuid

Location Guid on the Assembly

globally unique identifier

Required

CommodityGuid

Commodity Guid on the Assembly

globally unique identifier

Required

DateEstablished

Date Established on the Assembly

string

Required

Format must be MM/dd/yyyy

FarmGuid

Farm Guid on the Assembly

globally unique identifier
FieldGuid

Field Guid on the Assembly

globally unique identifier
CropSeason

Crop Season on the Assembly

string

Max length: 20

LotNumber

Lot Number on the Assembly

string

Max length: 30

UnavailableForSelection

Determines if an Assembly is available for a selection

boolean
DefaultCashPrice

Cash Price on the Assembly

decimal number

Max of 4 decimal places

GrPaperclipDefSplits

List of Customer Splits on the Assembly

Collection of ClsGrPaperclipDefSplitsAdd

Required

GrPaperclipDefShrinks

List of Shrink Tables on the Assembly

Collection of ClsGrPaperclipDefShrinkAdd
GrPaperclipDefDocks

List of Dock Tables on the Assembly

Collection of ClsGrPaperclipDefDockAdd
GrPaperclipDefDryings

List of Drying Tables on the Assembly

Collection of ClsGrPaperclipDefDryingAdd
GrPaperclipDefPremDiscs

List of Premium Discounts on the Assembly

Collection of ClsGrPaperclipDefPremDiscAdd
GrPaperclipDefFrtCharges

List of Freight Charges on the Assembly

Collection of ClsGrPaperclipDefFrtChargesAdd
GrPaperclipComments

List of Comments on the Assembly

Collection of ClsGrPaperclipCommentAdd
GRPaperclipDefCustContOverride

List of Customer Contract Overrides on the Assembly

Collection of ClsGRPaperclipDefCustContOverrideAdd

Request Formats

application/json, text/json

Sample:
{
  "PaperclipId": "sample string 1",
  "LocationGuid": "10a77b64-a0af-41fd-b1df-a3fe3b28f35e",
  "CommodityGuid": "469f9e0a-c6e9-46dc-aa28-ac0eafa5305e",
  "DateEstablished": "sample string 4",
  "FarmGuid": "84e2a41f-328d-4d02-b4df-baab53517123",
  "FieldGuid": "e3259d84-ab88-4f69-9312-98bbadc31064",
  "CropSeason": "sample string 5",
  "LotNumber": "sample string 6",
  "UnavailableForSelection": true,
  "DefaultCashPrice": 1.1,
  "GrPaperclipDefSplits": [
    {
      "CustomerGuid": "3765d74f-e01c-4582-8dc1-bb1d6ca42cd5",
      "SplitPercent": 1.1,
      "Disposition": "sample string 3",
      "PurchaseContractGuid": "ebb478b1-57f3-4099-b3a9-7ef36cf77fd0",
      "ChargeScheduleGuid": "52a8d666-c4ed-4984-bdec-f2a8340a1330",
      "CondoYn": true,
      "FreightPercent": 1.1
    },
    {
      "CustomerGuid": "3765d74f-e01c-4582-8dc1-bb1d6ca42cd5",
      "SplitPercent": 1.1,
      "Disposition": "sample string 3",
      "PurchaseContractGuid": "ebb478b1-57f3-4099-b3a9-7ef36cf77fd0",
      "ChargeScheduleGuid": "52a8d666-c4ed-4984-bdec-f2a8340a1330",
      "CondoYn": true,
      "FreightPercent": 1.1
    }
  ],
  "GrPaperclipDefShrinks": [
    {
      "Disposition": "sample string 2",
      "ShrinkTabGuid": "e7bf041f-f961-4148-9795-f61b0df86295"
    },
    {
      "Disposition": "sample string 2",
      "ShrinkTabGuid": "e7bf041f-f961-4148-9795-f61b0df86295"
    }
  ],
  "GrPaperclipDefDocks": [
    {
      "Disposition": "sample string 2",
      "GrDockTabGuid": "f09e8132-2d16-4342-a6a3-c91c12bf6d8e"
    },
    {
      "Disposition": "sample string 2",
      "GrDockTabGuid": "f09e8132-2d16-4342-a6a3-c91c12bf6d8e"
    }
  ],
  "GrPaperclipDefDryings": [
    {
      "Disposition": "sample string 2",
      "PdTabGuid": "5e056b34-19e2-4284-9d30-36f8186be6e0"
    },
    {
      "Disposition": "sample string 2",
      "PdTabGuid": "5e056b34-19e2-4284-9d30-36f8186be6e0"
    }
  ],
  "GrPaperclipDefPremDiscs": [
    {
      "PdTabGuid": "38902365-4d81-4f7c-a6e8-2d8f15e11858"
    },
    {
      "PdTabGuid": "38902365-4d81-4f7c-a6e8-2d8f15e11858"
    }
  ],
  "GrPaperclipDefFrtCharges": [
    {
      "FreightVendorGuid": "848e203c-4dcb-4e19-89b7-fc9afd3a9597",
      "Rate": 3.1
    },
    {
      "FreightVendorGuid": "848e203c-4dcb-4e19-89b7-fc9afd3a9597",
      "Rate": 3.1
    }
  ],
  "GrPaperclipComments": [
    {
      "CommDate": "sample string 2",
      "Comment": "sample string 3"
    },
    {
      "CommDate": "sample string 2",
      "Comment": "sample string 3"
    }
  ],
  "GRPaperclipDefCustContOverride": [
    {
      "CustomerGuid": "9f2268d7-8695-426d-b2ea-44c5b2016696",
      "Disposition": "sample string 2"
    },
    {
      "CustomerGuid": "9f2268d7-8695-426d-b2ea-44c5b2016696",
      "Disposition": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ClsGrPaperclip.ClsGrPaperclipAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Grain">
  <CommodityGuid>469f9e0a-c6e9-46dc-aa28-ac0eafa5305e</CommodityGuid>
  <CropSeason>sample string 5</CropSeason>
  <DateEstablished>sample string 4</DateEstablished>
  <DefaultCashPrice>1.1</DefaultCashPrice>
  <FarmGuid>84e2a41f-328d-4d02-b4df-baab53517123</FarmGuid>
  <FieldGuid>e3259d84-ab88-4f69-9312-98bbadc31064</FieldGuid>
  <GRPaperclipDefCustContOverride>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGRPaperclipDefCustContOverrideAdd>
      <CustomerGuid>9f2268d7-8695-426d-b2ea-44c5b2016696</CustomerGuid>
      <Disposition>sample string 2</Disposition>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGRPaperclipDefCustContOverrideAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGRPaperclipDefCustContOverrideAdd>
      <CustomerGuid>9f2268d7-8695-426d-b2ea-44c5b2016696</CustomerGuid>
      <Disposition>sample string 2</Disposition>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGRPaperclipDefCustContOverrideAdd>
  </GRPaperclipDefCustContOverride>
  <GrPaperclipComments>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipCommentAdd>
      <CommDate>sample string 2</CommDate>
      <Comment>sample string 3</Comment>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipCommentAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipCommentAdd>
      <CommDate>sample string 2</CommDate>
      <Comment>sample string 3</Comment>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipCommentAdd>
  </GrPaperclipComments>
  <GrPaperclipDefDocks>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDockAdd>
      <Disposition>sample string 2</Disposition>
      <GrDockTabGuid>f09e8132-2d16-4342-a6a3-c91c12bf6d8e</GrDockTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDockAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDockAdd>
      <Disposition>sample string 2</Disposition>
      <GrDockTabGuid>f09e8132-2d16-4342-a6a3-c91c12bf6d8e</GrDockTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDockAdd>
  </GrPaperclipDefDocks>
  <GrPaperclipDefDryings>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDryingAdd>
      <Disposition>sample string 2</Disposition>
      <PdTabGuid>5e056b34-19e2-4284-9d30-36f8186be6e0</PdTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDryingAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDryingAdd>
      <Disposition>sample string 2</Disposition>
      <PdTabGuid>5e056b34-19e2-4284-9d30-36f8186be6e0</PdTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefDryingAdd>
  </GrPaperclipDefDryings>
  <GrPaperclipDefFrtCharges>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefFrtChargesAdd>
      <FreightVendorGuid>848e203c-4dcb-4e19-89b7-fc9afd3a9597</FreightVendorGuid>
      <Rate>3.1</Rate>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefFrtChargesAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefFrtChargesAdd>
      <FreightVendorGuid>848e203c-4dcb-4e19-89b7-fc9afd3a9597</FreightVendorGuid>
      <Rate>3.1</Rate>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefFrtChargesAdd>
  </GrPaperclipDefFrtCharges>
  <GrPaperclipDefPremDiscs>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefPremDiscAdd>
      <PdTabGuid>38902365-4d81-4f7c-a6e8-2d8f15e11858</PdTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefPremDiscAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefPremDiscAdd>
      <PdTabGuid>38902365-4d81-4f7c-a6e8-2d8f15e11858</PdTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefPremDiscAdd>
  </GrPaperclipDefPremDiscs>
  <GrPaperclipDefShrinks>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefShrinkAdd>
      <Disposition>sample string 2</Disposition>
      <ShrinkTabGuid>e7bf041f-f961-4148-9795-f61b0df86295</ShrinkTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefShrinkAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefShrinkAdd>
      <Disposition>sample string 2</Disposition>
      <ShrinkTabGuid>e7bf041f-f961-4148-9795-f61b0df86295</ShrinkTabGuid>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefShrinkAdd>
  </GrPaperclipDefShrinks>
  <GrPaperclipDefSplits>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefSplitsAdd>
      <ChargeScheduleGuid>52a8d666-c4ed-4984-bdec-f2a8340a1330</ChargeScheduleGuid>
      <CondoYn>true</CondoYn>
      <CustomerGuid>3765d74f-e01c-4582-8dc1-bb1d6ca42cd5</CustomerGuid>
      <Disposition>sample string 3</Disposition>
      <FreightPercent>1.1</FreightPercent>
      <PurchaseContractGuid>ebb478b1-57f3-4099-b3a9-7ef36cf77fd0</PurchaseContractGuid>
      <SplitPercent>1.1</SplitPercent>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefSplitsAdd>
    <ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefSplitsAdd>
      <ChargeScheduleGuid>52a8d666-c4ed-4984-bdec-f2a8340a1330</ChargeScheduleGuid>
      <CondoYn>true</CondoYn>
      <CustomerGuid>3765d74f-e01c-4582-8dc1-bb1d6ca42cd5</CustomerGuid>
      <Disposition>sample string 3</Disposition>
      <FreightPercent>1.1</FreightPercent>
      <PurchaseContractGuid>ebb478b1-57f3-4099-b3a9-7ef36cf77fd0</PurchaseContractGuid>
      <SplitPercent>1.1</SplitPercent>
    </ClsGrPaperclip.ClsGrPaperclipAdd.ClsGrPaperclipDefSplitsAdd>
  </GrPaperclipDefSplits>
  <LocationGuid>10a77b64-a0af-41fd-b1df-a3fe3b28f35e</LocationGuid>
  <LotNumber>sample string 6</LotNumber>
  <PaperclipId>sample string 1</PaperclipId>
  <UnavailableForSelection>true</UnavailableForSelection>
</ClsGrPaperclip.ClsGrPaperclipAdd>

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 'ClsGrPaperclipAdd'.

Response Information

Resource Description

Create an Assembly for STLM ONLY

AgvPaperClip
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
ErrorList

List of Error Messages returned by the api

Collection of string
WarningList

List of Warning Messages returned by the api

Collection of string
Count

Number of results returned

string
Data

Collection of ClsGrPaperClipAPI

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": [
    {
      "PaperClipId": "sample string 1",
      "LocationId": "sample string 2",
      "PaperClipGuid": "2cae420c-00b7-4a2a-9008-5d95bad97b54"
    },
    {
      "PaperClipId": "sample string 1",
      "LocationId": "sample string 2",
      "PaperClipGuid": "2cae420c-00b7-4a2a-9008-5d95bad97b54"
    }
  ]
}

application/xml, text/xml

Sample:
<AgvPaperClip xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.PaperClip">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SKY.Core.Grain">
    <d2p1:ClsGrPaperclip.ClsGrPaperClipAPI>
      <d2p1:LocationId>sample string 2</d2p1:LocationId>
      <d2p1:PaperClipGuid>2cae420c-00b7-4a2a-9008-5d95bad97b54</d2p1:PaperClipGuid>
      <d2p1:PaperClipId>sample string 1</d2p1:PaperClipId>
    </d2p1:ClsGrPaperclip.ClsGrPaperClipAPI>
    <d2p1:ClsGrPaperclip.ClsGrPaperClipAPI>
      <d2p1:LocationId>sample string 2</d2p1:LocationId>
      <d2p1:PaperClipGuid>2cae420c-00b7-4a2a-9008-5d95bad97b54</d2p1:PaperClipGuid>
      <d2p1:PaperClipId>sample string 1</d2p1:PaperClipId>
    </d2p1:ClsGrPaperclip.ClsGrPaperClipAPI>
  </Data>
  <ErrorList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorList>
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
  <WarningList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </WarningList>
</AgvPaperClip>