POST api/v1/finance/processopenamounts

Sync open amounts for invoice, prepayments and credit notes

Request Information

URI Parameters

None.

Body Parameters

ProcessOpenAmountsParameter
NameDescriptionTypeAdditional information
CloseExportedButNotOpen

set to true will close all exported invoice which are not in the open amount list

boolean

Required

OpenAmountList

List of open amounts for sync

Collection of OpenAmountItem

Required

Request Formats

application/json, text/json

Sample:
{
  "CloseExportedButNotOpen": true,
  "OpenAmountList": [
    {
      "Number": 1,
      "OpenAmount": 2.0,
      "DateOfLastPayment": "2024-04-27T14:19:49.631486+00:00"
    },
    {
      "Number": 1,
      "OpenAmount": 2.0,
      "DateOfLastPayment": "2024-04-27T14:19:49.631486+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<ProcessOpenAmountsParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Promidata.PromotionalOffice.Library.Models.InvoiceManagement">
  <CloseExportedButNotOpen>true</CloseExportedButNotOpen>
  <OpenAmountList>
    <OpenAmountItem>
      <DateOfLastPayment>2024-04-27T14:19:49.631486+00:00</DateOfLastPayment>
      <Number>1</Number>
      <OpenAmount>2</OpenAmount>
    </OpenAmountItem>
    <OpenAmountItem>
      <DateOfLastPayment>2024-04-27T14:19:49.631486+00:00</DateOfLastPayment>
      <Number>1</Number>
      <OpenAmount>2</OpenAmount>
    </OpenAmountItem>
  </OpenAmountList>
</ProcessOpenAmountsParameter>

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

Response Information

Resource Description

ProcessOpenAmountsResult
NameDescriptionTypeAdditional information
ProcessResultList

List of result for the sync

Collection of ProcessResultItem

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.