Manage Refunds

Process full or partial refunds for completed payments using Pine Labs Online Refunds API. Track refund statuses and manage the refund lifecycle.

A refund is a process when a receiver returns money back to a customer for a canceled or disputed transaction. This typically happens when a customer returns a product, cancels a service, or faces an issue with their purchase. The purpose is to reverse the original transaction and return the funds to the customer.

Pine Labs Online processes refund directly to the customer's original payment method to prevent chargebacks. For example, if a credit card was used for the payment, the refund will be returned to that same credit card.

You can use the below API to Create a Refund.

1. Create Refund

Use this API to initiate a refund against an order. You can use this API only when the order status is processed.

Shown below are the sample requests and sample response for a Create Refund API.

cURL
curl --request POST \
     --url https://pluraluat.v2.pinepg.in/api/pay/v1/refunds/order_id \
     --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' \
     --header 'Content-Type: application/json' \
     --header 'Request-ID: c17ce30f-f88e-4f81-ada1-c3b4909ed235' \
     --header 'Request-Timestamp: 2024-07-09T07:57:08.022Z' \
     --header 'accept: application/json' \
     --data '
{
  "merchant_order_reference": "232343434344",
  "order_amount": {
    "value": 1100,
    "currency": "INR"
  },
  "merchant_metadata": {
    "key1": "DD",
    "key_2": "XOF"
  }
}
'

Refer to our Create Refund API documentation for more information.

Life Cycle

Learn about the different statuses acquired during the checkout flow for our Refunds.

The figure below shows the life cycle of an Refund.

refund-life-cycle

The table below list the various statuses that our Refunds can have during its life cycle.

StatusDescription
CREATEDWhen the create refund request is successfully received by Pine Labs Online.
PENDINGWhen we have processed the refund and waiting for the response from the acquirer. Note: You can rely on Webhook events for updates or use our get order API to know the updated status.
PROCESSEDWhen the refund is successful. The money is debited from the partner account and credited to the customer's bank account.
FAILEDWhen the refund fails.
New chat
Responses are generated using AI and may contain mistakes.
Hi! I'm Pine, your AI developer assistant. Ask me anything about Pine Labs APIs, integrations, or troubleshooting.

Tip: you can create a new chat with + E