Documentation
Card machine charges
Send a charge to the store's card machine with POST /v1/pinpads, track the approval and list charges with filters.
Before you start
A card machine charge sends an amount to the store's card machine (a "pinpad", called "maquininha" in Brazil): the customer presents the card, the machine approves or denies it, and Intopays returns the result to your system. The machine connects to Intopays through the Getnet app installed on it (Getnet is a Brazilian card acquirer); there is nothing else to set up on the machine for the API.
| Step | Where |
|---|---|
| Register the machine | in the dashboard, under Pinpads → Pinpads → Novo pinpad (New pinpad): Nome (Name, optional, such as Balcão 1), Provedor (Provider) Getnet, Usuário (User, 3 to 120 characters, no spaces, unique across Intopays) and Senha (Password, at least 8 characters) |
| Connect the app | in the machine's app, sign in with the address https://app.intopays.com/pinpads and the user and password you registered. The pinpad list shows Conectado (Connected) or Desconectado (Disconnected), refreshed every 15 seconds |
| Copy the id | the machine's menu in the list: Copiar ID (pinpadCredentialId) (Copy ID). That is the pinpadCredentialId value in requests |
| Enable the token | under Integração → Tokens (Integration → Tokens), open the token with Editar token (Edit token) and turn on Pinpad (see API tokens) |
Registering machines, changing their password and deleting them happen only in the dashboard. The API creates and reads charges with the organization token:
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer <organization token>, with the Pinpad permission |
Content-Type | yes, on POST | application/json |
Card machine charges exist only for organizations in Brazilian reais (BRL).
Create a charge
curl -X POST https://api.intopays.com/v1/pinpads \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"pinpadCredentialId": "019a9b20-4f61-7c3a-8e15-2d7b9c0a4e61",
"amount": 25.9,
"paymentType": "CREDIT",
"financingType": "NONE",
"installments": 1,
"referenceCode": "pedido-1042"
}'
| Field | Required | Values |
|---|---|---|
pinpadCredentialId | yes | the machine's id, copied in the dashboard. It must belong to the token's organization and be connected |
amount | yes | amount in reais, a decimal number greater than zero, such as 25.9. It is rounded to 2 decimal places |
paymentType | yes | CREDIT, DEBIT, VOUCHER (meal or food voucher card) or PIX (Brazil's instant payment system). The Getnet app accepts CREDIT, DEBIT and VOUCHER |
financingType | no | NONE single payment (default), MERCHANT installments paid by the merchant, interest-free for the customer, or ISSUER installments with the card issuer's interest |
installments | no | integer number of installments, default 1. Installments require CREDIT, 2 or more installments and a financingType other than NONE |
referenceCode | no | the order's identifier in your system, up to 100 characters, unique in the organization |
The API answers 201 with the charge in status PENDING, as soon as the amount reaches the machine. The result comes later, when the customer finishes on the machine:
{
"id": "019a9b31-8c02-7e4d-b1a7-6f3e2d9c5b18",
"referenceCode": "pedido-1042",
"amount": 25.9,
"paymentType": "CREDIT",
"financingType": "NONE",
"installments": 1,
"status": "PENDING",
"resultCode": null,
"resultDetails": null,
"nsu": null,
"authorizationCode": null,
"cardBrand": null,
"cardBin": null,
"cardLastDigits": null,
"cardHolderName": null,
"errorMessage": null,
"completedAt": null,
"pinpadCredential": {
"id": "019a9b20-4f61-7c3a-8e15-2d7b9c0a4e61",
"name": "Balcão 1",
"login": "padaria-balcao-1",
"provider": "GETNET"
},
"createdAt": "2026-11-24T15:02:11.420Z",
"updatedAt": "2026-11-24T15:02:11.420Z"
}
Each machine handles one charge at a time: while one is in progress, another charge for the same machine is refused.
Charge fields
| Field | Use |
|---|---|
id | the charge's identifier, used in GET /v1/pinpads/<id> |
referenceCode | the identifier you sent, or null |
amount, paymentType, financingType, installments | what was charged |
status | the charge's state; see Track the result |
resultCode, resultDetails | the result's code and detail, as the machine returned them |
nsu, authorizationCode | the NSU (the acquirer's transaction number) and authorization code of an approved transaction |
cardBrand, cardBin, cardLastDigits, cardHolderName | card brand, first digits, last digits and cardholder name, as on the receipt |
errorMessage | the reason for an ERROR charge |
completedAt | date and time of the result |
pinpadCredential | the machine: id, name, login and provider. It is null if the machine was deleted |
createdAt, updatedAt | creation date and date of the last change |
The machine's receipt and the app's full response are not returned by the API: they show only in the dashboard, under Pinpads → Cobranças (Charges).
Track the result
Read the charge until its status leaves PENDING:
curl https://api.intopays.com/v1/pinpads/019a9b31-8c02-7e4d-b1a7-6f3e2d9c5b18 \
-H "Authorization: Bearer $INTOPAYS_TOKEN"
status | Meaning |
|---|---|
PENDING | the amount is on the machine, waiting for the customer |
APPROVED | payment approved; nsu, authorizationCode and the card details are filled in |
DENIED | the machine denied the payment |
CANCELLED | the operation was cancelled on the machine |
ERROR | the charge did not finish; the reason is in errorMessage |
With no answer from the machine within 130 seconds, the charge becomes ERROR with Tempo esgotado: o pinpad não respondeu. (timed out: the pinpad did not answer) and the machine is free for the next one. A result that still arrives from the machine after that corrects the charge.
The charge also produces the webhook events pinpad.create (created) and pinpad.update (result), with the charge in the pinpadCharge field (see Webhooks). The dashboard's webhook form does not offer those two events yet: track the result by reading the charge.
List charges
curl "https://api.intopays.com/v1/pinpads?status=APPROVED&startDate=2026-11-01&endDate=2026-11-24&pageSize=50" \
-H "Authorization: Bearer $INTOPAYS_TOKEN"
| Parameter | Required | Values |
|---|---|---|
pinpadCredentialId | no | only the charges of one machine |
status | no | PENDING, APPROVED, DENIED, CANCELLED or ERROR |
paymentType | no | CREDIT, DEBIT, VOUCHER or PIX |
search | no | part of the id, the referenceCode, the NSU, the authorization code, the card's last digits, or the machine's user or name |
startDate, endDate | no | first and last day in YYYY-MM-DD format, in Brasília time (UTC−3) |
page | no | page, starting at 0 (default) |
pageSize | no | items per page; default 25, maximum 100 |
The list comes from the newest charge to the oldest. Each item has the charge fields; the example shows only some:
{
"data": [
{
"id": "019a9b31-8c02-7e4d-b1a7-6f3e2d9c5b18",
"referenceCode": "pedido-1042",
"amount": 25.9,
"paymentType": "CREDIT",
"status": "APPROVED",
"nsu": "000418273",
"authorizationCode": "A7K2Q9",
"cardBrand": "VISA",
"cardLastDigits": "4021",
"completedAt": "2026-11-24T15:02:39.104Z"
}
],
"total": 1,
"counts": { "PENDING": 0, "APPROVED": 1, "DENIED": 0, "CANCELLED": 0, "ERROR": 0 },
"page": 0,
"pageSize": 50,
"totalPages": 1
}
total is the number of charges that match the filter, across all pages. counts carries the totals per status.
Errors
| Status | Response | Fix |
|---|---|---|
400 | Missing param: pinpadCredentialId | Send the machine's id |
400 | O pinpad não está conectado. (the pinpad is not connected) | Open the app on the machine and check that it shows Conectado in the dashboard |
400 | Pinpad ocupado com outra cobrança em andamento. (pinpad busy with another charge) | Wait for the result of the charge in progress |
400 | Valor inválido. (invalid amount) | Send amount as a number greater than zero |
400 | Tipo de pagamento inválido. (invalid payment type) | Use CREDIT, DEBIT, VOUCHER or PIX |
400 | Tipo de pagamento PIX não suportado pelo pinpad Getnet. (PIX not supported by the Getnet pinpad) | Use CREDIT, DEBIT or VOUCHER. The charge is recorded as ERROR |
400 | Tipo de financiamento inválido. (invalid financing type) | Use NONE, MERCHANT or ISSUER |
400 | Número de parcelas inválido. (invalid number of installments) | Send installments as an integer starting at 1 |
400 | Parcelamento só é permitido no crédito. (installments only on credit) | Use CREDIT or financingType NONE |
400 | Parcelamento exige 2 ou mais parcelas. (installments need 2 or more) | Send installments of 2 or more, or use financingType NONE |
400 | Parcelas acima de 1 exigem o tipo de financiamento (lojista ou emissor). (more than 1 installment needs a financing type) | Send financingType MERCHANT or ISSUER |
400 | referenceCode deve ter no máximo 100 caracteres. (referenceCode up to 100 characters) | Shorten the referenceCode |
400 | referenceCode pedido-1042 já foi utilizado em outra transação. (referenceCode already used) | Use another referenceCode or read the charge that already exists |
400 | Recurso disponível apenas para organizações no Brasil (BRL). (available only to organizations in Brazil) | The organization is not in reais |
401 | missing, invalid, disabled or deleted token | See Authentication |
403 | Este token não tem a permissão de pinpad. Ative-a em Tokens. (this token lacks the pinpad permission) | Turn on Pinpad on the token, under Integração → Tokens |
403 | request made with a signed-in site session | Use an organization token |
404 | no body | The machine or the charge does not belong to the token's organization. Check the id |
The machine is checked first: the 404 and O pinpad não está conectado. come before the other fields are validated.
Missing something on this page? Contact support from the dashboard and we'll update the docs.
