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.

StepWhere
Register the machinein 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 appin 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 idthe machine's menu in the list: Copiar ID (pinpadCredentialId) (Copy ID). That is the pinpadCredentialId value in requests
Enable the tokenunder 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:

HeaderRequiredValue
AuthorizationyesBearer <organization token>, with the Pinpad permission
Content-Typeyes, on POSTapplication/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"
  }'
FieldRequiredValues
pinpadCredentialIdyesthe machine's id, copied in the dashboard. It must belong to the token's organization and be connected
amountyesamount in reais, a decimal number greater than zero, such as 25.9. It is rounded to 2 decimal places
paymentTypeyesCREDIT, DEBIT, VOUCHER (meal or food voucher card) or PIX (Brazil's instant payment system). The Getnet app accepts CREDIT, DEBIT and VOUCHER
financingTypenoNONE single payment (default), MERCHANT installments paid by the merchant, interest-free for the customer, or ISSUER installments with the card issuer's interest
installmentsnointeger number of installments, default 1. Installments require CREDIT, 2 or more installments and a financingType other than NONE
referenceCodenothe 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

FieldUse
idthe charge's identifier, used in GET /v1/pinpads/<id>
referenceCodethe identifier you sent, or null
amount, paymentType, financingType, installmentswhat was charged
statusthe charge's state; see Track the result
resultCode, resultDetailsthe result's code and detail, as the machine returned them
nsu, authorizationCodethe NSU (the acquirer's transaction number) and authorization code of an approved transaction
cardBrand, cardBin, cardLastDigits, cardHolderNamecard brand, first digits, last digits and cardholder name, as on the receipt
errorMessagethe reason for an ERROR charge
completedAtdate and time of the result
pinpadCredentialthe machine: id, name, login and provider. It is null if the machine was deleted
createdAt, updatedAtcreation 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"
statusMeaning
PENDINGthe amount is on the machine, waiting for the customer
APPROVEDpayment approved; nsu, authorizationCode and the card details are filled in
DENIEDthe machine denied the payment
CANCELLEDthe operation was cancelled on the machine
ERRORthe 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"
ParameterRequiredValues
pinpadCredentialIdnoonly the charges of one machine
statusnoPENDING, APPROVED, DENIED, CANCELLED or ERROR
paymentTypenoCREDIT, DEBIT, VOUCHER or PIX
searchnopart of the id, the referenceCode, the NSU, the authorization code, the card's last digits, or the machine's user or name
startDate, endDatenofirst and last day in YYYY-MM-DD format, in Brasília time (UTC−3)
pagenopage, starting at 0 (default)
pageSizenoitems 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

StatusResponseFix
400Missing param: pinpadCredentialIdSend the machine's id
400O 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
400Pinpad ocupado com outra cobrança em andamento. (pinpad busy with another charge)Wait for the result of the charge in progress
400Valor inválido. (invalid amount)Send amount as a number greater than zero
400Tipo de pagamento inválido. (invalid payment type)Use CREDIT, DEBIT, VOUCHER or PIX
400Tipo 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
400Tipo de financiamento inválido. (invalid financing type)Use NONE, MERCHANT or ISSUER
400Número de parcelas inválido. (invalid number of installments)Send installments as an integer starting at 1
400Parcelamento só é permitido no crédito. (installments only on credit)Use CREDIT or financingType NONE
400Parcelamento exige 2 ou mais parcelas. (installments need 2 or more)Send installments of 2 or more, or use financingType NONE
400Parcelas acima de 1 exigem o tipo de financiamento (lojista ou emissor). (more than 1 installment needs a financing type)Send financingType MERCHANT or ISSUER
400referenceCode deve ter no máximo 100 caracteres. (referenceCode up to 100 characters)Shorten the referenceCode
400referenceCode pedido-1042 já foi utilizado em outra transação. (referenceCode already used)Use another referenceCode or read the charge that already exists
400Recurso disponível apenas para organizações no Brasil (BRL). (available only to organizations in Brazil)The organization is not in reais
401missing, invalid, disabled or deleted tokenSee Authentication
403Este 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
403request made with a signed-in site sessionUse an organization token
404no bodyThe 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.