Retrieve checkout session refund

Retrieves the details of a specific refund using its unique ID. This endpoint is typically used to check the status of a refund after it has been created.

Use this endpoint to:

  • Confirm whether a refund has been successfully processed.

  • Check the current status of a pending refund.

  • View refund details such as metadata, reason, amount, and creation time.

GET https://{provided url}/v1/refunds/:id

curl https://{provided url}/v1/refunds/kLcRRC5P8U68CYe0kVA \
  -u sk_test_BQokikJOvBiI2HlWgH4olfQ2: \

Example JSON Response

{
	"id": "kLcRRC5P8U68CYe0kVA",
	"amount": 1000,
	"status": "pending",
	"reason": "requested_by_customer",
	"created_at": 1534255857,
	"livemode": false
}

Last updated