Charge
Refund a paid charge.
Changed onIssue a refund for a successfully paid charge. The refund is created as a new payout linked to the original charge through related_payments. The customer receives the funds back at the bank account they paid from. Each charge can be refunded once; partial and full refunds are both supported.
post/v1/charges/{id}/refund
Request
- Base URLhttps://sandbox.straddle.com
- URLhttps://sandbox.straddle.com/v1/charges/{id}/refund
- AuthHTTP bearer
Path parameters
idstring uuid required
Headers
Straddle-Account-Idstring uuid
For use by platforms to specify an account id and set scope of a request.
Request-Idstring
Optional client generated identifier to trace and debug a request.
Correlation-Idstring
Optional client generated identifier to trace and debug a series of requests.
Idempotency-Keystring
Optional client generated value to use for idempotent requests.
Request body
Example request
{
"amount": 5000
}Response
Created
Example response
{
"data": {
"customer_details": {
"name": "Ron Swanson",
"email": "ron@swanson.com",
"phone": "+1234567890"
},
"paykey_details": {
"label": "Bank of America ****1234"
},
"device": {
"ip_address": "192.168.1.1"
},
"status_details": {
"message": "Payment successfully created and awaiting validation."
},
"status_history": [
{
"message": "Payment successfully created and awaiting validation."
}
]
}
}Changes
- info
endpoint added
- info