Part Credit Invoice

Credits the included articles on the requested invoice. Can only be used on already activated invoices.

Parameters

Fieldmin OccursnillableMaxTypeDescription
Username1false50stringThe username used to authorize the request.
Password1false50stringThe password used to authorize the request.
ClientIpAddress1false50stringThe IP address of the customer performing the purchase at the partner's web shop.
CorrelationId1true50stringCorrelationID is sent back in the response.
CountryCode1false2stringThe country code (ISO 3166-1 alpha-2) for the country.
InvoiceNo1false50stringThe invoice number previously returned in AddInvoice.
CreditDate1false-DatetimeThe date of the return.
ArticleList1false-Article[]The list of articles that should be credited. See below.
SettlementReference1true350DatetimeSettlement reference added to the return.
StoreId1true4intThe StoreId used for identification of store.

Article

ParameterRequiredTypeMaxDescription
ArticleIdxstring50The ArticleId of the product
Descriptionstring50The Description of the product
Quantityxstring8The quantity of the product
UnitPricexdecimal6,2Price per unit incl. VAT.

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:PartCreditInvoice
Description:The request credits the articles on the requestd invoice
Notes:N/A
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://schemas.ecommerce.collector.se/v30/InvoiceService">
<soapenv:Header>
<inv:Username>USERNAME</inv:Username>
<inv:Password>PASSWORD</inv:Password>
<inv:ClientIpAddress>123.456.789</inv:ClientIpAddress>
</soapenv:Header>
<soapenv:Body>
<pay:PartCreditInvoiceRequest>
<pay:ArticleList>
<pay:Article>
<pay:ArticleId>82493</pay:ArticleId>
<pay:Quantity>11</pay:Quantity>
<pay:UnitPrice>50</pay:UnitPrice>
</pay:Article></pay:ArticleList>
<pay:CountryCode>SE</pay:CountryCode>
<pay:CreditDate>2020-04-20</pay:CreditDate>
<pay:InvoiceNo>62396756</pay:InvoiceNo>
<pay:SettlementReference>111</pay:SettlementReference>
<pay:StoreId>1234</pay:StoreId>
</pay:PartCreditInvoiceRequest>
</soapenv:Body>
</soapenv:Envelope>

Error Codes

Please see separate page Error Codes

Fault CodeDescription
UNIQUE_ARTICLE_NOT_FOUND
INVALID_QUANTITY