Mollie.Orders.Refunds (mollie v0.7.2)
Create refunds on a payment. The refunded amount is credited to your customer.
Link to this section Summary
Functions
Creates a refund for an order line. Order lines that are paid
, shipping
or completed
can be refunded.
Retrieve all order refunds. Results are paginated
Link to this section Functions
Link to this function
create(client, order_id, body \\ %{})
Specs
create(Mollie.Client.t(), binary(), map()) :: Mollie.response()
Creates a refund for an order line. Order lines that are paid
, shipping
or completed
can be refunded.
Refund body example
%{
"lines" => [
%{
"id" => "odl_dgtxyl"
}
]
}
More info at: https://docs.mollie.com/reference/v2/orders-api/create-order-refund
Link to this function
list(client, order_id, params \\ %{})
Specs
list(Mollie.Client.t(), binary(), map() | list()) :: Mollie.response()
Retrieve all order refunds. Results are paginated
example
Example
Mollie.Orders.Refunds.list client, "ord_pbjz8x"
More info at: https://docs.mollie.com/reference/v2/orders-api/list-order-refunds