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
  • x-branch
    Type: string
    required

    Branch of the location owner account

  • x-account-number
    Type: string
    required

    Number of the location owner account

  • Idempotency-Key
    Type: string
    required

    Unique idempotency key to prevent duplicate location creation

Body·
required
application/json

Request to create a Bacen Pix location (payload-location URL).

  • tipoCob
    Type: string enum
    required

    Type 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-31T17:52:48.662Z"
}