Guides
Journeys

Pix keys

List, register and delete the Pix keys of the transactional and owner accounts.

Pix keys belong to one of the merchant's two accounts. The contracts are identical for transactional and owner; only the prefix changes.

List

bash
curl --url https://pay4fun.mimicr.dev/account/api/v1/transactional/pix/keys \
  --header 'Authorization: Bearer <token>'
json
[
  { "name": "404dc4c2-806e-4f61-ba02-ccfd317f2a0e", "type": "EVP", "status": "ACTIVE" },
  { "name": "financeiro@suaempresa.com", "type": "EMAIL", "status": "PENDING" }
]

In Mimicr, the transactional account already starts with an active EVP key: it is the one that receives static QR Code deposits.

Register

bash
curl --request POST \
  --url https://pay4fun.mimicr.dev/account/api/v1/transactional/pix/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{ "type": "EMAIL", "name": "financeiro@suaempresa.com" }'
json
{
  "protocolId": "3a1f0c2e-...",
  "key": { "name": "financeiro@suaempresa.com", "type": "EMAIL", "status": "PENDING" }
}

The response is 200, not 201. type is TAX_ID, EVP, EMAIL or PHONE; account key types differ from Pay Out's (CPF/CNPJ there, TAX_ID here). For EVP and TAX_ID the name is generated or derived from the merchant's CNPJ.

The key starts as PENDING. EMAIL and PHONE keys go through an ownership check before becoming ACTIVE; follow it in the list. In Mimicr:

  • EVP and TAX_ID become ACTIVE on the next API call.
  • EMAIL and PHONE wait for the pixkey.confirm action:
bash
npx mimicr action pay4fun pixkey.confirm account=transactional key=financeiro@suaempresa.com
ErrorWhen
400 1001Invalid type, invalid e-mail or a phone not in +55DDDDDDDDDDD
409 4009In Mimicr, the key is already registered on one of the accounts

Delete

{id} is the key value, not an internal id. URL-encode it (+ becomes %2B, @ becomes %40).

bash
curl --request DELETE \
  --url https://pay4fun.mimicr.dev/account/api/v1/transactional/pix/keys/financeiro%40suaempresa.com \
  --header 'Authorization: Bearer <token>'

Success is 200 with no body; a key that doesn't exist answers 404 with {"success": false, "code": 5001, "message": "Pix key not found."}.

Reference: List Pix keys, Register a Pix key and Delete a Pix key.