API Reference
Request a refund
/deposit/api/v1/intents/{id}/refundhttps://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.comRequests a full refund to the payer of a Released intent. No body. When the bank completes it, the RETURNED webhook arrives with originalEndToEnd. In Mimicr, the refund completes ~5 s later and needs available balance.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Internal GUID of the intent (the id returned on creation or in the Location header).
Responses
200Refund requested.
Intent id.
Deprecated alias of id.
Always Refund.
Refund400Intent not in Released (DEP-106).
Problem type reference (RFC 9110).
"https://tools.ietf.org/html/rfc9110#section-15.5.1"Problem summary.
"One or more validation errors occurred."HTTP status.
400Id of the intent involved, or null when there is none yet.
List of errors, one per field.
Show child attributes
Error code (VAL-XXX on Payment, DEP-XXX on Deposit).
"VAL-001"Human-readable message.
"Invalid Pix key"Field that caused the error.
"payment.data.pixKeyValue"401Missing, expired or invalid token. Empty body.
403Intent of another merchant.
Problem type reference (RFC 9110).
"https://tools.ietf.org/html/rfc9110#section-15.5.1"Problem summary.
"One or more validation errors occurred."HTTP status.
400Id of the intent involved, or null when there is none yet.
List of errors, one per field.
Show child attributes
Error code (VAL-XXX on Payment, DEP-XXX on Deposit).
"VAL-001"Human-readable message.
"Invalid Pix key"Field that caused the error.
"payment.data.pixKeyValue"404Intent not found.
Problem type reference (RFC 9110).
"https://tools.ietf.org/html/rfc9110#section-15.5.1"Problem summary.
"One or more validation errors occurred."HTTP status.
400Id of the intent involved, or null when there is none yet.
List of errors, one per field.
Show child attributes
Error code (VAL-XXX on Payment, DEP-XXX on Deposit).
"VAL-001"Human-readable message.
"Invalid Pix key"Field that caused the error.
"payment.data.pixKeyValue"