POST ScaleInterface/PostGrainScaleInterfaceCommodityTransfer

Creates a commodity transfer scale interface record

Request Information

URI Parameters

Body Parameters

The request object used to create the database entry.

ClsGrainScaleInterfaceCommodityTransfer
NameDescriptionTypeAdditional Information
CommodityTransferIsOutbound

Indication on if the Commodity Transfer is Outbound or Inbound to the location of the transaction

boolean

Must be 0, 1, True, or False

TicketGUID

The GUID of the Scale Interface Tranaction.

globally unique identifier
TicketNum

The ticket number that displayed throughout Agvance

string

Required

Max length: 10

LocationId

The Location ID of the transaction

string

Required

Max length: 6

CommodityId

The Commodity ID of the transaction

string

Required

Max length: 6

TicketDate

The date of the scale ticket transaction (Date portion only)

date

Required

CustomerId

The ID of the Customer

string

Required

Max length: 6

CashPrice

Spot cash price for the ticket

decimal number

Cannot be negative

Max of 4 decimal places

GrossWeight

Gross Weight

integer

Required

Cannot be negative

GrossWeightCaptureDateTime

The local date and time that the Gross Weight was captured

date
TareWeight

Tare Weight

integer

Required

Cannot be negative

TareWeightCaptureDateTime

The local date and time that the Tare Weight was captured

date
NetWeight

Net Weight

integer

Required

Cannot be negative

GrossUnits

Gross amount in commodity units

decimal number

Required

Cannot be negative

Max of 4 decimal places

DockUnits

Dockage amount in commodity units

decimal number

Required

Cannot be negative

Max of 4 decimal places

ShrinkUnits

Shrink amount in commodity units

decimal number

Required

Cannot be negative

Max of 4 decimal places

NetUnits

Net amount in commodity units

decimal number

Required

Cannot be negative

Max of 4 decimal places

Comment

Comments for the ticket

string

Max length: 60

BinId

The ID of the bin for the ticket

string

Max length: 10

DriverOn

Indication of the driver being on the scale when it was weighed

boolean

Must be 0, 1, True, or False

VehicleDescription

The description of the vehicle that is delivering the commodity

string

Max length: 30

Axles

The number of axles of the vehicle delivering the commodity

integer

Cannot be negative

WeighMaster

Weighmaster of the ticket

string

Max length: 20

WeighMasterLicenseNumber

The license number of the Weighmaster

string

Max length: 10

FreightVendorId

The ID of the Freight Vendor

string

Max length: 10

FreightVendorName

The Name of the Freight Vendor - Allowed to exist without the FreightVendorId populated

string

Max length: 50

BillOfLadingNumber

BOL Number

string

Max length: 15

ReadyForTransfer

Ready for Transfer

boolean

Must be 0, 1, True, or False

MoistureTesterCalibrationNumber

Moisture tester calibration number

string

Max length: 20

IsApproximatedTestWeight

Indication of if the test weight value is an approximate test weight or not

boolean

Must be 0, 1, True, or False

CommodityVariety

The commodity variety of the commodity

string

Max length: 50

BolTruckLicenseNum

BOL Truck Plate #

string

Max length: 20

BolTrailerLicenseNum

BOL Trailer Plate #

string

Max length: 20

BolLastHauledCommodityName

BOL Last Hauled Commodity

string

Max length: 50

BolLastCleanoutDate

BOL Cleanout Date (Date portion only)

date
GradeFactors

List of grade factors for the ticket

Collection of ClsGrainScaleInterfaceGradeFactorApi
FreightCharges

List of freight charges for the ticket

Collection of ClsGrainScaleInterfaceFrtChargeApi

Request Formats

application/json, text/json

