POST api/ReversalApi/PartialReversalV1
Partial reversal, position-wise
Request Information
URI Parameters
None.
Body Parameters
Contains invoice identification and lines to revert.
PartialReversal| Name | Description | Type | Additional information |
|---|---|---|---|
| Lines |
Lines to revert |
Collection of ReversalLineModel |
None. |
| Id |
Voucher record id, must be present if Number is not present |
integer |
None. |
| Number |
Voucher number, must be present if Id is not present |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Lines": [
{
"Number": "sample string 1",
"Quantity": 2.0
},
{
"Number": "sample string 1",
"Quantity": 2.0
}
],
"Id": 1,
"Number": "sample string 2"
}
application/xml, text/xml
Sample:
<PartialReversal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/E3k.Web.CustomerPortal.Models.Api">
<Id>1</Id>
<Number>sample string 2</Number>
<Lines xmlns:d2p1="http://schemas.datacontract.org/2004/07/E3k.Web.CustomerPortal.Models.Web">
<d2p1:ReversalLineModel>
<d2p1:Number>sample string 1</d2p1:Number>
<d2p1:Quantity>2</d2p1:Quantity>
</d2p1:ReversalLineModel>
<d2p1:ReversalLineModel>
<d2p1:Number>sample string 1</d2p1:Number>
<d2p1:Quantity>2</d2p1:Quantity>
</d2p1:ReversalLineModel>
</Lines>
</PartialReversal>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Id of created credit note, 0 means it has failed.
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>