mollie v0.4.0 Mollie.Orders.Refunds
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 \\ %{})
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 \\ %{})
list(Mollie.Client.t(), binary(), map() | list()) :: Mollie.response()
Retrieve all order refunds. Results are paginated
Example
Mollie.Orders.Refunds.list client, "ord_pbjz8x"
More info at: https://docs.mollie.com/reference/v2/orders-api/list-order-refunds