POST api/{siteCode}/Accounting/AcknowledgeValidatedSalesInvoices

Acknowledges the receipt of sales invoices allocating a batch reference and transfer date.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteCode

The site code.

integer

Required

Body Parameters

The acknowledge batch.

Collection of AcknowledgeInvoiceRecord
NameDescriptionTypeAdditional information
ID

integer

None.

InvoiceNumber

string

None.

DaySheetNumber

The transfer reference

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "InvoiceNumber": "sample string 2",
    "DaySheetNumber": "sample string 3"
  },
  {
    "ID": 1,
    "InvoiceNumber": "sample string 2",
    "DaySheetNumber": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAcknowledgeInvoiceRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AcknowledgeInvoiceRecord>
    <ID>1</ID>
    <InvoiceNumber>sample string 2</InvoiceNumber>
    <DaySheetNumber>sample string 3</DaySheetNumber>
  </AcknowledgeInvoiceRecord>
  <AcknowledgeInvoiceRecord>
    <ID>1</ID>
    <InvoiceNumber>sample string 2</InvoiceNumber>
    <DaySheetNumber>sample string 3</DaySheetNumber>
  </AcknowledgeInvoiceRecord>
</ArrayOfAcknowledgeInvoiceRecord>

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>