POST api/{siteCode}/Accounting/UpdateSalesInvoicePayment

Updates the sales invoice payment date.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteCode

The site code.

integer

Required

Body Parameters

The update sales invoice payments.

Collection of UpdateSalesInvoicePayment
NameDescriptionTypeAdditional information
Invoice

string

None.

PaymentDate

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Invoice": "sample string 1",
    "PaymentDate": "2025-03-18T10:48:26.8520924+00:00"
  },
  {
    "Invoice": "sample string 1",
    "PaymentDate": "2025-03-18T10:48:26.8520924+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateSalesInvoicePayment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <UpdateSalesInvoicePayment>
    <Invoice>sample string 1</Invoice>
    <PaymentDate>2025-03-18T10:48:26.8520924+00:00</PaymentDate>
  </UpdateSalesInvoicePayment>
  <UpdateSalesInvoicePayment>
    <Invoice>sample string 1</Invoice>
    <PaymentDate>2025-03-18T10:48:26.8520924+00:00</PaymentDate>
  </UpdateSalesInvoicePayment>
</ArrayOfUpdateSalesInvoicePayment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BatchProcessResponse.

BatchProcessResponse
NameDescriptionTypeAdditional information
RecordsProcessed

Collection of RecordProcessed

None.

RecordsNotProcessed

Collection of RecordNotProcessed

None.

Response Formats

application/json, text/json

Sample:
{
  "RecordsProcessed": [
    {
      "RecordIndentifier": "sample string 1"
    },
    {
      "RecordIndentifier": "sample string 1"
    }
  ],
  "RecordsNotProcessed": [
    {
      "Message": "sample string 1",
      "RecordIndentifier": "sample string 2"
    },
    {
      "Message": "sample string 1",
      "RecordIndentifier": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<BatchProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <RecordsProcessed>
    <RecordProcessed>
      <RecordIndentifier>sample string 1</RecordIndentifier>
    </RecordProcessed>
    <RecordProcessed>
      <RecordIndentifier>sample string 1</RecordIndentifier>
    </RecordProcessed>
  </RecordsProcessed>
  <RecordsNotProcessed>
    <RecordNotProcessed>
      <RecordIndentifier>sample string 2</RecordIndentifier>
      <Message>sample string 1</Message>
    </RecordNotProcessed>
    <RecordNotProcessed>
      <RecordIndentifier>sample string 2</RecordIndentifier>
      <Message>sample string 1</Message>
    </RecordNotProcessed>
  </RecordsNotProcessed>
</BatchProcessResponse>