Stan Pay Endpoints
Create a refund
POST
/
v1
/
refunds
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Payment ID linked to this refund
Amount in cents
Reason for the refund
Available options:
requested_by_customer
, duplicate
, fraudulent
Response
200 - application/json
Amount in cents
Status of the refund, a refund is a reversed payment
Available options:
payment_holding
, payment_pending
, payment_failure
, payment_success
, payment_cancelled
Reason for the refund
Available options:
requested_by_customer
, duplicate
, fraudulent