Get Pix location QR code information
Retrieve Pix location information and generate QR code data based on the location type and access token. This endpoint returns JOSE (JSON Object Signing and Encryption) formatted data for QR code generation.
path Parameters
locType required | string Enum: "cob" "cobv" "rec" Type of Pix location |
pixUrlAccessToken required | string Access token for the Pix location |
query Parameters
codMun | string Municipality code for location-specific data |
DPP | string Additional location parameter |
Responses
Request samples
- Node + Native
- Shell + Curl
- Php + Curl
- Python + Python3
- Go + Native
- Java + Okhttp
- Ruby + Native
const http = require('https'); const options = { method: 'GET', hostname: '', port: null, path: '%3Cname%3E.indireto.woovi-indireto.dev/location/qr/v2/%7BlocType%7D/%7BpixUrlAccessToken%7D?codMun=SOME_STRING_VALUE&DPP=SOME_STRING_VALUE', headers: {} }; const req = http.request(options, function (res) { const chunks = []; res.on('data', function (chunk) { chunks.push(chunk); }); res.on('end', function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.end();
Response samples
- 404
Content type
application/json
{- "error": "A cobrança em questão não foi encontrada para a location requisitada"
}
Create a new Pix location
Create a new Pix location with the specified type. The service will generate a unique access token and return the complete location information including the QR code URL.
Request Body schema: application/jsonrequired
type required | string Enum: "cob" "cobv" "rec" Type of Pix location to create |
Responses
Request samples
- Payload
- Node + Native
- Shell + Curl
- Php + Curl
- Python + Python3
- Go + Native
- Java + Okhttp
- Ruby + Native
Content type
application/json
{- "type": "cob"
}
Response samples
- 200
Content type
application/json
{- "location": {
- "id": "string",
- "type": "cob",
- "location": "string",
- "pixUrlAccessToken": "string"
}
}