Pular para o conteúdo principal

Simulação de autorização

Request

ENDPOINT
/mock/card/authorization
MÉTODO
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
}

Objeto Request Body

Nessa tabela, está disponível o descritivo de todas as variáveis utilizadas pelas requisições acima detalhadas.

CampoTipoDescriçãoMáx. Caract.Exemplo
card_keystringChave única do cartão (obrigatório)36"ff3c4484-7a52-457e-b989-d9dcb87dfcd6"
authorization_typestringTipo de autorização (obrigatório)Enumeradores
merchant_namestringNome do estabelecimento40"Supermarket XYZ"
merchant_citystringCidade do estabelecimento40"São Paulo"
merchant_regionstringPaís do estabelecimento2"BR"
merchant_postal_codestringCódigo postal do estabelecimento8"01001000"
merchant_mccstringCódigo da categoria do estabelecimento (MCC)Enumeradores
amountnumberValor da transação-150.75

Enumeradores merchant_mcc

EnumeradorDescrição
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

Enumeradores authorization_type

EnumeradorDescrição
purchasePurchase
reversalReversal
withdrawalWithdrawal