RefundCreate
POSThttps://api.twisto.cz/psp/smi/refunds
POSThttps://api.twisto.pl/psp/smi/refunds
Create a refund.
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Request body
- checkout_id: stringrequired
<= 255 characters
- reference: string
The reference for this refund, should be used in single transaction you sent us in case of manual settlement
<= 140 characters
- reason: string
<= 255 characters
- amount: string<decimal>requiredMatch pattern:
^-?\d{0,8}(?:\.\d{0,2})?$
Request Body example
{
"checkout_id": "string",
"reference": "string",
"reason": "string",
"amount": "904.00"
}
Responses
Body
- id: stringrequired
External ID of the refund
- reason: stringrequired
Reason for the refund given by customer
<= 255 characters
- amount: string<decimal>required
Amount refunded to customer
Match pattern:^-?\d{0,8}(?:\.\d{0,2})?$
- created_date: string<date-time>required
Date when the refund was created
- reference: string
The reference for this refund, should be used in single transaction you sent us in case of manual settlement
<= 140 characters
- checkout_id: string
Response example
{
"id": "string",
"reason": "string",
"amount": "909.00",
"created_date": "string",
"reference": "string",
"checkout_id": "string"
}