Getnet DocsGetnet Docs

Methods and Parameters

This reference lists Integrated POS methods and their parameters. It is a lookup for developers; for step-by-step flows, use the Quick Start and payment or operational guides.

What are these methods

Integrated POS exposes connection management methods (CreateHttp, CreateUsb, CreateCloud, Polling, GetInfo, Close) and device operation methods (Sale, Refund, PreAuth, GetReports, Shift, GetLastVoucher, etc.). All device operations are invoked on a Connector instance returned by one of the Create methods. Only one operation at a time can be in progress per Connector. Parameter names and types may differ slightly by SDK (.NET, Kotlin, JavaScript/TypeScript).

Only one device operation can be in progress per Connector at any time. Wait for the response (or error) before sending the next command. See Connector communication flows.

Connector creation methods

The following tables describe the connector creation methods:

CreateHttp

Creates a Connector using HTTP (Wi-Fi or Ethernet).

ParameterTypeRequiredDescription
hostnameStringYesHostname, IPv4, or IPv6 of the POS device.
portintNoRemote port (default 8080).
setupParamsHashMap<String, String>NoTerminal configuration. See reconnection behavior if used.

CreateUsb

Creates a Connector using USB (serial).

ParameterTypeRequiredDescriptionAvailability
addressStringYesSerial port address (e.g. COM3, /dev/ttyACM0)..NET
usbDeviceUsbDeviceYesAndroid USB device object.Kotlin
setupParamsHashMap<String, String>NoTerminal configuration. See reconnection behavior if used.Kotlin

Exactly one of address (.NET) or usbDevice (Kotlin) is required depending on the platform. When using setupParams, check the reconnection flow section for details.

CreateCloud

Creates a Connector that reaches a remote terminal through the Getnet cloud. No hostname or port is required; the cloud routes each command to the registered terminal.

ParameterTypeRequiredDescription
setupParamsHashMap<String, String>NoTerminal configuration. See reconnection behavior if used.

CreateCloud is available in the Kotlin and JavaScript/TypeScript libraries. When using setupParams, check the reconnection flow section for details.

Close

Finishes all resources in memory. After this function being called you will not be able to re-use the connector object. No parameter is expected.

Connection management

The following tables describe the connection management methods:

Polling

Validates connectivity and terminal readiness. Must be called before device operations.

Parameters: none.

Return:

Parameter NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
ConnectedBoolWhether the terminal is connected and responsive.

GetInfo

Retrieves device and commerce information from the POS (model, serial, network, merchant identifiers). Useful for validation or diagnostics.

Parameters: none.

Return:

Parameter NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
LegalNameStringLegal name of the commerce.
CommerceCuitStringMerchant identification (CUIT, CNPJ, or Rut).
CommerceNumberStringIdentification of the seller (sellerCode).
BranchNumberStringBranch code (identification number).
BranchNameStringLegal name of the branch.
LittleBranchNameStringShort name of the branch.
BranchAddressStringFull commerce address.
BranchDistrictStringCity or district of the commerce.
TerminalIdStringLogical identification of the terminal (terminalCode).
SerialNumberStringTerminal physical serial number.
TerminalModelStringTerminal model name.
OSStringAndroid version/SDK version of the terminal.
EmvModuleStringVersion of the EMV module.
AppVersionNameStringPayment application version.
CommunicationUrlStringCommunication address for terminals.
PrimaryIPStringCurrent IP number of the terminal.
CompanyStringMobile network operator name (if using SIM).
ApnStringSIM Access Point Name.
SimIdStringSIM identifier (ICCID).
CommunicationTypeStringNetwork connection type (e.g., Wi-Fi, USB, HTTP).
WifiStringName of the connected Wi-Fi network.
CertificateStatusBooleanTrue if the SDK certificate is valid.
TipEnabledBooleanTrue if tip entry is enabled.
ReceiptBooleanTrue if receipt printing/content is enabled.
SalespersonBooleanTrue if salesperson code entry is enabled.
InstallmentsCommerceBooleanTrue if commerce installment plans are enabled.
IssuerInstallmentsBooleanTrue if issuer installment plans are enabled.

Device operations

The following tables describe the device operations:

Sale

Executes a payment (single-step, installments, or QR code).

