Skip to main content

Adjust Invoice

The operation AdjustInvoice is used for adjusting the total invoice amount. The adjusted amount can be both negative and positive.

A negative adjustment amount cannot be greater than the amount of the invoice. To make several adjustments at the same time, several articles can be added.

Please Note

That positive adjustments may lead to additional credit checks of the customer.


Fieldmin OccursnillableMaxTypeDescription
Username1false50stringThe username used to authorize the request.
Password1false50stringThe password used to authorize the request.
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.
InvoiceRows1false-InvoiceRow[]The articles that should be listed on the invoice and
contains the quantity and price of the article.
PurchaseClassification1true50stringThis field is used for an alternative credit evaluation. Contact Walley for more details.
SettlementReference1true50stringSettlement reference added to the return.
StoreId1true-intThe StoreId used for identification of store.


ArticleIdxstring50The ArticleId of the product.
Descriptionxstring50The description of the product.
Quantityxint8The quantity of the product. 1-99999999 (0 not allowed)
QuantityUnit-string50The quantity unit of the product, e.g. pcs, meter, number, kg etc.
UnitPricexdecimal6,2Price per unit incl. VAT.
VATxdecimal6,2VAT in per cent


Fieldmin OccursnillableMaxTypeDescription
CorrelationId1true50stringCorrelationID from the request if any.

Example Requests

Description:AdjustInvoice is used to update an invoice

<soapenv:Envelope xmlns:soapenv=""
<!--Zero or more repetitions:-->
<pay:Description>Article 123456</pay:Description>
<pay:Description>Discount on article 123456</pay:Description>
<pay:PurchaseClassification xsi:nil="true"
<pay:SettlementReference xsi:nil="true"

Error Codes

Fault CodeDescription
AUTHORIZATION_FAILEDCould not authorize the request, check your login credentials. Please contact Walley for more help.
VALIDATION_COUNTRY_CODE_REQUIREDThe CountryCode field was not present in the request.
VALIDATION_ARTICLE_ID_REQUIREDAn article is missing its ArticleId.
VALIDATION_QUANTITY_RANGEThe Quantity field was not within its allowed range.
VALIDATION_SETTLEMENT_REFERENCE_LENGTHThe Settlement Reference field was not within its allowed range.
INVOICE_NOT_FOUNDThe invoice number does not exist.

If the error code you are looking for is not in the list above Please see separate page Error Codes