Get refund
GET
/v4/refunds/{id}
const url = 'https://console.orangepill.cloud/v4/refunds/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://console.orangepill.cloud/v4/refunds/example \ --header 'Authorization: Bearer <token>'Retrieve a refund by ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Refund identifier
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
refund
required
object
amount
required
string
created_at
currency
string
id
required
string
ledger_entry_id
required
string
payment_id
required
string
processed_at
reason
string
status
required
string
Example generated
{ "refund": { "amount": "example", "created_at": "example", "currency": "example", "id": "example", "ledger_entry_id": "example", "payment_id": "example", "processed_at": "example", "reason": "example", "status": "example" }}Default Response
Media typeapplication/json
object
error
required
Error message
string
message
string
Example generated
{ "error": "example", "message": "example"}Default Response
Media typeapplication/json
object
error
required
Error message
string
message
string
Example generated
{ "error": "example", "message": "example"}Default Response