POST api/Invoice/AllocatePaymentToWriteOffForexGain
Request Information
URI Parameters
None.
Body Parameters
InvoiceWriteoffViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AuthenticationCode | string |
None. |
|
| InvoiceId | integer |
None. |
|
| WriteoffDate | date |
None. |
|
| AccountNameId | integer |
None. |
|
| Descripition | string |
None. |
|
| VatRateId | integer |
None. |
|
| LanguageId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"AuthenticationCode": "sample string 1",
"InvoiceId": 2,
"WriteoffDate": "2025-12-31T17:43:58.3532017+00:00",
"AccountNameId": 4,
"Descripition": "sample string 5",
"VatRateId": 6,
"LanguageId": 7
}
text/html
Sample:
{"AuthenticationCode":"sample string 1","InvoiceId":2,"WriteoffDate":"2025-12-31T17:43:58.3532017+00:00","AccountNameId":4,"Descripition":"sample string 5","VatRateId":6,"LanguageId":7}
application/xml, text/xml
Sample:
<InvoiceWriteoffViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel"> <AccountNameId>4</AccountNameId> <AuthenticationCode>sample string 1</AuthenticationCode> <Descripition>sample string 5</Descripition> <InvoiceId>2</InvoiceId> <LanguageId>7</LanguageId> <VatRateId>6</VatRateId> <WriteoffDate>2025-12-31T17:43:58.3532017+00:00</WriteoffDate> </InvoiceWriteoffViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |