Skip to main content

Return an Instore Order

If the customer already paid for the order, the customer will be credited the same way as they paid.

To return an order partially, call the endpoint with an array of order rows to return. These order rows do not have to match any of the rows of the original order. If the array is empty, the entire order will be credited.

Method: POST
/api/v1/orders/{merchantOrderNumber}/return

Request

NameDescriptionTypeAdditional InformationExamples
NameArticle name.StringMax length: 40
QuantityQuantity of the product.Int641-7 digits
Minor Units.
UnitPricePrice of the product including VAT.Int641-13 digits
Can be negative.
Minor Units.
ArticleNumberArticle numberStringMax length: 256
DiscountPercentThe discount percent of the order row.
Cannot be used together with DiscountAmount
Int64Min: 0
Max: 10000
No fractions
Minor Units.
0 = 0%
100 = 1%
9900 = 99%
10000 = 100%
DiscountAmountThe total discount amount for this order row.
Cannot be used together with DiscountPercent
Int64Min: 0
Max: Order row total
Minor Units.
VatPercentThe VAT percentage of the current product. Valid vat percentage for that country.Int64Minor Units.
UnitThe unit type, e.g., “st”, “pc”, “kg” etc.StringMax length: 4
RowNumberThe row number the row will have in the Webpay systemInt32
required field

Response Code

CodeHttpStatusCodeDescription
200OKOrder cancelled.
403ForbiddenError in cancelling order.