POST
/
api
/
service
/
merchant
/
payment
/
refund

Authorizations

X-Ivy-Api-Key
string
header
required

Body

application/json
amount
number

The amount to refund in decimals, e.g. 10.23 for EUR 10.23. If not specified, the full order amount will be refunded.

description
string

A description for the refund. This will be retrievable in the API and in the Ivy dashboard.

displayedPaymentReference
string

An optional custom text that will be shown on the customer's payment reference. Input has to be maximum 16 alpha-numeric characters. If not provided, a default Ivy refund referenceId will be shown.

email
string

The email of the customer. If provided, Ivy may use this email to contact the customer directly in case of issues or need for clarification regarding the refund. If not provided, Ivy will contact the merchant in such cases. However, this is a rare occurrence.

orderId
string

The internal Ivy id of the order.

referenceId
string

The external id set by the merchant during checkout creation.

Maximum length: 200

Response

200 - application/json
orderId
string
required

The internal Ivy id of the order.

orderStatus
enum<string>
required

The order status. This status symbolises the state of the user's payment attempt. See the guide for more information.

Available options:
failed,
canceled,
processing,
in_handshake,
waiting_for_payment,
paid,
in_refund,
refunded,
refund_failed,
partially_refunded,
in_dispute,
disputed,
refused
referenceId
string
required

A unique identifier for the newly created refund. You can use this id to retrieve the refund from the order object.

Maximum length: 200
refundStatus
enum<string>
required

The status of the refund. Always use the status of the order as your source of truth to trigger actions in your dashboard.

Available options:
pending,
succeeded,
failed,
requires_action,
partially_refunded