Create a new Location
Creates a new Location for Dynamic QR Code generation. The location starts with ACTIVE status and can be bound to a charge via the charge creation endpoints. Requires Idempotency-Key header.
Headers
- Type: stringx
-branch requiredBranch of the location owner account
- Type: stringx
-account -number requiredNumber of the location owner account
- Type: stringIdempotency
- Key requiredUnique idempotency key to prevent duplicate location creation
Body·
required
application/json
Request to create a Bacen Pix location (payload-location URL).
- Type: string enumtipo
Cob requiredType of charge bound to the location (Bacen tipoCob)
values- cob
- cobv
- cob
- cobv
Responses
- application/json
- application/json
- application/json
- application/json
Request Example for post/loc
curl http://localhost/loc \
--request POST \
--header 'x-branch: ' \
--header 'x-account-number: ' \
--header 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"tipoCob": "cob"
}'
{
"id": "string",
"location": "string",
"tipoCob": "cob",
"status": "ACTIVE",
"criacao": "2026-07-31T12:59:10.307Z"
}