Payments

Sicoob Pix API integration: a step-by-step guide

How to integrate the Sicoob Pix API: developer portal, client_id, the company's A1 certificate, mutual TLS, the first charge and the webhook, and common errors.

By Intopays team

7 min read

Your system, holding a digital certificate and a client_id, talks to the bank over a locked channel and gets back a Pix charge with its QR codePOST /cob201 Createdtxid: 7f3a…Sicoob Pix APImTLS + OAuth 2.0

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

ItemWhy it matters
A Sicoob business accountcharges are issued on it, and the money settles there
A Pix key on that accountevery charge carries the receiver's key
The company's e-CNPJ A1 certificateSicoob identifies your application by it, over mutual TLS
Access to Sicoob's developer portalwhere you create the application and register the certificate
A public HTTPS endpointto 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

The five steps of a Sicoob Pix API integration: developer portal, application, certificate, first charge and webhook1Sicoob portalbusiness account+ sign-up2Applicationissues theclient_id3Certificatee-CNPJ A1 onthe portal4First chargePOST /cobreturns the QR5Webhookpaid-Pix notice
From signing up on the portal to the first payment notice. Each step depends on the one before it.

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.

Mutual TLS: your server and the bank present certificates to each other; only over that channel does the access token come out and charges go inclient_id + scopesaccess_tokenYour servercertificate + private keySicoobserver certificateBoth sides present a certificateWithout a registered certificate, thebank drops the connection before OAuth
The certificate is checked during the TLS handshake. The OAuth token is only issued after both sides recognize each other.

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

SymptomLikely causeFix
invalid_client on the token callthe certificate on the connection is not the one registered, or the client_id belongs to another applicationupload the public key of the same A1 the server uses
TLS handshake errorthe request went out without a client certificateattach the agent to every request
403 / insufficient scopethe token was requested without the scope for that operationadd cob.write to create charges and webhook.write for the webhook
401 after a few minutesexpired tokenrefresh before expires_in
everything stops one daythe A1 certificate expiredrenew 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:

FieldWhat goes in it
clientIdthe client_id from the portal
pixKeythe account's Pix key
bankingContract, bankingNumbercollection contract and account, only for boletos
PFX certificate + passwordthe 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.

All articles

Keep reading

A checkout page with a Pix QR code and a copy button, a customer paying from her phone and the green mark of a confirmed orderR$89.90expires in 14:32Copy codePix on your website's checkout

Payments

How to accept Pix payments on your website: a developer guide

Build a Pix checkout end to end: create the charge on your backend, show the QR and copy-and-paste code, confirm by webhook, handle expiry. With curl and Node.

7 min readRead the article
An integration created in Banco Inter's online banking becomes a certificate and key bundle, and your system starts generating Pix QR codes.crt + .keyBanco Inter Pix API

Payments

Banco Inter Pix API: how to integrate it

How to create a Banco Inter API integration, download its certificate and key, authenticate, issue a first Pix charge and reuse the same credential for boletos.

6 min readRead the article
Your system sends the boleto request, the bank registers it, and the boleto comes out with a barcode and a Pix QR codePOST /v1/boletosBarcode + Pix QRRegistered

Payments

Boleto bancário explained, and how to issue boletos via API

What a boleto is, how Brazilians pay it, why it survives next to Pix, and what a business needs to issue registered boletos through its own bank's API.

6 min readRead the article