ParameterTypeRequiredDescription
AmountLongNoTransaction value (last 2 digits = decimals).
SaleTypeEnumNoCard, QrCode.
PrintOnPosBoolNoPrint receipt on POS.
EmployeeIdIntNoWaiter ID.
TipLongNoTip amount. Not supported for QR.
InstallmentsIntNoNumber of installments.
SkipReceiptBoolNoSkip client receipt.
SkipConfirmationBoolNoSkip confirmation screen.
PlanIdStringNoInstallment plan.
InterestEnumNoOnPosSelection, Interest, NoInterest.
OperationModeEnumNoCalculatedGetnet (terminal calculates) or CalculatedISV (your application calculates). Defaults to CalculatedGetnet if omitted.
CallerIdStringNoID generated by the automation system (max 100 chars), required to later query the transaction with Check Status. No special or Unicode characters.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
CommerceCodeStringUnique branch code approved by Getnet.
TerminalIdStringLogical identification of the terminal.
AuthorizationCodeStringTransaction authorization code.
AmountLongFinal charged amount in local currency.
Last4DigitsStringThe last four digits of the customer’s card.
CardTypeStringType of card used.
AccountingDateStringTransaction timestamp at GMT (may return defaults if null).
CardBrandStringCard brand used in the transaction.
RealDateDateTransaction timestamp at Local (may return defaults if null).
EmployeeIdIntID of the waiter/employee.
TipLongTip amount included in the sale.
SaleTypeEnumCard or QR Code.
ReceiptContentDictStandardized receipt data if PrintOnPos is false. See ReceiptContent Object.
PlanIdStringThe selected installment plan (Present if applicable).
InterestEnumIf interest was applied (Present if applicable).
OperationModeEnumCalculatedGetnet or CalculatedISV. May be omitted or defaulted if not sent.
OriginalAmountLongInitial amount before adjustments (Present if applicable).
InstallmentsIntNumber of installments used (Present if applicable).
CallerIdStringID generated by the automation system (max 100 chars).
CardBinStringThe first eight digits of the customer’s card (max 8).

Refund

Executes a refund (cancellation).

ParameterTypeRequiredDescription
AuthorizationCodeStringNoOriginal transaction authorization code (6 digits).
OriginTransDateDateNoDate of the original transaction, in ISO8601 format with time zone. Must be no later than the current date.
AmountLongNoRefund amount (partial supported).
SkipConfirmationBoolNoSkip confirmation screen.
SkipReceiptBoolNoClient receipt not printed.
PrintOnPosBoolNoPrint on POS or return in response.
RefundTypeEnumNoSpecifies which part of a sale to refund: SaleWithdrawal, Sale, or Withdrawal.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
CommerceCodeStringUnique merchant code approved by Getnet.
TerminalIdStringLogical identification of the terminal.
AuthorizationCodeStringAuthorization code of the refund operation.
NsuLastSuccessfulMessageStringNSU of the last successful message.
ReceiptContentDictStandardized receipt data objects; provided if PrintOnPos is false. See ReceiptContent Object.

GetLastVoucher

Retrieves or reprints the last transaction voucher.

ParameterTypeRequiredDescription
PrintOnPosBooleanNoPrint on POS or return content.
SkipReceiptBooleanNoIf PrintOnPos true: do not print client receipt. Default false.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
ReceiptContentDictStandardized receipt data objects if PrintOnPos is false. See ReceiptContent Object.

If the last operation was a Report type (Totals, Detailed, Shift), no voucher is available for reprint. A message indicating this scenario will be returned.

GetReports

Retrieves Totals, Detailed, or Shift report.

ParameterTypeRequiredDescription
TypeEnumYesTotals, Detailed, or Shift.
PrintOnPosBooleanNoPrint on POS or return in response.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
ReportDetailsDictStructured data provided if PrintOnPos is false. Content varies by Type.

ReportDetails (Totals)

A summarized view of all operations, grouped into per-operation-type objects plus a global operationTotals object.

Per-operation objects — debitOperation, creditOperation, qrcodeCreditOperation, qrcodeDebitOperation, qrcodePrePaidOperation, devolutionOperation, prePaidOperation, and qrcodeOperation. Each contains:

FieldTypeDescription
quantityStringNumber of transactions.
amountStringTotal amount.
amountSalesDiscountedStringTotal amount from sales with discount.
refundsAmountStringTotal amount from refunds.
salesCancelledQuantityStringNumber of cancelled sales.
listOperationStringList of Operation objects (see ReportDetails (Detailed)).

operationTotals object — global totals across all operations:

FieldTypeDescription
salesAmountStringTotal amount of sales.
salesQuantityStringNumber of sales.
refundsAmountStringTotal amount of refunds.
refundsQuantityStringNumber of refunds.
tipAmountStringTotal amount of tips.
tipQuantityStringNumber of tips.
qrPctAmountStringTotal amount of QR Codes.
qrPctQuantityStringNumber of QR Codes.
totalCreditStringTotal amount of credit sales.
totalDebitStringTotal amount of debit sales.
totalPrepaidStringTotal amount of prepaid sales.

