Pix keys
The organization's Pix keys that customers transfer to on a bank_transfer charge. The type is inferred from the key itself (key_type, if sent, must match), and the key is stored unmasked, unique within the organization.
| Command | HTTP | Description |
|---|---|---|
pix-keys list | GET /v1/pix_keys | List Pix keys |
pix-keys create | POST /v1/pix_keys | Create a Pix key |
pix-keys get | GET /v1/pix_keys/{id} | Get a Pix key |
pix-keys update | PATCH /v1/pix_keys/{id} | Update a Pix key |
pix-keys delete | DELETE /v1/pix_keys/{id} | Delete a Pix key |
Examples​
--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# List Pix keys
kobana billing pix-keys list \
--fields "id,public_id,key,key_type,description,active"
# Get a Pix key
kobana billing pix-keys get --params '{"id": "PIX_KEY_ID"}'
# Create a Pix key
kobana billing pix-keys create \
--json '{"key": "financeiro@empresa.com.br", "description": "Pix principal"}'
# Update a Pix key
kobana billing pix-keys update \
--params '{"id": "PIX_KEY_ID"}' \
--json '{"active": false}'
# Delete a Pix key
kobana billing pix-keys delete \
--params '{"id": "PIX_KEY_ID"}' \
--dry-run
Next steps​
- Banks
- Schema introspection — every parameter this resource accepts.