Refund
The refunds module allows you to initiate and manage refunds. You can make full or partial refunds for payments that have been paid successfully using the Refund APIs. It has the following parameters:
End Points
Attribute
refund_id
string
The unique identifier created for the refund.
payment_id
string
The Payment ID associated with the refund.
reference_number
string
The reference number for the refund.
amount
string
The amount for which the refund was created.
type
string
The type of refund:
initiated_by_merchant
, initiated_by_customer
, and initiated_by_system
reason
string
The reason for the refund:
duplicate
, fraudulent
, requested_by_customer
, others
, system_initiated
, or expired_uncaptured_charge
description
string
A description of the refund.
status
string
Status of the refund:
initiated
, succeeded
, failed
, canceled
, or pending
. network_reference_number
string
Network reference number for the refund.
failure_reason
string
Reason for failure, if applicable:
unknown
, lost_or_stolen_card
, expired_or_canceled_card
, exceeds_payment_amount
, exceeds_balance_amount
, payment_already_refunded
, payment_already_disputed
, payment_not_captured
, expiry_time_exceeded
, amount_too_small
, insufficient_funds
, charge_for_pending_refund_disputed
, or merchant_request
. date
long
The date (milliseconds) on which the refund was initiated.
Create Refund
This API endpoint allows you to create a refund for a payment.
OAuth Scope : ZohoPay.refunds.CREATE
Arguments
amount
double
(Required)
The amount to be refunded, with support for decimal places.
reason
string
(Required)
The reason for the refund:
duplicate
, fraudulent
, requested_by_customer
, others
, system_initiated
, or expired_uncaptured_charge
type
string
The type of refund:
initiated_by_merchant
, initiated_by_customer
, and initiated_by_system
description
string
A description of the refund.
Query Parameters
account_id
(Required)
The Zoho Payments account ID.
Retrieve Refund
Retrieve a Refund
OAuth Scope : ZohoPay.refunds.READ
Query Parameters
account_id
(Required)
The Zoho Payments account ID.