Paystack icon

Paystack

Interact with Paystack API

Actions22

Refund → Create

AI-generated

Summary

Create a refund for a specific transaction by providing its transaction reference or ID.

Inputs

  • Transaction Reference (required) — The transaction reference or ID for which to create the refund.

Output shape

a list of JSON objects representing refund data

Returns the refund data extracted from Paystack's API response, with each item paired to the corresponding input item. Errors are returned in JSON form per item when continueOnFail is active.

Examples

Example 1: Create a refund for a transaction with reference 'abc123'

Set Resource to Refund, Operation to Create, and provide 'abc123' as the Transaction Reference.

Links

Discussion