Skip to main content

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.

CommandHTTPDescription
pix-keys listGET /v1/pix_keysList Pix keys
pix-keys createPOST /v1/pix_keysCreate a Pix key
pix-keys getGET /v1/pix_keys/{id}Get a Pix key
pix-keys updatePATCH /v1/pix_keys/{id}Update a Pix key
pix-keys deleteDELETE /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​