Skip to main content

Operations

API operations overview

Before exploring the features provided by the API, it’s important to understand the key concepts involved in processing credit card transactions. These operations are fundamental to ensure a secure and efficient checkout flow in your e-commerce.

Core operations

The table below highlights the main available operations and their descriptions:

PropriedadeDescrição
PaymentThe primary e-commerce operation—this is how a sale is completed.
CancellationUsed to void/refund a sale on the same day it was captured.
AuthenticationA process that adds an extra security layer to the sale by validating it in the Payment Gateway.
TokenizationEnables secure transactions by replacing the card number with a token.

Return code table

When using our API, you’ll receive JSON responses with detailed information about the status of each operation. The table below highlights the main return codes and their descriptions:

CódigoDescrição
00SUCCESS
01TRANSACTION NOT AUTHORIZED BY ISSUER - 01
03TRANSACTION NOT AUTHORIZED BY ACQUIRER - INVALID MERCHANT - 03
04TRANSACTION NOT AUTHORIZED - INVALID CARD - 04
05TRANSACTION NOT AUTHORIZED BY ISSUER - 05
06TRANSACTION NOT AUTHORIZED - UNKNOWN - 06
07TRANSACTION NOT AUTHORIZED - INVALID CARD - 07
12TRANSACTION NOT AUTHORIZED - INVALID TRANSACTION - 12
13TRANSACTION NOT AUTHORIZED - INVALID AMOUNT - 13
14TRANSACTION NOT AUTHORIZED - INVALID CARD - 14
15TRANSACTION NOT AUTHORIZED - INVALID TRANSACTION - 15
19TRANSACTION NOT AUTHORIZED - TRY AGAIN - 19
30TRANSACTION NOT AUTHORIZED - INVALID TRANSACTION - 30
38TRANSACTION NOT AUTHORIZED - INVALID PIN/PASSWORD - 38
39TRANSACTION NOT AUTHORIZED - INVALID TRANSACTION - 39
40TRANSACTION NOT AUTHORIZED - INVALID FUNCTION - 40
41TRANSACTION NOT AUTHORIZED - LOST/STOLEN CARD - 41
43TRANSACTION NOT AUTHORIZED - STOLEN CARD - 43
46TRANSACTION NOT AUTHORIZED - ACCOUNT CLOSED - 46
51TRANSACTION NOT AUTHORIZED BY ISSUER - 51
52TRANSACTION NOT AUTHORIZED - INVALID TRANSACTION - 52
53TRANSACTION NOT AUTHORIZED - INVALID TRANSACTION - 53
54TRANSACTION NOT AUTHORIZED BY ISSUER - EXPIRED CARD - 54
55TRANSACTION NOT AUTHORIZED - INVALID PIN/PASSWORD - 55
57TRANSACTION NOT AUTHORIZED BY ISSUER - 57
58TRANSACTION NOT AUTHORIZED - NOT PERMITTED FOR MERCHANT - 58
59TRANSACTION NOT AUTHORIZED BY ISSUER - SUSPENDED CARD - 59
61TRANSACTION NOT AUTHORIZED - LIMIT EXCEEDED - 61
62TRANSACTION NOT AUTHORIZED - RESTRICTED CARD - 62
63TRANSACTION NOT AUTHORIZED - INVALID PIN/PASSWORD - 63
65TRANSACTION NOT AUTHORIZED BY ISSUER - 65
70TRANSACTION NOT AUTHORIZED - UNKNOWN - 70
75TRANSACTION NOT AUTHORIZED - INVALID PIN/PASSWORD - 75
78TRANSACTION NOT AUTHORIZED - BLOCKED CARD - 78
79TRANSACTION NOT AUTHORIZED - Card Fraud/Security - 79
82TRANSACTION NOT AUTHORIZED - Card Fraud/Security - 82
83TRANSACTION NOT AUTHORIZED - Card Fraud/Security - 83
91TRANSACTION NOT AUTHORIZED - BRAND/ISSUER UNAVAILABLE - 91
93TRANSACTION NOT AUTHORIZED - INVALID CARD - 93
94TRANSACTION NOT AUTHORIZED - DUPLICATE TRANSACTION - 94
96TRANSACTION NOT AUTHORIZED - PROCESSING ERROR - 96

Test cards for the sandbox environment

You can use the cards below to test operations in the sandbox environment:

BandeiraNúmero do Cartão (PAN)ValidadeCVV
Mastercard5200 0000 0000 215125/09123
Visa4000 0000 0000 250325/12123
AMEX3400 0000 0000 253425/101234
Hipercard6062 8288 9854 198825/09123
ELO6505 2900 0000 219025/11123

Developer tips

  • Always use secure connections (HTTPS) when consuming the API.
  • Handle authentication tokens carefully, avoiding exposure in logs or clients.
  • Keep up with our updates to stay compliant with the latest industry standards.

For questions or issues, visit the support section in Sopague.