Download OpenAPI specification:
PCINS e-Pay Interface Format1 (PeP1) Message Data Protocol This data protocol describes the PCINS API specification.
callbackURL to Credit Card Payment (Non-UI) fieldreturnURL to external UI payment fieldcallbackURL to external UI payment fieldpayEmail, payTel fields changed from O -> M Input Value (for Credit Card, Credit Certification, QR Payment).| Abbreviation | Definition |
|---|---|
< |
Variable length data that can be entered up to the written value |
a |
Letter or number such as alphabet |
C |
Conditional required (field created if condition is met) |
dp |
Decimal point |
h |
Hexadecimal |
M |
Required (field created) |
n |
Number |
O |
Optional (field created) |
V |
Variable data with no length limit |
NON-3DS:
merchantId: M000000187merchantPwd: 12343DS:
merchantId: M000000413merchantPwd: 1234| Value | Definition |
|---|---|
| logon | Logon Stage |
| aures | Confirmation stage |
| logoff | Logoff Stage |
| Value | Definition |
|---|---|
| 1 | Sale (online approval) |
| 2 | Refund |
| 7 | Confirmation/Credit Certification |
| 9 | Transaction inquiry |
| 11 | Register recurring billing |
| 12 | Cancel recurring billing |
| Value | Definition |
|---|---|
| JPY | Japanese Yen |
| USD | US Dollar |
| EUR | Euro |
| KRW | Korean Won |
| CNY | Chinese Yuan |
| Value | Definition |
|---|---|
| AMX | American Express |
| JCB | Japanese Credit Bank |
| MSC | MasterCard |
| VIS | VISA |
| Value | Definition |
|---|---|
| 88888888888888 | Search for credit card information in merchantId + phone number + payId |
| 88888888888881 | Search for credit card information in merchantId + phone number |
| 88888888888882 | Search for credit card information in merchantId + payId |
| Attribute | Value | Definition |
|---|---|---|
| charset | UTF-8 | Global |
| SHIFT-JIS | Japanese | |
| EUC-KR | Korean | |
| lang | JP | Japanese |
| EN | English | |
| CN | Chinese |
| Field | Value | Definition |
|---|---|---|
| transCode (Status) | AS | Authorization Success |
| AF | Authorization Failed | |
| transStaus (Inquiry) | 1 | Sale |
| 2 | Refund |
| Code | Prefecture | Code | Prefecture | Code | Prefecture |
|---|---|---|---|---|---|
| 1 | HOKKAIDO | 17 | ISHIKAWA | 33 | OKAYAMA |
| 2 | AOMORI | 18 | FUKUI | 34 | HIROSHIMA |
| 3 | IWATE | 19 | YAMANASHI | 35 | YAMAGUCHI |
| 4 | MIYAGI | 20 | NAGANO | 36 | TOKUSHIMA |
| 5 | AKITA | 21 | GIFU | 37 | KAGAWA |
| 6 | YAMAGATA | 22 | SHIZUOKA | 38 | EHIME |
| 7 | FUKUSHIMA | 23 | AICHI | 39 | KOCHI |
| 8 | IBARAKI | 24 | MIE | 40 | FUKUOKA |
| 9 | TOCHIGI | 25 | SHIGA | 41 | SAGA |
| 10 | GUNMA | 26 | KYOTO | 42 | NAGASAKI |
| 11 | SAITAMA | 27 | OSAKA | 43 | KUMAMOTO |
| 12 | CHIBA | 28 | HYOGO | 44 | OITA |
| 13 | TOKYO | 29 | NARA | 45 | MIYAZAKI |
| 14 | KANAGAWA | 30 | WAKAYAMA | 46 | KAGOSHIMA |
| 15 | NIIGATA | 31 | TOTTORI | 47 | OKINAWA |
| 16 | TOYAMA | 32 | SHIMANE |
| Code | Definition |
|---|---|
| 000 | Approval Success |
| 101 | Failed to enter continuous billing information. |
| 200 | Request Connection |
| 611 | Your card exceeds the monthly limit. Contact your administrator. |
| 612 | Your card exceeds the number of times you use it per month. Contact your administrator. |
| 711 | This card BIN cannot be used. |
| 712 | Korean card payment is not possible |
| 713 | Risk card registration card, please try again with another card. |
| 900 | The message is not long enough. |
| 901 | Connection Error. |
| 902 | VAN approval failure |
| 909 | Payment has already been made. |
| 910 | This card number is registered to the risk transaction card. Payment is not possible. |
| 911 | The one-time payment limit has been exceeded. Please contact the administrator. |
| 912 | The daily payment limit has been exceeded. Please contact the administrator. |
| 913 | The one-month payment limit has been exceeded. Please contact the administrator. |
| 914 | The password does not match. |
| 915 | Merchant Agreement is not Live. |
| 916 | Requirements not entered* |
| 917 | Transaction information does not exist. |
| 918 | Internet access is restricted. Please contact the administrator. |
| 919 | There is no payment information. |
| 920 | Exceeded limit |
| 921 | Insufficient balance |
| 922 | Incorrect card holder |
| 923 | Incorrect card number |
| 924 | Incorrect expiration date |
| 925 | Incorrect security code |
| 926 | System error |
| 927 | Card company approval rejected |
| 928 | Invalid card type |
| 929 | Stolen card |
| 931 | Please contact the card company. |
| 932 | Please enter the security code (CVV). |
| 933 | Incorrect card type. |
| 934 | This card is not eligible for the service. |
| 935 | Acquirer decline. |
| 936 | The minimum payment amount has not been met. |
| 941 | This payment has already been refunded. |
| 999 | Continuous charging has already been canceled. |
Contact: support@pcins.co.kr
Redirects to PCINS payment screen for credit card payment or credit certification.
callbackURL?merchantId={id}&ref={ref}&payId={payId}&currType={cur}&price={price}&transNo={transNo}&transCode=ASreturnURL?transCode=AS&transNo={transNo}&ref={ref}returnURL?transCode=AF&transNo={transNo}&ref={ref}&errCode={errCode}| merchantId required | string |
| merchantPwd | string Required for 3DS authentication |
| ref required | string |
| tradeGubun required | string |
| currType required | string |
| price required | number |
| payName | string |
| payId | string |
| payEmail required | string |
| payTel required | string |
| productName required | string |
| returnURL required | string |
| callbackURL required | string |
| transNo | string |
| errCode | string |
| cardType | string Required for 3DS authentication |
<!-- Content-Type: application/x-www-form-urlencoded --> <form method="POST" action="https://pay.pcins.co.kr/gw/pay_link.jsp"> <input type="hidden" name="merchantId" value="M000000187"> <input type="hidden" name="ref" value="ORD20240122001"> <input type="hidden" name="tradeGubun" value="1"> <input type="hidden" name="currType" value="JPY"> <input type="hidden" name="price" value="2000"> <input type="hidden" name="payName" value="John Doe"> <input type="hidden" name="payId" value="customer123"> <input type="hidden" name="payEmail" value="john@example.com"> <input type="hidden" name="payTel" value="090-1234-5678"> <input type="hidden" name="productName" value="Test Product"> <input type="hidden" name="returnURL" value="https://your-site.com/return"> <input type="hidden" name="callbackURL" value="https://your-site.com/callback"> <button type="submit">Pay Now</button> </form>
External payment page with 3D Secure authentication support. This endpoint is required for VAN36 and VAN37 3DS payments.
callbackURL?merchantId={id}&ref={ref}&payId={payId}&currType={cur}&price={price}&transNo={transNo}&transCode=ASreturnURL?transCode=AS&transNo={transNo}&ref={ref}returnURL?transCode=AF&transNo={transNo}&ref={ref}&errCode={errCode}| merchantId required | string |
| merchantPwd required | string |
| ref required | string |
| tradeGubun required | string |
| currType required | string |
| cardType required | string |
| price required | number |
| payName required | string |
| payId required | string |
| productName required | string |
| payEmail required | string |
| payTel required | string |
| callbackURL | string |
| returnURL | string |
<!-- Content-Type: application/x-www-form-urlencoded --> <form method="POST" action="https://pay.pcins.co.kr/gw/pay_external.jsp"> <input type="hidden" name="merchantId" value="M000000187"> <input type="hidden" name="merchantPwd" value="1234"> <input type="hidden" name="ref" value="ORD20240122001"> <input type="hidden" name="tradeGubun" value="1"> <input type="hidden" name="currType" value="JPY"> <input type="hidden" name="cardType" value="VIS"> <input type="hidden" name="price" value="2000"> <input type="hidden" name="payName" value="John Doe"> <input type="hidden" name="payId" value="customer123"> <input type="hidden" name="productName" value="Test Product"> <input type="hidden" name="payEmail" value="john@example.com"> <input type="hidden" name="payTel" value="090-1234-5678"> <input type="hidden" name="callbackURL" value="https://your-site.com/callback"> <input type="hidden" name="returnURL" value="https://your-site.com/return"> <button type="submit">Pay with 3DS</button> </form>
<?xml version="1.0" encoding="UTF-8" ?> <script> window.location.href='External UI Payment URL'; </script>
Direct 3D Secure payment with card info submitted directly. This endpoint is required for VAN22(PCINS HR).
callbackURL?merchantId={id}&ref={ref}&payId={payId}&currType={cur}&price={price}&transNo={transNo}&transCode=ASreturnURL?transCode=AS&transNo={transNo}&ref={ref}returnURL?transCode=AF&transNo={transNo}&ref={ref}&errCode={errCode}Use the numeric code for the cityCode parameter:
| Code | Prefecture | Code | Prefecture |
|---|---|---|---|
| 1 | HOKKAIDO | 25 | SHIGA |
| 2 | AOMORI | 26 | KYOTO |
| 3 | IWATE | 27 | OSAKA |
| 4 | MIYAGI | 28 | HYOGO |
| 5 | AKITA | 29 | NARA |
| 6 | YAMAGATA | 30 | WAKAYAMA |
| 7 | FUKUSHIMA | 31 | TOTTORI |
| 8 | IBARAKI | 32 | SHIMANE |
| 9 | TOCHIGI | 33 | OKAYAMA |
| 10 | GUNMA | 34 | HIROSHIMA |
| 11 | SAITAMA | 35 | YAMAGUCHI |
| 12 | CHIBA | 36 | TOKUSHIMA |
| 13 | TOKYO | 37 | KAGAWA |
| 14 | KANAGAWA | 38 | EHIME |
| 15 | NIIGATA | 39 | KOCHI |
| 16 | TOYAMA | 40 | FUKUOKA |
| 17 | ISHIKAWA | 41 | SAGA |
| 18 | FUKUI | 42 | NAGASAKI |
| 19 | YAMANASHI | 43 | KUMAMOTO |
| 20 | NAGANO | 44 | OITA |
| 21 | GIFU | 45 | MIYAZAKI |
| 22 | SHIZUOKA | 46 | KAGOSHIMA |
| 23 | AICHI | 47 | OKINAWA |
| 24 | MIE |
| merchantId required | string |
| merchantPwd required | string |
| ref required | string |
| tradeGubun required | string |
| currType required | string |
| cardType required | string |
| cardNo required | string |
| expireM required | string |
| expireY required | string |
| csc required | string |
| price required | number |
| payName required | string |
| payId required | string |
| productName required | string |
| payEmail required | string |
| payTel required | string |
| address required | string |
| cityCode required | string |
| postCode required | string |
| callbackURL | string |
| returnURL | string |
<!-- Content-Type: application/x-www-form-urlencoded --> <form method="POST" action="https://pay.pcins.co.kr/gw/pay_direct3ds.jsp"> <input type="hidden" name="merchantId" value="M000000187"> <input type="hidden" name="merchantPwd" value="1234"> <input type="hidden" name="ref" value="ORD20240122001"> <input type="hidden" name="tradeGubun" value="1"> <input type="hidden" name="currType" value="JPY"> <input type="hidden" name="cardType" value="VIS"> <input type="hidden" name="cardNo" value="4111111111111111"> <input type="hidden" name="expireM" value="12"> <input type="hidden" name="expireY" value="25"> <input type="hidden" name="csc" value="123"> <input type="hidden" name="price" value="2000"> <input type="hidden" name="payName" value="John Doe"> <input type="hidden" name="payId" value="customer123"> <input type="hidden" name="productName" value="Test Product"> <input type="hidden" name="payEmail" value="john@example.com"> <input type="hidden" name="payTel" value="090-1234-5678"> <input type="hidden" name="address" value="Tokyo Minato-ku"> <input type="hidden" name="cityCode" value="13"> <input type="hidden" name="postCode" value="100-0001"> <input type="hidden" name="callbackURL" value="https://your-site.com/callback"> <input type="hidden" name="returnURL" value="https://your-site.com/return"> <button type="submit">Direct 3DS Pay</button> </form>
<?xml version="1.0" encoding="UTF-8" ?> <script> window.location.href='Direct 3DS Payment URL'; </script>
Generates QR code for Alipay/Wechatpay payment.
| merchantId required | string |
| merchantPwd | string |
| ref required | string |
| tradeGubun required | string |
| currType required | string |
| price required | number |
| payName required | string |
| payId required | string |
| payEmail required | string |
| payTel required | string |
| productName required | string |
| referURL required | string |
| returnURL required | string |
| lang | string |
<!-- Content-Type: application/x-www-form-urlencoded --> <form method="POST" action="https://pay.pcins.co.kr/gw/qr_link.jsp"> <input type="hidden" name="ver" value="100"> <input type="hidden" name="merchantId" value="M000000187"> <input type="hidden" name="merchantPwd" value="1234"> <input type="hidden" name="ref" value="ORD20240122001"> <input type="hidden" name="tradeGubun" value="1"> <input type="hidden" name="currType" value="CNY"> <input type="hidden" name="price" value="2000"> <input type="hidden" name="payName" value="John Doe"> <input type="hidden" name="payId" value="customer123"> <input type="hidden" name="payEmail" value="john@example.com"> <input type="hidden" name="payTel" value="090-1234-5678"> <input type="hidden" name="productName" value="Test Product"> <input type="hidden" name="referURL" value="https://your-site.com/order"> <input type="hidden" name="returnURL" value="https://your-site.com/return"> <input type="hidden" name="lang" value="EN"> <button type="submit">Generate QR</button> </form>
Direct API payment processing, speed payment, refunds, and transaction inquiry. Use tradeGubun parameter to specify operation:
| ver required | string |
| merchantId required | string |
| merchantPwd required | string |
| ref required | string |
| tradeGubun required | string |
| cardNo required | string |
| expireM required | string |
| expireY required | string |
| csc | string |
| currType required | string |
| price required | number |
| payName required | string |
| payId | string |
| payEmail required | string |
| payTel required | string |
| productName | string |
| returnURL | string |
| callbackURL | string |
curl -X POST https://pay.pcins.co.kr/gw/pay_request.jsp \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "ver=100" \ -d "merchantId=M000000187" \ -d "merchantPwd=1234" \ -d "ref=ORD20240122001" \ -d "tradeGubun=1" \ -d "cardNo=4111111111111111" \ -d "expireM=12" \ -d "expireY=25" \ -d "csc=123" \ -d "currType=JPY" \ -d "price=2000" \ -d "payName=John Doe" \ -d "payEmail=john@example.com"
<?xml version="1.0" encoding="UTF-8" ?> <TransactionResponse> <ref>ORD20240122001</ref> <transNo>20120815000012</transNo> <resultCode>000</resultCode> <resultMsg>Success</resultMsg> <transTime>20120815095629</transTime> <approvalNo>303577</approvalNo> </TransactionResponse>
Webhook or API endpoint to receive 3DS payment result notification.
| ver required | string |
| merchantId required | string |
| merchantPwd required | string |
| transNo required | string |
| checkoutId required | string |
| cardNo required | string |
| expireM required | string |
| expireY required | string |
| csc required | string |
| payName required | string |
curl -X POST https://pay.pcins.co.kr/gw/pay_3ds_status_check.jsp \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "ver=100" \ -d "merchantId=M000000187" \ -d "merchantPwd=1234" \ -d "transNo=20241115000012" \ -d "checkoutId=VAN12345" \ -d "cardNo=4111111111111111" \ -d "expireM=00" \ -d "expireY=00" \ -d "csc=777" \ -d "payName=John Doe"
<?xml version="1.0" encoding="UTF-8" ?> <TransactionResponse> <transNo>20241115000012</transNo> <resultCode>000</resultCode> <resultMsg>Transaction Successed</resultMsg> <transTime>20241115095629</transTime> <approvalNo>303577</approvalNo> </TransactionResponse>