Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 1.3 KB

File metadata and controls

87 lines (61 loc) · 1.3 KB

Refund

A collection of endpoints for creating and managing transaction reimbursement

Methods

Method HTTP Path Summary
create POST /refund Create Refund
fetch GET /refund/{id} Fetch Refund
list GET /refund List Refunds
retry_ POST /refund/retry_with_customer_details/{id} Retry Refund

create

HTTP: POST
Path: /refund

paystack.refund.create({ ... })

Body Fields

Name Required
transaction true
amount false
currency false
customer_note false
merchant_note false

fetch

HTTP: GET
Path: /refund/{id}

paystack.refund.fetch(id)

Path Parameters

Name Required
id true

list

HTTP: GET
Path: /refund

paystack.refund.list({ ... })

Query Fields

Name Required
perPage false
page false
from false
to false

retry_

HTTP: POST
Path: /refund/retry_with_customer_details/{id}

paystack.refund.retry_(id, { ... })

Path Parameters

Name Required
id true

Body Fields

Name Required
refund_account_details true