API Reference
Get a GPS request
/pagamentos-lote/v1/lotes-gps/{idRequisicao}/solicitacaohttps://bb.mimicr.dev · provider: https://api.hm.bb.com.brReturns the GPS request, in the POST's format and with textoGuiaPrevidenciaSocial in each entry.
OAuth scope: pagamentos-lote.pagamentos-guias-sem-codigo-barras-info.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Request number (1 to 9999999).
1210Query parameters
Application key (developer_application_key) from the BB Developers Portal. Required on every call.
Debit agência. Optional.
Debit current account. Optional.
Check digit of the debit account. Optional.
Responses
200Success.
Request number.
1216Request state: 1 all entries with consistent data; 2 at least one entry with inconsistent data; 3 all entries with inconsistent data; 4 waiting for the client (payment not authorized yet); 5 being processed by the Bank; 6 processed; 7 rejected; 8 preparing an unreleased batch; 9 released via API; 10 preparing a released batch. States 6 and 7 are final.
123456789101Number of entries in the request.
Total amount of the request's entries.
Number of valid (accepted) entries.
Total amount of the valid entries.
GPS, in the order sent.
Show child attributes
Payment id generated by BB: a 17-digit integer (from 90000000000000001 to 99999999999999999). Read it as int64 or string, never as a double.
Biller's name (returned by the Bank).
"INSS"Payment date, ddmmaaaa as an integer. Can't be before today (error 53); scheduling up to 180 days ahead.
23102026Payment amount in reais.
700Debit document number (shown on the debited account's statement).
Client's own reference (seu documento).
Free-text payment description (up to 40 characters).
GPS payment code (e.g. 1007, 2909, 4308).
1007Taxpayer type: 1 CNPJ, 2 CPF, 3 NIT/PIS/PASEP, 4 CEI, 6 NB, 7 title number, 8 DEBCAD, 9 reference.
3Taxpayer identification.
"12679202899"Tax identifier ("17" for GPS).
"17"Competence month as mmaaaa, without the month's leading zero (e.g. 102022).
102022Expected INSS amount.
700Other entities amount.
Monetary adjustment amount.
GPS description.
S when the entry was accepted; N when it has inconsistent data (see the error codes).
SN"S"Error codes of the entry (up to 10), from the API's error table. Empty when accepted.
403Refused by the gateway, as plain text: Authentication parameters missing (no gw-dev-app-key) or Authentication failed (invalid app key, or token missing, expired or without the operation's scope).
Authentication parameters missingAuthentication failed"Authentication failed"404Request or payment not found.
List of errors.
Show child attributes
Error code.
"2"Message version.
"1"Error description.
"Requisição 9999999 não encontrada para este contrato."Occurrence id (32 hex characters), for BB support.
"ad7661e506e077d533d3559c72a4ff34"500System error.
List of errors.
Show child attributes
Error code.
"2"Message version.
"1"Error description.
"Requisição 9999999 não encontrada para este contrato."Occurrence id (32 hex characters), for BB support.
"ad7661e506e077d533d3559c72a4ff34"