POST ApDisburse/Reprint

Reprint an AP disburse check.

Request Information

URI Parameters

Body Parameters

The AP Disburse object used to be reprinted.

clsApDisburseReprint
NameDescriptionTypeAdditional Information
VendorId

The Vendor ID of the disbursement to be reprinted.

string

Required

Max length: 10

CheckNum

The Check Number of the disbursement to be reprinted.

integer

Required

InvoiceNum

The invoice Number of the disbursement to be reprinted.

string

Required

Max length: 25

CheckDate

The date of the disbursement to be reprinted.

string

Required

Data type: DateTime

Format must be MM/dd/yyyy

NewCheckNum

If provided, the corresponding AP bill, AP payment and journal entry records will be linked to the new check #

integer
TopMargin

Can be used to match the Agvance User Setting for the top margin. If TopMargin is not provided, the top margin from the accounting preference will be used if it exists.

decimal number
CreateCheckAsTextFile

Tells the API to create a Text or PDF check. True = Text, False = PDF, Default = False

boolean

Request Formats

application/json, text/json

Sample:
{
  "VendorId": "sample string 1",
  "CheckNum": 2,
  "InvoiceNum": "sample string 3",
  "CheckDate": "sample string 4",
  "NewCheckNum": 5,
  "TopMargin": 1.1,
  "CreateCheckAsTextFile": true
}

application/xml, text/xml

Sample:
<APDisburseReprint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.AP">
  <CheckDate>sample string 4</CheckDate>
  <CheckNum>2</CheckNum>
  <CreateCheckAsTextFile>true</CreateCheckAsTextFile>
  <InvoiceNum>sample string 3</InvoiceNum>
  <NewCheckNum>5</NewCheckNum>
  <TopMargin>1.1</TopMargin>
  <VendorId>sample string 1</VendorId>
</APDisburseReprint>

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

Response Information

Resource Description

Reprint an AP disburse check.

AgvApDisburseReprint
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

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
S3FileName

The S3 file that was generated for the requested Delivered Grain 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:
<AgvApDisburseReprint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Vendor">
  <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>
</AgvApDisburseReprint>