POST api/Services/AllocatePaymentToWriteOffForeignGain

Request Information

URI Parameters

None.

Body Parameters

invoiceWriteoff
NameDescriptionTypeAdditional information
AuthenticationCode

string

None.

PageMode

integer

None.

InvoiceId

integer

None.

WriteoffDate

date

None.

AccountNameId

integer

None.

Descripition

string

None.

IsWriteoffwithVAT

boolean

None.

WriteOffMode

integer

None.

VatRateId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AuthenticationCode": "sample string 1",
  "PageMode": 2,
  "InvoiceId": 3,
  "WriteoffDate": "2025-12-31T17:43:58.3537007+00:00",
  "AccountNameId": 5,
  "Descripition": "sample string 6",
  "IsWriteoffwithVAT": true,
  "WriteOffMode": 8,
  "VatRateId": 9
}

text/html

Sample:
{"AuthenticationCode":"sample string 1","PageMode":2,"InvoiceId":3,"WriteoffDate":"2025-12-31T17:43:58.3537007+00:00","AccountNameId":5,"Descripition":"sample string 6","IsWriteoffwithVAT":true,"WriteOffMode":8,"VatRateId":9}

application/xml, text/xml

Sample:
<invoiceWriteoff xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <AccountNameId>5</AccountNameId>
  <AuthenticationCode>sample string 1</AuthenticationCode>
  <Descripition>sample string 6</Descripition>
  <InvoiceId>3</InvoiceId>
  <IsWriteoffwithVAT>true</IsWriteoffwithVAT>
  <PageMode>2</PageMode>
  <VatRateId>9</VatRateId>
  <WriteOffMode>8</WriteOffMode>
  <WriteoffDate>2025-12-31T17:43:58.3537007+00:00</WriteoffDate>
</invoiceWriteoff>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.