Sample:
{
  "CommodityTransferIsOutbound": true,
  "TicketGUID": "d7fc7bee-104f-486a-88d4-26a2c0e41381",
  "TicketNum": "sample string 6",
  "LocationId": "sample string 7",
  "CommodityId": "sample string 8",
  "TicketDate": "2024-11-21T09:51:50.4717149+00:00",
  "CustomerId": "sample string 9",
  "CashPrice": 11.1,
  "GrossWeight": 12,
  "GrossWeightCaptureDateTime": "2024-11-21T09:51:50.4717149+00:00",
  "TareWeight": 14,
  "TareWeightCaptureDateTime": "2024-11-21T09:51:50.4717149+00:00",
  "NetWeight": 16,
  "GrossUnits": 17.1,
  "DockUnits": 18.1,
  "ShrinkUnits": 19.1,
  "NetUnits": 20.1,
  "Comment": "sample string 21",
  "BinId": "sample string 22",
  "DriverOn": true,
  "VehicleDescription": "sample string 24",
  "Axles": 25,
  "WeighMaster": "sample string 26",
  "WeighMasterLicenseNumber": "sample string 27",
  "FreightVendorId": "sample string 28",
  "FreightVendorName": "sample string 29",
  "BillOfLadingNumber": "sample string 30",
  "ReadyForTransfer": true,
  "MoistureTesterCalibrationNumber": "sample string 33",
  "IsApproximatedTestWeight": true,
  "CommodityVariety": "sample string 35",
  "BolTruckLicenseNum": "sample string 36",
  "BolTrailerLicenseNum": "sample string 37",
  "BolLastHauledCommodityName": "sample string 38",
  "BolLastCleanoutDate": "2024-11-21T09:51:50.4717149+00:00",
  "GradeFactors": [
    {
      "GradeFactorId": "sample string 2",
      "Value": 1.1
    },
    {
      "GradeFactorId": "sample string 2",
      "Value": 1.1
    }
  ],
  "FreightCharges": [
    {
      "FreightVendorId": "sample string 2",
      "FreightVendorName": "sample string 3",
      "Rate": 1.1,
      "UseGrossUnits": true
    },
    {
      "FreightVendorId": "sample string 2",
      "FreightVendorName": "sample string 3",
      "Rate": 1.1,
      "UseGrossUnits": true
    }
  ]
}

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 'FreightVendorNameReadOnly' in type 'SSI.clsSIScaleTicket+ClsGrainScaleInterfaceApi+ClsGrainScaleInterfaceFrtChargeApi'.

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 'FreightVendorNameReadOnly' in type 'SSI.clsSIScaleTicket+ClsGrainScaleInterfaceApi+ClsGrainScaleInterfaceFrtChargeApi'.

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

Response Information

Resource Description

Creates a commodity transfer scale interface record

AgvScaleInterfaceCommodityTransfer
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
WarningList

List of warning messages of the API call.

Collection of string
Count

Number of results returned.

string
Data

List of Properties and Values returned for each commodity transfer scale interface record that matches the request.

