Sicoob is a network of Brazilian credit unions (cooperativas) and one of the most common banks among small and mid-sized companies in Brazil. If you build software for Brazilian clients — an e-commerce platform, a SaaS product, an ERP — sooner or later one of them will ask you to "connect our Sicoob account" so Pix payments mark invoices and orders as paid.
The good news: Sicoob's Pix API follows the central bank standard — the same cob charges, txid and webhooks every Brazilian bank exposes. The harder part is getting the first call through: an application on Sicoob's portal, the company's digital certificate and mutual TLS. This guide walks through it in order.
What you need before you start
| Item | Why it matters |
|---|---|
| A Sicoob business account | charges are issued on it, and the money settles there |
| A Pix key on that account | every charge carries the receiver's key |
| The company's e-CNPJ A1 certificate | Sicoob identifies your application by it, over mutual TLS |
| Access to Sicoob's developer portal | where you create the application and register the certificate |
| A public HTTPS endpoint | to receive payment webhooks |
An A1 certificate is a file (.pfx) issued to the company by a Brazilian certificate authority under the ICP-Brasil hierarchy, the same kind Brazilian companies already use to sign electronic invoices. It usually lasts one year. The alternative, A3, lives on a smart card or USB token and does not work for a server.
The five steps
1. Sign up on the developer portal
Sicoob's portal is at developers.sicoob.com.br, in Portuguese. The account holder (or someone they authorize) signs in with the business account details and finds the Pix API in the catalog. The official reference, the list of scopes and any test environment live there.
Before touching the portal, have your client ask their cooperative to confirm that the Pix API is enabled for the account and what it charges per Pix received through the API. Each cooperative sets its own fee.
2. Create the application and copy the client_id
Create an application for your system and select the Pix API. The portal issues a client_id. For Pix charges, Sicoob authenticates with the client_id plus the certificate presented on the connection (OAuth 2.0 client_credentials). There is no separate client secret: the certificate plays that role.
3. Register the certificate
The portal asks for the certificate your application will present. You upload the public part of the e-CNPJ A1 (PEM format); the private key never leaves your server. Integrator guides and community forums report the same pitfall: uploading the wrong part, or a certificate different from the one the server uses, is the usual cause of invalid_client.
4. Get a token and create the first charge
With the certificate configured in your HTTP client, request an access token from Sicoob's authorization server (auth.sicoob.com.br) with the client_id and the scopes you need (cob.write, cob.read, webhook.write…). Tokens are short-lived; refresh them before expires_in runs out.
An immediate charge is then a POST to /pix/api/v2/cob on api.sicoob.com.br, over the same certificate-authenticated connection. The body follows the central bank's schema — field names are in Portuguese, and amounts are strings in reais:
{
"calendario": { "expiracao": 900 },
"valor": { "original": "42.90" },
"chave": "[email protected]",
"solicitacaoPagador": "Order #1042"
}
calendario.expiracao is the expiry in seconds, valor.original the amount, chave the receiving Pix key and solicitacaoPagador a message shown to the payer. The response carries the txid and pixCopiaECola — the BR Code payload you render as a QR code.
5. Register the webhook
To learn about payments without polling, register a webhook for the Pix key: PUT /pix/api/v2/webhook/{key} with { "webhookUrl": "https://…" }. When a Pix lands, Sicoob calls that URL with the payment's txid and endToEndId. Treat the notice as a hint and confirm the charge at the bank before you ship anything — see handling Pix webhooks.
Mutual TLS, and why the first call fails
With most APIs you know — Stripe, Square, Twilio — your server proves who it is with a bearer key. With Brazil's Pix API, both sides present certificates: the bank shows its own (like any HTTPS site) and your client shows the company's. If the certificate doesn't match the one registered on the portal, the bank closes the connection before it even looks at the client_id.
Your HTTP client must send the certificate and private key on every request: the token call and each charge. In Node that means an https.Agent with pfx and passphrase (or cert and key) on every call.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
invalid_client on the token call | the certificate on the connection is not the one registered, or the client_id belongs to another application | upload the public key of the same A1 the server uses |
| TLS handshake error | the request went out without a client certificate | attach the agent to every request |
403 / insufficient scope | the token was requested without the scope for that operation | add cob.write to create charges and webhook.write for the webhook |
401 after a few minutes | expired token | refresh before expires_in |
| everything stops one day | the A1 certificate expired | renew it and register the new one before the old one expires |
The shortcut: connect the Sicoob account to Intopays
Everything above — the certificate on every call, token refresh, webhook registration, the Portuguese field names — is what Intopays already handles. Your client still does steps 1 to 3 at Sicoob (the account, the application and the certificate belong to their company); the rest becomes configuration.
In the Intopays dashboard (currently in Portuguese), they open Banking → Credenciais → Nova credencial (Banking → Credentials → New credential), choose Sicoob and fill in:
| Field | What goes in it |
|---|---|
clientId | the client_id from the portal |
pixKey | the account's Pix key |
bankingContract, bankingNumber | collection contract and account, only for boletos |
| PFX certificate + password | the same e-CNPJ A1 registered on the portal |
The certificate's expiry is read from the file itself and shown in the credentials list. A connection test requests a token from Sicoob and registers the payment webhook on the Pix key. From then on, your code creates charges through one REST API with an organization token:
curl -X POST https://api.intopays.com/v1/pixs \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "X-Credential-Key: $INTOPAYS_CREDENTIAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountOriginal": 42.90,
"calendarExpiration": 900,
"payerRequest": "Order #1042"
}'
Field names are in English, the amount is a number in reais, and the response includes the qrcode (copy-and-paste payload), the transactionId (Sicoob's txid) and a hosted payment page url. When the customer pays, your endpoint receives a pix.update event with status COMPLETED. See create a Pix charge, bank credentials and webhooks.
If the same client also banks with Inter, Banco do Brasil or another bank, the call is identical; only the credential changes. See the Pix API by bank comparison.
Boletos on the same account
The same Sicoob credential can also issue boletos (Brazilian bank payment slips), as long as the application has the collection scopes and the credential has the contract and account numbers. Sicoob returns each boleto with a Pix QR code, so the payer can choose either. The details are in create a boleto.
Frequently asked questions
Can a company outside Brazil use the Sicoob Pix API?
Only through a Brazilian entity. The API acts on a Sicoob business account, and opening one requires a Brazilian company with a CNPJ that joins a cooperative. A developer abroad can build and maintain the integration for a Brazilian client without any problem.
Does Sicoob need a client secret?
Not for Pix charges. Sicoob authenticates with the client_id and the certificate presented on the connection, which is why the Intopays Sicoob credential only asks for the client_id, the Pix key and the certificate.
Is the documentation in English?
No. Sicoob's portal, the central bank's Pix API specification and its JSON field names are in Portuguese. The table in step 4 covers the fields you need for a first charge; Intopays exposes the same operation with English field names.
How much does Sicoob charge per Pix?
Each cooperative sets its own fee for Pix received by businesses: a fixed amount, a percentage or a bundle. Ask the cooperative before you go live. Intopays adds no per-transaction fee on top.
How do I test without charging real customers?
Pay a small real charge yourself: it exercises the bank, the webhook and your code end to end, and the business can refund the Pix afterwards. Use the portal's test environment, where one exists for the API, to validate request formats before that.
