Create Pix Key
POST/api/pix/keys
Create Pix Key
Request
- application/json
Body
required
account_number stringrequired
account_branch stringrequired
Responses
- 201
- 400
- 401
- 500
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
id id (string)
Key id
type type (string)
Key's type
key key (string)
Key
emv emv (string)
EMV related to the key
{
"id": "649604ff-dd72-4c2c-8909-9d49dbbd1bde",
"type": "EVP",
"key": "32c32de0-50f7-4f4f-96d9-81d716e69864",
"emv": "00020101021126330014br.gov.bcb.pix0111082853887515204000053039865406100.005802BR5912API DE TESTE6009SAO PAULO620605022163045927"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
message message (string)
{
"message": "Não foi possível criar chave"
}
Unauthenticated
- application/json
- Schema
- Example (from schema)
Schema
message message (integer)
Response 401
{
"message": "Invalid x-api-key"
}
Error
Authorization: http
name: paas_tokentype: httpscheme: bearerbearerFormat: JWTdescription: Token utilizado para autenticação na Api PaaS
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://docs.zrobank.io/api/pix/keys' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"account_number": "12345",
"account_branch": "0001"
}'