API Reference
Deposits (Pay In)

Request a refund

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

Requests 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

idstring<uuid>required

Internal GUID of the intent (the id returned on creation or in the Location header).

Responses

200Refund requested.
idstring<uuid>

Intent id.

intentIdstring<uuid>

Deprecated alias of id.

statusstring

Always Refund.

Refund
400Intent not in Released (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"