POST api/v1/finance/updatebuyinginvoicecache

Update the given data in the buying invoice cache tables of Promotional Office

Request Information

URI Parameters

None.

Body Parameters

UpdateBuyingInvoiceCacheParameter
NameDescriptionTypeAdditional information
Items

List with items for update

Collection of UpdateBuyingInvoiceCacheItem

None.

Request Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "IndentNumber": 1,
      "SupplierName": "sample string 2",
      "BuyingPrice": 3.0,
      "PeriodYear": 4,
      "PeriodMonth": 5,
      "Date": "2024-04-28T06:13:10.3087523+00:00",
      "EntryNumber": "sample string 7",
      "EntryIdentifier": "sample string 8"
    },
    {
      "IndentNumber": 1,
      "SupplierName": "sample string 2",
      "BuyingPrice": 3.0,
      "PeriodYear": 4,
      "PeriodMonth": 5,
      "Date": "2024-04-28T06:13:10.3087523+00:00",
      "EntryNumber": "sample string 7",
      "EntryIdentifier": "sample string 8"
    }
  ]
}

application/xml, text/xml

Sample:
<UpdateBuyingInvoiceCacheParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Promidata.PromotionalOffice.Library.Models.InvoiceManagement">
  <Items>
    <UpdateBuyingInvoiceCacheItem>
      <BuyingPrice>3</BuyingPrice>
      <Date>2024-04-28T06:13:10.3087523+00:00</Date>
      <EntryIdentifier>sample string 8</EntryIdentifier>
      <EntryNumber>sample string 7</EntryNumber>
      <IndentNumber>1</IndentNumber>
      <PeriodMonth>5</PeriodMonth>
      <PeriodYear>4</PeriodYear>
      <SupplierName>sample string 2</SupplierName>
    </UpdateBuyingInvoiceCacheItem>
    <UpdateBuyingInvoiceCacheItem>
      <BuyingPrice>3</BuyingPrice>
      <Date>2024-04-28T06:13:10.3087523+00:00</Date>
      <EntryIdentifier>sample string 8</EntryIdentifier>
      <EntryNumber>sample string 7</EntryNumber>
      <IndentNumber>1</IndentNumber>
      <PeriodMonth>5</PeriodMonth>
      <PeriodYear>4</PeriodYear>
      <SupplierName>sample string 2</SupplierName>
    </UpdateBuyingInvoiceCacheItem>
  </Items>
</UpdateBuyingInvoiceCacheParameter>

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

Response Information

Resource Description

UpdateBuyingInvoiceCacheResult
NameDescriptionTypeAdditional information
Message

General Message for the import

string

None.

State

State of the import

UpdateBuyingInvoiceCacheResultState

None.

RecalculatedIntents

List of effected indents of the import Each Item can have an error Message. The first string is the indent number from the parameter or from the cache table. The second string is the error message, when it was an error. Empty, when no error happen.

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "State": 0,
  "RecalculatedIntents": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<UpdateBuyingInvoiceCacheResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Promidata.PromotionalOffice.Library.Models.InvoiceManagement">
  <Message>sample string 1</Message>
  <RecalculatedIntents xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </RecalculatedIntents>
  <State>Error</State>
</UpdateBuyingInvoiceCacheResult>