Skip to main content

Instant Discount Coupons Inquiry

This API checks for available card issuers and conditions for instant discounts based on the card issuer's policies.

Caution
  • You must check the Coupon Exhaustion Rate and Minimum Purchase Amount before requesting a payment.

Request

Caution

Please check the API Domain before requesting.

  • Development Server: testpgapi.easypay.co.kr
  • Production Server: pgapi.easypay.co.kr
Request URL
POST https://{API Domain}/api/etc/inquiryCoupon
Content-type: application/json; charset=utf-8
Caution
  • Request either the cardCd or the cardBin as a search condition, but not both.

Parameters

Field NameTypeLengthRequiredDescription
mallIdString8ByteMerchant ID assigned by KICC
cardCdString3ByteCard Company Code (See Codes)
cardBinString8ByteCard BIN(first 8 digit of card number)
amountNumberPayment Amount
Request Example
{  
"mallId": "{merchant ID}",
"cardBin" : "12345678",
"amount" : "51004"
}

Response

Parameters

Field NameTypeLengthDescription
resCdString4ByteResponse Code (Success: “0000”)
resMsgString1000ByteResponse Message
couponListArrayInstant Discount Info (see couponList below)

couponList

Field NameTypeLengthDescription
couponJoinCdString3ByteTarget Card Code
(See Window Card Codes)
couponJoinNmString50ByteCard Name
couponGidString10ByteInstant Discount Coupon Group ID
calcAuthLimitRateNumberCoupon Exhaustion Rate (%)
standardAmountNumberMinimum Purchase Amount (Discount applies if amount >= this value)
discountTypeString2ByteDiscount Coupon Type(Percentage:01, Fixed Amount:02)
maxDiscountAmountNumberMax Discount Amount(Included Only for Percentage coupon)
couponRateNumberCoupon Discount Rate(Included Only for Percentage coupon)
couponAmountNumberCoupon Discount Amount(For Percentage coupon, Included Only if the amount is provided in Request)
discountRoundingUnitString2ByteRounding unit for percentage-based coupon discount amount(only applicable to percentage-based coupons with discountType=01)
Default: Round to the first decimal place (processed in 1 KRW units)
01: Round to the ones place (processed in 10 KRW units)
02: Round to the tens place (processed in 100 KRW units)
Response Example
{
"res_cd": "0000",
"res_msg": "Success",
"coupon_datas": [
{
"card_cd": "008",
"card_nm": "하나카드",
"coupon_id": "CP12345678",
"calc_auth_limit_rate": 12.03,
"standard_amt": 100000,
"discount_amt": 1000,
"discount_type": "02",
"max_discount_amt": null
},
{
"card_cd": "026",
"card_nm": "비씨카드",
"coupon_id": "CP87654321",
"calc_auth_limit_rate": 60.55,
"standard_amt": 200000,
"discount_amt": 2000,
"discount_type": "01",
"max_discount_amt": 10000
}
]
}