During a credit card transaction, the issuing bank’s system generates and sends a code that either approves (authorizes) or declines a sale. This code, generally consisting of five or six numbers, is used by merchants to verify that the sale was approved.*
*https://www.mastercard.us/en-us/merchants/get-support/merchant-learning-center/glossary.html