POST Payment/PostBudgetPayment

Creates a new Budget payment on a memo invoice.

Request Information

URI Parameters

Body Parameters

Budget payment object used to create a new payment.

ClsBudgetPaymentAdd
NameDescriptionTypeAdditional Information
PaymentLocation

The Agvance location of the payment.

string

Required

Max length: 6

PaymentDate

The date of the payment.

string

Required

Data type: DateTime

Format must be MM/dd/yyyy

CustomerID

The Agvance customer ID the payment is for.

string

Required

Max length: 6

TotalPaymentAmount

The total amount of the payment.

decimal number

Required

Max length: 15

Max of 2 decimal places

Must be filled out and numeric

Description

The user entered notes about the payment.

string

Max length: 500

ControlNumber

The control number on the payment.

string

Max length: 10

BudgetPaymentRecordLineItemDetailsAdd

Collection of clsBudgetPaymentDetailsAdd

JSON list name must be BudgetPaymentRecordLineItemDetailsAdd.

BudgetPaymentRecordPayMethodsAdd

Collection of clsBudgetPaymentPayMethodsAdd

JSON list name must be BudgetPaymentRecordPayMethodsAdd.

Request Formats

application/json, text/json

Sample:
{
  "PaymentLocation": "sample string 4",
  "PaymentDate": "sample string 5",
  "CustomerID": "sample string 7",
  "TotalPaymentAmount": 8.1,
  "Description": "sample string 10",
  "ControlNumber": "sample string 17",
  "BudgetPaymentRecordLineItemDetailsAdd": [
    {
      "MemoInvoiceDate": "sample string 1",
      "MemoInvoiceNumber": 2,
      "MemoInvoiceLocation": "sample string 3",
      "PaymentAmount": 4.1
    },
    {
      "MemoInvoiceDate": "sample string 1",
      "MemoInvoiceNumber": 2,
      "MemoInvoiceLocation": "sample string 3",
      "PaymentAmount": 4.1
    }
  ],
  "BudgetPaymentRecordPayMethodsAdd": [
    {
      "PaymentMethod": "sample string 1",
      "Amount": 2.1,
      "Reference": "sample string 3"
    },
    {
      "PaymentMethod": "sample string 1",
      "Amount": 2.1,
      "Reference": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<BudgetPaymentRecordHeaderDetailsAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.AR.Payment">
  <BudgetPaymentRecordLineItemDetailsAdd>
    <BudgetPaymentDtAdd>
      <MemoInvoiceDate>sample string 1</MemoInvoiceDate>
      <MemoInvoiceLocation>sample string 3</MemoInvoiceLocation>
      <MemoInvoiceNumber>2</MemoInvoiceNumber>
      <PaymentAmount>4.1</PaymentAmount>
    </BudgetPaymentDtAdd>
    <BudgetPaymentDtAdd>
      <MemoInvoiceDate>sample string 1</MemoInvoiceDate>
      <MemoInvoiceLocation>sample string 3</MemoInvoiceLocation>
      <MemoInvoiceNumber>2</MemoInvoiceNumber>
      <PaymentAmount>4.1</PaymentAmount>
    </BudgetPaymentDtAdd>
  </BudgetPaymentRecordLineItemDetailsAdd>
  <BudgetPaymentRecordPayMethodsAdd>
    <BudgetPaymentPayMethodAdd>
      <Amount>2.1</Amount>
      <PaymentMethod>sample string 1</PaymentMethod>
      <Reference>sample string 3</Reference>
    </BudgetPaymentPayMethodAdd>
    <BudgetPaymentPayMethodAdd>
      <Amount>2.1</Amount>
      <PaymentMethod>sample string 1</PaymentMethod>
      <Reference>sample string 3</Reference>
    </BudgetPaymentPayMethodAdd>
  </BudgetPaymentRecordPayMethodsAdd>
  <ControlNumber>sample string 17</ControlNumber>
  <CustomerID>sample string 7</CustomerID>
  <Description>sample string 10</Description>
  <PaymentDate>sample string 5</PaymentDate>
  <PaymentLocation>sample string 4</PaymentLocation>
  <TotalPaymentAmount>8.1</TotalPaymentAmount>
</BudgetPaymentRecordHeaderDetailsAdd>

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

Response Information

Resource Description

Creates a new Budget payment on a memo invoice.

AgvPayment
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
Count

Count of how many Payments.

string
PaymentRecords

JSON dictionary of PaymentRecords.

Collection of clsAPIPayment

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",
  "PaymentRecords": [
    {
      "PaymentDate": "sample string 1",
      "PaymentLocation": "sample string 2",
      "PaymentNumber": "sample string 3",
      "PaymentRecordHeaderDetails": null,
      "PaymentRecordPayMethodDetails": [],
      "PaymentRecordLineItemDetails": []
    },
    {
      "PaymentDate": "sample string 1",
      "PaymentLocation": "sample string 2",
      "PaymentNumber": "sample string 3",
      "PaymentRecordHeaderDetails": null,
      "PaymentRecordPayMethodDetails": [],
      "PaymentRecordLineItemDetails": []
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.