ReportDetails (Detailed)

A list of individual operations.

FieldTypeDescription
authorizationCodeStringTransaction authorization code.
paymentIdStringInternal unique payment identifier.
opReasonMessageStatusStringOperation status message.
timestampDateTransaction timestamp (ISO8601).
brandTypeStringCard brand used.
cardLastNumberStringLast 4 digits of the card.
operationValueLongValue of the operation.
operationEnumOperation type: credit, debit, voucher, QR code, cancellation, or refund.

Reports must be requested at least 2 minutes after the last sale or shift change to ensure data synchronization.

Shift

Shift setup, change, or get count.

ParameterTypeRequiredDescription
ShiftOperationEnumYesConfiguration (Setup), Change, or GetShifts.
NumberOfShiftsIntConditionalRequired only for Configuration to set the total shift count (max 2 digits).
SkipConfirmationBooleanNoSkip shift change confirmation screen.
PrintOnPosBooleanNoPrint shift data on terminal.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
TotalOfShiftsIntCurrent shift count.
ReportDetailsStringProvided only if PrintOnPos is false and ShiftOperation is Change.

PreAuth

Manages the pre-authorization lifecycle (Create, Modify, Remove, Confirm, Retrieve).

Parameters:

ParameterTypeRequiredDescription
OperationEnumYesCreate, Modify, Remove, Confirm, Retrieve.
ReservationCodeStringNoNeeded for Modify, Remove, or Confirm (max 5 characters). Optional, but must be unique if sent; the automation system is responsible for uniqueness. Named reservationId in the SDK.
AuthorizationCodeStringConditionalValid code required to identify the transaction for modification (6 digits).
OriginalTransactionDateDateConditionalRequired to identify the pre-authorization for Modify, Remove, or Confirm. In ISO8601 format with time zone.
AmountLongNoAmount in local currency, last 2 digits as decimals (max 9 digits).
PlanIdStringNoInstallment plan ID (Argentina).
InstallmentsIntNoNumber of installments.
FiltersObjectNoSearch criteria (only for Retrieve). See PreAuth Filters.
PrintOnPosBoolNoPrint receipt on POS or return in response.
SkipReceiptBoolNoDo not print client receipt.
SkipConfirmationBoolNoSkip confirmation screen.
CallerIdStringNoID generated by the automation system (max 100 chars). Required to later query a Create transaction with Check Status. No special or Unicode characters.

PreAuth Filters

Used only when Operation is Retrieve.

Field NameTypeDescription
InitialDateDateStart threshold for retrieving pending pre-authorizations, in ISO8601 format with time zone (default: current date). Cannot be after the current date or after FinalDate.
FinalDateDateEnd threshold, in ISO8601 format with time zone (default: current date). Cannot be after the current date or before InitialDate.
AuthorizationCodeStringFilter by specific authorization code (6 digits).
ReservationCodeStringFilter by specific reservation code (max 5 characters).
Last4CardDigitsStringFilter by last 4 digits of the card.
CardBrandIntFilter by card brand: 0 = ALL (default), 1 = Visa, 2 = MasterCard, 3 = Amex.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message (e.g., “APPROVED”).
AuthorizationCodeStringTransaction authorization code.
AmountLongFinal amount in local currency.
OriginalAmountLongValue before any adjustments.
PlanIdStringThe selected installment plan.
InstallmentsIntNumber of installments.
Last4DigitsStringLast four digits of the customer’s card.
CardTypeStringType of card.
AccountingDateDateTransaction date and time (GMT).
CardBrandStringCard brand used.
RealDateDateTransaction date and time (Local).
ReceiptContentDictStandardized receipt data if PrintOnPos is false. See ReceiptContent Object.
ReservationIdStringReservation code identifier.
CommerceCodeStringUnique merchant code.
TerminalIdStringPOS terminal code.
PendingPreAuthorizationsListList of items (only for Retrieve). See Pending Authorization Item.
CardBinStringThe first eight digits of the customer’s card (max 8).
CallerIdStringID generated by the automation system (max 100 chars).

Pending Authorization Item

Structure of objects inside the PendingPreAuthorizations list.

Field NameTypeDescription
TransactionDateDateDate and time when processed.
AmountLongTransaction amount in local currency.
AuthorizationCodeStringTransaction authorization code.
Last4DigitsStringLast four digits of the card used.
EntryModeEnumCHIP, MAGSTRIPE, CONTACTLESS.
CommerceCodeStringUnique branch code.
TerminalIdStringPOS terminal code.
DateLimitDateExpiration date for the pre-authorization.
ReceiptCodeStringIdentification code printed on the receipt.
ReservationIdStringTransaction identifier provided by the user when the pre-authorization is created or updated.

