Retrieve a Refund
GET
/v1/refunds/{id}
const url = 'https://api.parasta.io/v1/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://api.parasta.io/v1/refunds/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
required
string
payment_id
required
string
amount
required
Always equal to the original payment amount in v1 (full refund only)
integer format: int64
currency
required
string
status
required
string
tx_hash
string | null
created
string format: date-time
Example
{ "id": "re_abc123", "status": "pending"}Object not found
Media type application/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
request_id
string
Example
{ "error": { "type": "authentication_error" }}