Getnet DocsGetnet Docs

Result Codes and Data Structures

This page provides reference documentation for the status codes and data structures returned by the Getnet Payment App via App2App deeplinks.

Result codes

Values returned in the result field by most deeplinks (Payment, Refund, Polling, Reprint, Reports, Shift, Pre-authorization):

CodeStatusMeaning
"0"SuccessOperation completed successfully.
"1"DeniedTransaction rejected by the issuer or card brand.
"2"CanceledThe command was aborted (for example, by a Cancel Operation request).
"3"ErrorTechnical failure during processing.
"4"UnknownState uncertain. Verify the transaction status.

The Cancel Operation deeplink returns "6" (operation successfully canceled) in its own response. The command it aborts (Payment, Refund, or Pre-authorization) returns "2" (Canceled). See Cancel an Operation in Progress.

Check status codes

The getnet://payment/v1/transaction-check-status deeplink uses a different set of values in its result field, reflecting the current transaction status:

CodeStatusMeaning
"0"APPROVEDTransaction approved.
"1"AUTHORIZEDTransaction authorized.
"2"REFUNDEDTransaction refunded.
"3"CANCELEDTransaction canceled.
"4"REVERSEDTransaction reversed.
"5"NOT_FOUNDNo transaction was found for the given callerId.
"6"UNKNOWNAn unexpected value was returned.

Data structures

The following objects are returned by specific deeplinks as JSON-formatted strings.

CommerceData

Object returned by getnet://payment/v1/commerce-data in the commerceData field:

FieldTypeDescription
legalNameStringLegal name of the merchant.
commerceNumberStringMerchant identification number.
commerceCuitStringMerchant’s tax identification number: CUIT in Argentina, CNPJ in Brazil, or RUT in Chile.
branchNameStringStore branch name.
littleBranchNameStringShort name of the store branch.
branchNumberStringStore branch number.
branchAddressStringBranch address.
branchDistrictStringDistrict or area of the store branch.
terminalIdStringIdentifier code of the terminal.
serialNumberStringSerial number of the POS terminal.

Terminal information

Object returned by getnet://payment/v1/get-info. Some values may be empty strings when not available.

FieldTypeDescription
terminalIdStringIdentifier that uniquely distinguishes the terminal in the merchant’s infrastructure.
serialNumberStringManufacturer-assigned serial number of the terminal.
terminalModelStringPhysical model of the terminal.
osStringOperating system version installed on the terminal.
emvModuleStringVersion or identifier of the EMV module.
appVersionNameStringVersion of the Payment Application.
communicationUrlStringEndpoint used to communicate with the acquirer’s backend.
primaryIpStringPrimary IP address used for network connectivity.
companyStringService Provider Name (SPN) of the SIM.
apnStringAccess Point Name for the mobile data connection.
simIdStringIdentifier of the SIM card installed in the terminal.
communicationTypeStringCurrent communication method: Wi-Fi or GPRS.
wifiStringNetwork name of the current Wi-Fi connection.
certificateStatusBooleantrue if the SDK certificate is valid.
tipEnabledBooleantrue if tip is enabled.
receiptBooleantrue if receipt is enabled.
salespersonBooleantrue if the salesperson code is enabled.
installmentCommerceBooleantrue if the merchant allows installment payments.
issuerInstallmentsBooleantrue if the card issuer offers installments.

Operation

Individual transaction object within the detailed sales report (reportType="0") returned by getnet://payment/v1/reports:

FieldTypeDescription
paymentIdStringInternal payment ID.
paymentTypeStringPayment type (currently an empty string).
opReasonMessageStatusStringOperation status message.
capturedStateStringCaptured state (currently an empty string).
timestampStringTimestamp of the operation in ISO8601 with time zone.
brandTypeStringCard brand.
cardLastNumberStringLast 4 digits of the card used.
operationValueStringOperation value.
operationStringType of operation: credit, debit, voucher, qrcode, or cancellation.
opDescriptionStringOperation description (currently an empty string).

Shift response

Fields returned by getnet://payment/v1/shift:

FieldTypeDescription
resultStringOperation result code.
resultDetailsStringDetailed message of the shift operation result.
totalOfShiftsStringCurrent shift amount. Returned only when shiftOperation is "3".