Cancel

Cancels a command currently in progress, returning the terminal to the POS Connected screen.

Parameters: none.

Return:

Field NameTypeDescription
CodeIntResponse code; 6 indicates the Cancel operation executed successfully.
MessageStringResult message.

Only Sale (Card/QR), Refund, and Pre-authorization accept cancellation. Canceling a non-cancelable command returns “The operation isn’t cancellable”; canceling with no active operation returns “There’s no active operation to cancel”. When a command is successfully canceled, the canceled command also returns Code 2 (canceled).

Check Status

Searches for the status of a specific transaction processed in the last 72 hours, identified by its CallerId.

Parameters:

ParameterTypeRequiredDescription
CallerIdStringYesID generated by the automation system for the original transaction (max 100 chars). No special or Unicode characters. Must match the CallerId sent in the original transaction; otherwise an incorrect status may be returned. To check a Refund, use the same CallerId sent in the original Sale.

Return:

Field NameTypeRequiredDescription
CodeIntYesTransaction status code (0–6). See the table below.
MessageStringYesText message representing the operation result.
CallerIdStringYesID generated by the automation system.
StatusEnumYesCurrent transaction status: APPROVED, AUTHORIZED, REFUNDED, CANCELED, REVERSED, NOT_FOUND, or UNKNOWN.
AuthorizationCodeStringNoTransaction authorization code (6 digits). May be null if no transaction was found for the CallerId.

Transaction status codes:

CodeStatusDescription
0APPROVEDTransaction captured (approved). Used for standard card sales and QR Code with card.
1AUTHORIZEDTransaction authorized (pre-authorization or QR PCT). Exclusive to QR Code PCT payments.
2REFUNDEDTransaction refunded (D+1).
3CANCELEDTransaction canceled (D+0).
4REVERSEDTransaction reversed (undone).
5NOT_FOUNDNo transaction was found for the given CallerId.
6UNKNOWNUnknown or unmapped status.

QR Code behavior: A QR PCT (Point of Capture) transaction always returns AUTHORIZED (code 1) — never APPROVED. A QR Code with card follows standard card behavior and returns APPROVED (code 0) once captured.

A transaction may take a short time to be fully processed at the Getnet platform. If you query it immediately after capture, you may receive NOT_FOUND; in that case use Retrieve Last Voucher instead.

If multiple transactions share the same CallerId, the system uses the most recent one to determine the status. Wait at least 2 minutes after a refund to retrieve the most up-to-date status. Check Status supports querying the Create pre-authorization operation only.

SwitchToNormalPos

Deactivates Integrated POS mode correctly, allowing manual use of the terminal.

Parameters: none.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message.

Setup

Defines terminal configuration, such as a custom friendly name for identification.

ParameterTypeRequiredDescription
SetupParamsDict/MapYesIdentification keys and values (e.g., friendly_name).

Available settings:

KeyTypeDescription
friendly_nameStringCustom name associated with every payment, refund, and pre-authorization transaction; used internally by Getnet to identify the source. Only alphanumeric and whitespace characters are allowed — no special characters (e.g. ISV Name2 is valid; I.S.V ? N@m!2 is not). Defaults to ConectorApp.

If you use a custom friendly_name, send it on every connection (CreateUsb, CreateHttp, or CreateCloud), because reconnection resets the terminal configuration.

Return:

Field NameTypeDescription
CodeIntResponse code; 0 indicates success.
MessageStringResult message.

ReceiptContent object

When PrintOnPos is false, operations that generate a receipt (Sale, Refund, GetLastVoucher, PreAuth) return a ReceiptContent object — a JSON-formatted string with the receipt fields — so the automation system can print or store the receipt. If the automation system takes over printing, it must print at least the merchant’s receipt; the customer’s receipt is optional.

FieldTypeDescription
getnetLogoStringGetnet logo encoded as a base64 string.
sellerNameStringMerchant’s name.
sellerAddressStringMerchant’s address.
cuitStringUnique document code.
comStringMerchant’s seller code.
aidStringTerminal AID code.
termStringTerminal code.
authorizationCodeStringAuthorization code for this receipt.
letterTypeTransactionStringIndicates the card input technology.
dateTimeStringTimestamp of the receipt in ISO8601 (UTC).
cardLastDigitsStringLast 4 digits of the card.
brandStringCard brand.
receiptCodeStringIdentification code printed on the receipt.
amountStringTransaction value plus tip (if applied), in local currency.
tipStringTip amount.
operationTypeStringOperation type.
errorMessageStringError message.
cardholderValidationMethodStringValidation method used in the transaction.