Refund
In this section, we will explain how refund process works on the Fynd Commerce and how to create initiateRefundSession and getRefundStatus APIs.
📄️ Create API to Initiate Refund Session
The initiateRefundSession API initiates or creates a refund session for a particular transaction. This API is triggered by a microservice and directed to the Payment Extension’s endpoint to process the refund request. Before proceeding, the Payment Extension must validate the checksum_auth in the headers to ensure the authenticity and integrity of the request.
📄️ Initiate Refund Session
📄️ Create API to Get Refund Status
The getRefundStatus API retrieves the current status and details of a refund session or transaction. By using the gid, the platform tracks whether a refund has been successfully processed, is still pending, or has failed. This API ensures that refund transactions are accurately recorded and updated in the system, preventing discrepancies in order and payment records.