Skip to main content

Simulate authorization

Request

ENDPOINT
/mock/card/authorization
METHOD
POST
Request Body
{
"card_key": "ff3c4484-7a52-457e-b989-d9dcb87dfcd6",
"merchant_name": "Supermarket XYZ",
"merchant_city": "São Paulo",
"merchant_region": "BR",
"merchant_postal_code": "01001000",
"merchant_mcc": "5411",
"amount": 150.75,
"authorization_type": "purchase"
}

Response

{
"is_approved": true,
"response_code": "00",
"limit_amount": null
}

Request Body Object

In this table, a description of all the variables used in the above-detailed requests is available.

FieldTypeDescriptionMax. LengthExample
card_keystringCard unique key (required)36"ff3c4484-7a52-457e-b989-d9dcb87dfcd6"
authorization_typestringType of the authorization (required)Enumerators
merchant_namestringName of the merchant40"Supermarket XYZ"
merchant_citystringCity of the merchant40"São Paulo"
merchant_regionstringCountry of the merchant2"BR"
merchant_postal_codestringPostal code of merchant8"01001000"
merchant_mccstringCategory code of the merchantEnumerators
amountnumberTransaction amount-150.75

Merchant_mcc enumerators

EnumeratorDescription
5812Eating Places, Restaurants
5499Miscellaneous Food Stores
5814Fast Food Restaurants
5411Grocery Stores, Supermarkets
4121Taxicabs and Limousines
4111Local and Suburban Transit
4215Courier Services, Air or Ground
5912Drug Stores and Pharmacies
5815Digital Goods: Applications (Excludes Games)
8999Professional Services (Not Elsewhere Classified)
5462Bakeries
5541Service Stations (with or without Ancillary Services)
7523Parking Lots, Parking Meters and Garages
5300Wholesale Clubs
4899Cable, Satellite and Other Pay Television and Radio Services
5311Department Stores
5813Bars, Cocktail Lounges, Discotheques, Nightclubs and Taverns (Drinking Places)
7372Computer Programming, Data Processing and Integrated Systems Design Services
5099Durable Goods (Not Elsewhere Classified)
5943Stationery Stores, Office and School Supply Stores
7299Miscellaneous Personal Services (Not Elsewhere Classified)
5199Nondurable Goods (Not Elsewhere Classified)
7230Beauty and Barber Shops
5999Miscellaneous and Specialty Retail Stores
5651Family Clothing Stores

Authorization_type enumerators

EnumeratorDescription
purchasePurchase
reversalReversal
withdrawalWithdrawal