Refund payment

The refund payment service is used to refund all or part of an active order in Paynova's system.
If you make a refund on an invoice purchase where the refunded amount is less than the total order amount, an updated invoice with the new amount will be sent to the customer. We refer to this method as a partial refund.

Use case

An order is returned by the customer.

Use case - partial refund

An item gets slightly damaged during shipping. You decide to make a cut of the current price.

Prerequisites

  • An order is finalized

Rest endpoint

POST /orders/{orderId}/transactions/{transactionId}/refund/{totalAmount}

API call

"POST" https://api.paynova.com/orders/47bf277b-17b0-4d8b-b9c9-a3b100dbb21c/transactions/201409251527280673/refund/100.00

{
    "LineItems":[
        {
            "Id":"1",
            "ArticleNumber":1000,
            "Name":"Some product",
            "Description":"Some product description",
            "ProductUrl":"http://myshop.com/products/1000",
            "Quantity":4,
            "UnitMeasure":"st",
            "UnitAmountExcludingTax":20,
            "TaxPercent":25,
            "TotalLineTaxAmount":20,
            "TotalLineAmount":100,
            "LineItemGroupKey":null
        }
    ]
}