跳到主要内容

模拟授权

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
}

请求体字段说明

下表列出了上述请求中所有变量的描述。

字段类型描述最大字符数示例
card_keystring卡片唯一密钥(必填)36"ff3c4484-7a52-457e-b989-d9dcb87dfcd6"
authorization_typestring授权类型(必填)枚举值
merchant_namestring商户名称40"Supermarket XYZ"
merchant_citystring商户城市40"São Paulo"
merchant_regionstring商户所在国家2"BR"
merchant_postal_codestring商户邮政编码8"01001000"
merchant_mccstring商户类别代码(MCC)枚举值
amountnumber交易金额-150.75

merchant_mcc 枚举值

枚举值描述
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 枚举值

枚举值描述
purchasePurchase
reversalReversal
withdrawalWithdrawal