Orders | Payments
Credit (refund) a payment on an order through the payment provider.
The credit is sent to the payment provider identified by paymentMethodName, and the resulting credit transaction is added to the order's payment list. The result is returned even when the provider rejects the credit - check success and errorMessage in the response.
Use lineItemIds to credit specific order lines (for providers that support line-level refunds, and to distribute the credited amount on the order lines), or shipmentId to credit shipping cost for a specific shipment. Both can be omitted when crediting an amount only.
Sample request:
POST /api/orders/EPIC000001/CreditPayment
{
"paymentMethodName": "Vipps",
"transactionId": "xyz789",
"amount": 100.0,
"comment": "Refund for damaged item",
"reason": "Damaged item",
"storeId": "STORE-1",
"lineItemIds": [ "lineItem-1" ]
}
post/api/Orders/{orderId}/CreditPayment
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/Orders/{orderId}/CreditPayment
- Auth: API key in header Authorization
Path parameters
orderIdstring nullable required
The ID of the order to credit. (Required)
Request body
Response
The credit was processed, and the result from the payment provider is returned.
Changes
No recorded changes to this operation across all 1 revision of this API.