API Reference
Cancel an intent
/deposit/api/v1/intents/{id}https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.comIn Draft, cancels; in Pending, marks it declined. Pending deposits are closed and no webhook is sent.
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
204Cancelled.
400Already cancelled (DEP-107), already declined (DEP-108) or a status that doesn't allow deletion (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"