Step By Step

Step 1. Create an Access Token

Get started by creating an Access Token. Read how to create an Access Token

Step 2. Create an ITP

Read how to create an ITP

import fetch from 'node-fetch'

const response = await fetch('https://api.sqala.tech/core/v1/itp-payments', {
    headers: { 
      'Authorization': 'Bearer ' + 'YOUR_ACCESS_TOKEN',
      'Content-Type': 'application/json' 
    },
    method: 'POST',
    body: JSON.stringify({
        amount: 990, // amount in cents
        payer: {
            name: 'Bruce Wayne',
            taxId: '06516763208' 
        },
      	callbackUrl: 'https://www.google.com/',
        bankCode: '260' // see the OPF Banks Page    
    })
})

const data = await response.json()

console.log(data)

ouput

{
  "id": "e1ae8c2f-e86b-460c-a4c4-16959691d647",
  "code": "ce191955-e34f-41dc-a077-fb12ea83334d",
  "method": "ITP",
  "amount": 100,
  "payer": {
    "name": "Bruce Wayne",
    "taxId": "06516763208",
    "address": {
      "id": "52bcbcf1-a022-4b2c-95e6-454016516ed8",
      "number": null,
      "complement": null
    }
  },
  "split": [],
  "status": "PROCESSED",
  "createdAt": "2025-05-21T17:31:26.571Z",
  "processedAt": "2025-05-21T17:31:31.358Z",
  "paidAt": null,
  "failedAt": null,
  "metadata": {},
  "transactionId": null,
  "url": "https://bank.com.br/open-banking/authorize?client_id=djisdjisjid-asddsad-asdasdas-kokokok",
  "paidAmount": null,
  "receiptUrl": null
}

Step 3. Create an Endpoint to receive the Webhooks

You can create an endpoint directly in the developer area and select which events you want to receive.

Video Example of payment