Refunds
Create and manage refunds for successful payments
Refunds - Create
Creates a refund against an already processed payment. In case of some processors, you can even opt to refund only a partial amount multiple times until the original charge amount has been refunded
Refunds - Create › Request Body
payment_idThe payment id against which refund is to be initiated
refund_idUnique Identifier for the Refund. This is to ensure idempotency for multiple partial refunds initiated against the same payment. If this is not passed by the merchant, this field shall be auto generated and provided in the API response. It is recommended to generate uuid(v4) as the refund_id.
merchant_idThe identifier for the Merchant Account
amountTotal amount for which the refund is to be initiated. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc., If not provided, this will default to the full payment amount
reasonReason for the refund. Often useful for displaying to users and your customer support executive. In case the payment went through Stripe, this field needs to be passed with one of these enums: duplicate, fraudulent, or requested_by_customer
refund_typeTo indicate whether to refund needs to be instant or scheduled
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
Merchant connector details used to make payments.
Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.
all_keys_requiredIf true, returns stringified connector raw response body
Refunds - Create › Responses
Refund created
refund_idUnique Identifier for the refund
payment_idThe payment id against which refund is initiated
amountThe refund amount, which should be less than or equal to the total payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc
currencyThe three-letter ISO currency code
statusThe status for refunds
connectorThe connector used for the refund and the corresponding payment
reasonAn arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object
error_messageThe error message
error_codeThe code for the error
unified_codeError code unified across the connectors is received here if there was an error while calling connector
unified_messageError message unified across the connectors is received here if there was an error while calling connector
created_atThe timestamp at which refund is created
updated_atThe timestamp at which refund is updated
profile_idThe id of business profile for this refund
merchant_connector_idThe merchant_connector_id of the processor through which this payment went through
Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.
issuer_error_codeError code received from the issuer in case of failed refunds
issuer_error_messageError message received from the issuer in case of failed refunds
raw_connector_responseContains whole connector response
connector_refund_idA unique identifier for a payment provided by the connector
A fee snapshot summary for one business transaction.
Refunds - Retrieve
Retrieves a Refund. This may be used to get the status of a previously initiated refund
path Parameters
refund_idThe identifier for refund
Refunds - Retrieve › Responses
Refund retrieved
refund_idUnique Identifier for the refund
payment_idThe payment id against which refund is initiated
amountThe refund amount, which should be less than or equal to the total payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc
currencyThe three-letter ISO currency code
statusThe status for refunds
connectorThe connector used for the refund and the corresponding payment
reasonAn arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object
error_messageThe error message
error_codeThe code for the error
unified_codeError code unified across the connectors is received here if there was an error while calling connector
unified_messageError message unified across the connectors is received here if there was an error while calling connector
created_atThe timestamp at which refund is created
updated_atThe timestamp at which refund is updated
profile_idThe id of business profile for this refund
merchant_connector_idThe merchant_connector_id of the processor through which this payment went through
Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.
issuer_error_codeError code received from the issuer in case of failed refunds
issuer_error_messageError message received from the issuer in case of failed refunds
raw_connector_responseContains whole connector response
connector_refund_idA unique identifier for a payment provided by the connector
A fee snapshot summary for one business transaction.
Refunds - Update
Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields
path Parameters
refund_idThe identifier for refund
Refunds - Update › Request Body
reasonAn arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
Refunds - Update › Responses
Refund updated
refund_idUnique Identifier for the refund
payment_idThe payment id against which refund is initiated
amountThe refund amount, which should be less than or equal to the total payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc
currencyThe three-letter ISO currency code
statusThe status for refunds
connectorThe connector used for the refund and the corresponding payment
reasonAn arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
metadataYou can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object
error_messageThe error message
error_codeThe code for the error
unified_codeError code unified across the connectors is received here if there was an error while calling connector
unified_messageError message unified across the connectors is received here if there was an error while calling connector
created_atThe timestamp at which refund is created
updated_atThe timestamp at which refund is updated
profile_idThe id of business profile for this refund
merchant_connector_idThe merchant_connector_id of the processor through which this payment went through
Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.
issuer_error_codeError code received from the issuer in case of failed refunds
issuer_error_messageError message received from the issuer in case of failed refunds
raw_connector_responseContains whole connector response
connector_refund_idA unique identifier for a payment provided by the connector
A fee snapshot summary for one business transaction.
Refunds - List
Lists all the refunds associated with the merchant, or for a specific payment if payment_id is provided
Refunds - List › Request Body
start_timeThe start time to filter payments list or to get list of filters. To get list of filters start time is needed to be passed
end_timeThe end time to filter payments list or to get list of filters. If not passed the default time is now
payment_idThe identifier for the payment
payment_id_inRestrict results to refunds for these payment IDs (e.g. customer recent activity).
refund_idThe identifier for the refund
profile_idThe identifier for business profile
limitLimit on the number of objects to return
offsetThe starting point within a list of objects
connectorThe list of connectors to filter refunds list
merchant_connector_idThe list of merchant connector ids to filter the refunds list for selected label
currencyThe list of currencies to filter refunds list
refund_statusThe list of refund statuses to filter refunds list
Column predicates. Combined with other fields using AND.
Refunds - List › Responses
List of refunds
countThe number of refunds included in the list
total_countThe total number of refunds in the list
The List of refund response object