Comment on page
💻
Generate payment URL
Learn about the payment URL generation API.
This document describes i'mport payment URL generation API specification. i'mport Merchants can use the service without any restrictions.
Payment API is exposed as REST web service.
HTTP Method : POSTContent-Type : application/json;charset=UTF-8
Development
Prod
URI
https://api.iamport-dev.co/api/supplements/v1/link/payment
URI
https://api.iamport.co/api/supplements/v1/link/payment
Customers can access the generated payment URL to make a payment. It supports all payment methods supported by the PG. When the link expires, payment is no longer available.
post
https://api.iamport.co/api/supplements/v1/link
/payment
Creates a payment URL.
#Sample JSON request message
json
{
"payment_info": "{\"title\":\"Test merchant\",\"user_code\":\"imp68124833\",\"amount\":10000,\"merchant_uid\":\"merchant_1630665784552\",\"name\":\"payment link test\",\"tax_free\":\"tax free amount\",\"currency\":\"KRW\",\"language\":\"ko\",\"buyer_name\":\"\",\"buyer_tel\":\"\",\"buyer_addr\":\"\",\"buyer_email\":\"\",\"buyer_postcode\":\"\",\"custom_data\":\"json_object\",\"notice_url\":\"notification url\",\"pay_methods\":[{\"pg\":\"INIpayTest\",\"pay_method\":\"card\",\"label\":\"credit/check card\"},{\"pg\":\"INIpayTest\",\"pay_method\":\"naverpay\",\"label\":\"Naver Pay\"},{\"pg\":\"INIpayTest\",\"pay_method\":\"kakaopay\",\"label\":\"Kakao Pay\"},{\"pg\":\"INIpayTest\",\"pay_method\":\"phone\",\"label\":\"mobile micropayment\"},{\"pg\":\"INIpayTest\",\"pay_method\":\"trans\",\"label\":\"account transfer\"},{\"pg\":\"INIpayTest\",\"pay_method\":\"vbank\",\"label\":\"virtual account\"}]}",
"expired_at": 1634324016
}
#Sample payment (bridge) page
Payment (bridge) page
Expired (bridge) page
Sample response URL page displayed when payment URL API request is successful.

Payment URL page
Sample page displayed for an expired payment URL page (expire_at exceeded).

Payment URL expired page
Append the last part of the response (shortenedUrl) URL to the payment URI API address and call it.
HTTP Method : PUT
For the following API response
{
}
Call the above payment URL to disable it.
Last modified 1yr ago