curl --request GET \
--url https://api.withflex.com/v1/refunds \
--header 'Authorization: Bearer <token>'{
"refunds": [
{
"refund_id": "<string>",
"payment_intent_id": "<string>",
"amount": 123,
"created_at": "<string>",
"status": "pending",
"test_mode": true,
"reason": "duplicate",
"metadata": {},
"reference_id": "<string>",
"reference_type": "acquirer_reference_number",
"reference_status": "available"
}
]
}Returns a list of all refunds you’ve previously created.
curl --request GET \
--url https://api.withflex.com/v1/refunds \
--header 'Authorization: Bearer <token>'{
"refunds": [
{
"refund_id": "<string>",
"payment_intent_id": "<string>",
"amount": 123,
"created_at": "<string>",
"status": "pending",
"test_mode": true,
"reason": "duplicate",
"metadata": {},
"reference_id": "<string>",
"reference_type": "acquirer_reference_number",
"reference_status": "available"
}
]
}Use a Bearer token to access this API.
pending, requires_action, succeeded, failed, canceled Show child attributes
The ID of the refund
The ID of the payment intent that the refund is associated with
The amount of the refund in cents
The time at which the refund was created. ISO 8601 format.
The status of the refund
pending, requires_action, succeeded, failed, canceled Whether the refund was created in test mode
The reason for the refund
duplicate, fraudulent, requested_by_customer, expired_uncaptured_charge https://support.stripe.com/questions/how-to-trace-a-refund-using-reference-numbers ID of the refund in the stripe API
Type of the reference number used for the refund
acquirer_reference_number, system_trace_audit_number, retrieval_reference_number Status of the reference number used for the refund
available, pending, unavailable