Refund transaction 🔙

This endpoint refunds a specific transaction back to its origin (business & user of that business).

Endpoint

POST

https://api.thepeer.co/transactions/{{TRANSACTION_ID}}/refund
URL ParameterDescription
{{TRANSACTION_ID}}the id of a transaction

Sample body

{
"reason": "possible fraud"
}

Field requirements

Field nameData typeRequired
reasonstringfalse

Sample response

Check out the Anatomy of a transaction object


I think the things you regret most in life are the things you didn’t do.

— Steve Jobs