API Reference
Deposits (Pay In)

Cancel an intent

DELETE/deposit/api/v1/intents/{id}
Base URL: https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.com

In 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

idstring<uuid>required

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).
typestringrequired

Problem type reference (RFC 9110).

Example: "https://tools.ietf.org/html/rfc9110#section-15.5.1"
titlestringrequired

Problem summary.

Example: "One or more validation errors occurred."
statusintegerrequired

HTTP status.

Example: 400
intentIdstring | null

Id of the intent involved, or null when there is none yet.

errorsobject[]required

List of errors, one per field.

Show child attributes
codestringrequired

Error code (VAL-XXX on Payment, DEP-XXX on Deposit).

Example: "VAL-001"
messagestringrequired

Human-readable message.

Example: "Invalid Pix key"
fieldstring | null

Field that caused the error.

Example: "payment.data.pixKeyValue"
401Missing, expired or invalid token. Empty body.
403Intent of another merchant.
typestringrequired

Problem type reference (RFC 9110).

Example: "https://tools.ietf.org/html/rfc9110#section-15.5.1"
titlestringrequired

Problem summary.

Example: "One or more validation errors occurred."
statusintegerrequired

HTTP status.

Example: 400
intentIdstring | null

Id of the intent involved, or null when there is none yet.

errorsobject[]required

List of errors, one per field.

Show child attributes
codestringrequired

Error code (VAL-XXX on Payment, DEP-XXX on Deposit).

Example: "VAL-001"
messagestringrequired

Human-readable message.

Example: "Invalid Pix key"
fieldstring | null

Field that caused the error.

Example: "payment.data.pixKeyValue"
404Intent not found.
typestringrequired

Problem type reference (RFC 9110).

Example: "https://tools.ietf.org/html/rfc9110#section-15.5.1"
titlestringrequired

Problem summary.

Example: "One or more validation errors occurred."
statusintegerrequired

HTTP status.

Example: 400
intentIdstring | null

Id of the intent involved, or null when there is none yet.

errorsobject[]required

List of errors, one per field.

Show child attributes
codestringrequired

Error code (VAL-XXX on Payment, DEP-XXX on Deposit).

Example: "VAL-001"
messagestringrequired

Human-readable message.

Example: "Invalid Pix key"
fieldstring | null

Field that caused the error.

Example: "payment.data.pixKeyValue"