Cancel Invoice

Cancel a pending invoice (an invoice that is not yet activated). This functionality is non-reversible.

This can be used if the order no longer shall be sent.

Parameters

Fieldmin OccursnillableMaxTypeDescription
Username1false50stringThe username usedf to authorize the request.
Password1false50stringThe password used to authorize the request.
CorrelationId1false50stringCorrelationID is sent back in the response.
CountryCode1false2stringThe country code (ISO 3166-1 alpha-2) for the country. Only “SE” allowed.
InvoiceNumber1false50stringThe invoice number previously returned in AddInvoice.
StoreId1false4stringThe StoreId used for identification of store.

Response

Fieldmin OccursnillableMaxTypeDescription
CorrelationId1true50stringCorrelationID from the request if any.

Example Requests

 Value
Environment:UAT
Service:PaymentService
URL:https://ecommercetest.collector.se/v3.0/PaymentServiceV10.svc?wsdl
Function:CancelInvoice
Description:The operation cancels a pending invoice.
Notes:N/A
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pay="http://schemas.ecommerce.collector.se/v30/PaymentService">
<soapenv:Header>
<pay:Username>USERNAME</pay:Username>
<pay:Password>PASSWORD</pay:Password>
<pay:ClientIpAddress>127.0.0.1</pay:ClientIpAddress>
</soapenv:Header>
<soapenv:Body>
<pay:CancelInvoiceRequest>
<pay:CorrelationId>CancelInvoiceV10</pay:CorrelationId>
<pay:CountryCode>SE</pay:CountryCode>
<pay:InvoiceNo>62396765</pay:InvoiceNo>
<pay:StoreId>1234</pay:StoreId>
</pay:CancelInvoiceRequest>
</soapenv:Body>
</soapenv:Envelope>

Error Codes

Please see separate page Error Codes

Fault CodeDescription