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.

VoucherIdentification
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VoucherIdentification'.

Response Information

Resource Description

Id of created credit note.

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>