Widget SDK Reference
Examples
Paysight API
Email Services
Payment API
- Card
Customer Service API
- API Reference
Admin API
- MerchantAccounts
- Transactions
Mitigation API
- API for Chargeback Mitigation Providers
API Reference
Refund
Refund a customer
POST
/
refund
Copy
curl --request POST \
--url https://test.paysight.io/customerapi/refund \
--header 'Content-Type: application/json' \
--data '{
"parentCompanyId": 1,
"userEmail": "care@yourdomain.com",
"messageId": "fd6562a1-e0e7-4b8b-b0d4-f20359482dd1",
"amount": 12.99,
"refundItems": [],
"sendUserCommunication": false
}'
Copy
{
"success": true,
"message": "",
"refundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Body
application/json
Payload
The body is of type object
.
Response
200 - application/json
Valid Request. More detailed info will be in the JSON body
The response is of type object
.
Copy
curl --request POST \
--url https://test.paysight.io/customerapi/refund \
--header 'Content-Type: application/json' \
--data '{
"parentCompanyId": 1,
"userEmail": "care@yourdomain.com",
"messageId": "fd6562a1-e0e7-4b8b-b0d4-f20359482dd1",
"amount": 12.99,
"refundItems": [],
"sendUserCommunication": false
}'
Copy
{
"success": true,
"message": "",
"refundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Assistant
Responses are generated using AI and may contain mistakes.