- API Introduction
- Error Code
- Payment Intents
- Charges
- Payment Methods
- Refunds
- Webhooks
- Events
- Files
- Disputes
- Payouts
- Balance
- Products
- Prices
- Payment Links
- Checkout
- Customers
- Setup Intents
- Invoices
- Invoice Items
- Invoice Line Item
- Subscriptions
- Subscription Items
- Issuing
- Authorizations
- Cardholders
- Cards
- Transactions
- Coupons
- Promotion Code
- Accounts
Retrieve a refund
GET
/v1/refunds/{refund_id}
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic YWRtaW46MTIzNDU2
Path Params
refund_id
string
required
Header Params
Accept
string
required
Default:
application/json
Content-Type
string
required
Default:
application/json
Body Params text/plain
Example
Example:
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://apitest.wooshpay.com/v1/refunds/?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw ''
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
amount
integer
optional
created
integer
optional
currency
string
optional
metadata
object
optional
payment_intent
string
optional
reason
enum<string>
optional
Allowed values:
duplicatefraudulentrequested_by_customerexpired_uncaptured_chargeresolved_dispute
status
string
optional
description
string
optional
failure_reason
enum<string>
optional
Allowed values:
lost_or_stolen_cardexpired_or_canceled_cardunknown
Example
{
"id": "re_3KQu4U2eZvKYlo2C02Ndp8xy",
"object": "refund",
"amount": 100,
"created": 1644328172,
"currency": "usd",
"metadata": {},
"payment_intent": "pi_3KQu4U2eZvKYlo2C0avUn9aJ",
"reason": null,
"receipt_number": null,
"status": "succeeded"
}
Modified at 2024-04-25 07:51:14