POST GrainReports/GetGrainBankStatementReport

Generate a Grain Bank Statement report

Request Information

URI Parameters

Body Parameters

The request object used to create report

GrainBankStatementReportRequestBody
NameDescriptionTypeAdditional Information
CustomerID

Agvance Customer ID

string

Required

Max length: 6

StartDate

Start Date

string

Required

EndDate

End Date

string

Required

CurrentLocation

Current Location for report header when PrintCurrentLocationAsCurrentAddress is true

string

Max length: 6

CondenseReport

Condense Report

boolean
ZeroBalanceWithActivity

Zero Balance With Activity

boolean
CombineLocationsUnderCommodity

Combine Locations Under Commodity

boolean
PrintCurrentLocationAsCurrentAddress

Print Current Location as Current Address

boolean
Locations

Locations

Collection of string
Commodities

Commodities

Collection of string

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": "sample string 1",
  "StartDate": "sample string 2",
  "EndDate": "sample string 3",
  "CurrentLocation": "sample string 4",
  "CondenseReport": true,
  "ZeroBalanceWithActivity": true,
  "CombineLocationsUnderCommodity": true,
  "PrintCurrentLocationAsCurrentAddress": true,
  "Locations": [
    "sample string 1",
    "sample string 2"
  ],
  "Commodities": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<GrainBankStatementReportRequestBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.ApiReports">
  <CombineLocationsUnderCommodity>true</CombineLocationsUnderCommodity>
  <Commodities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Commodities>
  <CondenseReport>true</CondenseReport>
  <CurrentLocation>sample string 4</CurrentLocation>
  <CustomerID>sample string 1</CustomerID>
  <EndDate>sample string 3</EndDate>
  <Locations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Locations>
  <PrintCurrentLocationAsCurrentAddress>true</PrintCurrentLocationAsCurrentAddress>
  <StartDate>sample string 2</StartDate>
  <ZeroBalanceWithActivity>true</ZeroBalanceWithActivity>
</GrainBankStatementReportRequestBody>

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

Response Information

Resource Description

Generate a Grain Bank Statement report

AgvGrainBankStatementReport
NameDescriptionTypeAdditional Information
Status

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

string
Message

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

string
ErrorList

List of errors from the API

Collection of string
WarningList

List of warnings from the API

Collection of string
S3FileName

The S3 file that was generated for the requested Grain Bank Statement Report

string

Will be "null" when the status is not success.

PreSignedUrl

The presigned url of the file

string

Will be "null" when the S3FileName is not populated.

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"
  ],
  "S3FileName": "sample string 3",
  "PreSignedUrl": "sample string 4"
}

application/xml, text/xml

Sample:
<AgvGrainBankStatementReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.GrainReports">
  <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>
  <PreSignedUrl>sample string 4</PreSignedUrl>
  <S3FileName>sample string 3</S3FileName>
  <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>
</AgvGrainBankStatementReport>