Collection of ClsGrainScaleInterfaceCommodityTransfer

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": [
    {
      "CommodityTransferIsOutbound": true,
      "TicketGUID": "58e7e523-d6c4-491e-b151-6498f5ff4cde",
      "TicketNum": "sample string 6",
      "LocationId": "sample string 7",
      "CommodityId": "sample string 8",
      "TicketDate": "2024-11-21T09:51:50.4857127+00:00",
      "CustomerId": "sample string 9",
      "CashPrice": 11.1,
      "GrossWeight": 12,
      "GrossWeightCaptureDateTime": "2024-11-21T09:51:50.4857127+00:00",
      "TareWeight": 14,
      "TareWeightCaptureDateTime": "2024-11-21T09:51:50.4857127+00:00",
      "NetWeight": 16,
      "GrossUnits": 17.1,
      "DockUnits": 18.1,
      "ShrinkUnits": 19.1,
      "NetUnits": 20.1,
      "Comment": "sample string 21",
      "BinId": "sample string 22",
      "DriverOn": true,
      "VehicleDescription": "sample string 24",
      "Axles": 25,
      "WeighMaster": "sample string 26",
      "WeighMasterLicenseNumber": "sample string 27",
      "FreightVendorId": "sample string 28",
      "FreightVendorName": "sample string 29",
      "BillOfLadingNumber": "sample string 30",
      "ReadyForTransfer": true,
      "MoistureTesterCalibrationNumber": "sample string 33",
      "IsApproximatedTestWeight": true,
      "CommodityVariety": "sample string 35",
      "BolTruckLicenseNum": "sample string 36",
      "BolTrailerLicenseNum": "sample string 37",
      "BolLastHauledCommodityName": "sample string 38",
      "BolLastCleanoutDate": "2024-11-21T09:51:50.4857127+00:00",
      "GradeFactors": [
        {
          "GradeFactorId": "sample string 2",
          "Value": 1.1
        },
        {
          "GradeFactorId": "sample string 2",
          "Value": 1.1
        }
      ],
      "FreightCharges": [
        {
          "FreightVendorId": "sample string 2",
          "FreightVendorName": "sample string 3",
          "Rate": 1.1,
          "UseGrossUnits": true
        },
        {
          "FreightVendorId": "sample string 2",
          "FreightVendorName": "sample string 3",
          "Rate": 1.1,
          "UseGrossUnits": true
        }
      ]
    },
    {
      "CommodityTransferIsOutbound": true,
      "TicketGUID": "58e7e523-d6c4-491e-b151-6498f5ff4cde",
      "TicketNum": "sample string 6",
      "LocationId": "sample string 7",
      "CommodityId": "sample string 8",
      "TicketDate": "2024-11-21T09:51:50.4857127+00:00",
      "CustomerId": "sample string 9",
      "CashPrice": 11.1,
      "GrossWeight": 12,
      "GrossWeightCaptureDateTime": "2024-11-21T09:51:50.4857127+00:00",
      "TareWeight": 14,
      "TareWeightCaptureDateTime": "2024-11-21T09:51:50.4857127+00:00",
      "NetWeight": 16,
      "GrossUnits": 17.1,
      "DockUnits": 18.1,
      "ShrinkUnits": 19.1,
      "NetUnits": 20.1,
      "Comment": "sample string 21",
      "BinId": "sample string 22",
      "DriverOn": true,
      "VehicleDescription": "sample string 24",
      "Axles": 25,
      "WeighMaster": "sample string 26",
      "WeighMasterLicenseNumber": "sample string 27",
      "FreightVendorId": "sample string 28",
      "FreightVendorName": "sample string 29",
      "BillOfLadingNumber": "sample string 30",
      "ReadyForTransfer": true,
      "MoistureTesterCalibrationNumber": "sample string 33",
      "IsApproximatedTestWeight": true,
      "CommodityVariety": "sample string 35",
      "BolTruckLicenseNum": "sample string 36",
      "BolTrailerLicenseNum": "sample string 37",
      "BolLastHauledCommodityName": "sample string 38",
      "BolLastCleanoutDate": "2024-11-21T09:51:50.4857127+00:00",
      "GradeFactors": [
        {
          "GradeFactorId": "sample string 2",
          "Value": 1.1
        },
        {
          "GradeFactorId": "sample string 2",
          "Value": 1.1
        }
      ],
      "FreightCharges": [
        {
          "FreightVendorId": "sample string 2",
          "FreightVendorName": "sample string 3",
          "Rate": 1.1,
          "UseGrossUnits": true
        },
        {
          "FreightVendorId": "sample string 2",
          "FreightVendorName": "sample string 3",
          "Rate": 1.1,
          "UseGrossUnits": true
        }
      ]
    }
  ]
}

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 'FreightVendorNameReadOnly' in type 'SSI.clsSIScaleTicket+ClsGrainScaleInterfaceApi+ClsGrainScaleInterfaceFrtChargeApi'.

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 'FreightVendorNameReadOnly' in type 'SSI.clsSIScaleTicket+ClsGrainScaleInterfaceApi+ClsGrainScaleInterfaceFrtChargeApi'.