curl --request POST \
--url 'https://api.stateset.com/api/v1/payments/refund' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"amount": "string",
"created_at": "2026-07-24T12:00:00Z",
"currency": "string",
"description": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": "string",
"payment_method_id": null,
"processed_at": null,
"status": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Refund a payment
Refund a payment
POST
/
api
/
v1
/
payments
/
refund
curl --request POST \
--url 'https://api.stateset.com/api/v1/payments/refund' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"amount": "string",
"created_at": "2026-07-24T12:00:00Z",
"currency": "string",
"description": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": "string",
"payment_method_id": null,
"processed_at": null,
"status": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Request body
JSON body of typeRefundPaymentHandlerRequest.
Responses
ApiResponse_PaymentResponse
Refund processed
ErrorResponse
Bad request
curl --request POST \
--url 'https://api.stateset.com/api/v1/payments/refund' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{}'
{
"data": {
"amount": "string",
"created_at": "2026-07-24T12:00:00Z",
"currency": "string",
"description": null,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": "string",
"payment_method_id": null,
"processed_at": null,
"status": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
โI