POST api/ReversalApi/Reversal
Reversal of invoice. Creates a credit note. (Storno)
Request Information
URI Parameters
None.
Body Parameters
Voucher number or record id of invoice.
VoucherIdentificationName | Description | Type | Additional information |
---|---|---|---|
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:
{ "Id": 1, "Number": "sample string 2" }
application/xml, text/xml
Sample:
<VoucherIdentification 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> </VoucherIdentification>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Id of created credit note.
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>