Guides
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
curl --url https://pay4fun.mimicr.dev/account/api/v1/transactional/pix/keys \ --header 'Authorization: Bearer <token>'
[
{ "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
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" }'{
"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:
EVPandTAX_IDbecomeACTIVEon the next API call.EMAILandPHONEwait for thepixkey.confirmaction:
npx mimicr action pay4fun pixkey.confirm account=transactional key=financeiro@suaempresa.com
| Error | When |
|---|---|
400 1001 | Invalid type, invalid e-mail or a phone not in +55DDDDDDDDDDD |
409 4009 | In 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).
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.