API Reference
Account

Register a Pix key

POST/account/api/v1/{conta}/pix/keys
Base URL: https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.com

Registers a key. It starts as PENDING; EMAIL and PHONE keys go through an ownership check before becoming ACTIVE. In Mimicr, EVP and TAX_ID become ACTIVE on the next call and EMAIL/PHONE wait for the pixkey.confirm action.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

contastringrequired

Which account to read: transactional (where deposits come in and payments go out) or owner (the owner/billing account, for fees and settlements with Pay4Fun). The contracts are identical.

transactionalowner

Body

application/json
typestringrequired

Key type.

TAX_IDEVPEMAILPHONE
namestring

The key value. For EVP and TAX_ID it is generated or derived automatically.

Example: "financeiro@suaempresa.com"

Responses

200Request registered.
protocolIdstring<uuid>

Registration protocol.

keyobject
Show child attributes
namestring

The key value.

Example: "financeiro@suaempresa.com"
typestring

Key type.

TAX_IDEVPEMAILPHONE
statusstring

Key status.

ACTIVEPENDING
400Invalid type or value.
successbooleanrequired

Always false on errors.

Example: false
codeintegerrequired

5001 resource not found, 2001 unprocessable input, 1001 validation error (in Mimicr), 4009 key already registered (in Mimicr).

Example: 5001
messagestringrequired

Error message.

Example: "Deposit intent not found."
401Missing, expired or invalid token. Empty body.
409In Mimicr, key already registered.
successbooleanrequired

Always false on errors.

Example: false
codeintegerrequired

5001 resource not found, 2001 unprocessable input, 1001 validation error (in Mimicr), 4009 key already registered (in Mimicr).

Example: 5001
messagestringrequired

Error message.

Example: "Deposit intent not found."