Authorizations
Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret in the Merchant Dashboard.
Headers
API version to be used. Format is in YYYY-MM-DD
Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
Idempotency works by saving the resulting status code and body of the first request made for any given idempotency key, regardless of whether it succeeded or failed. Subsequent requests with the same key return the same result, including 500 errors.
Currently supported on all POST calls that uses x-client-id & x-client-secret. To use enable, pass x-idempotency-key in the request header. The value of this header must be unique to each operation you are trying to do. One example can be to use the same order_id that you pass while creating orders
Body
Request Body to Create Payment Links
Request paramenters for link creation
Unique Identifier (provided by merchant) for the Link. Alphanumeric and only - and _ allowed (50 character limit). Use this for other link-related APIs.
50
Amount to be collected using this link. Provide upto two decimals for paise.
Currency for the payment link. Default is INR. Fill out the Support Form to enable new currencies.
A brief description for which payment must be collected. This is shown to the customer.
500
Payment link customer entity
{
"customer_name": "John Doe",
"customer_phone": "9999999999",
"customer_email": "john@cashfree.com"
}
If "true", customer can make partial payments for the link.
Minimum amount in first installment that needs to be paid by the customer if partial payments are enabled. This should be less than the link_amount.
Time after which the link expires. Customers will not be able to make the payment beyond the time specified here. You can provide them in a valid ISO 8601 time format. Default is 30 days.
Payment link Notify Object for SMS and Email
{ "send_sms": false, "send_email": true }
If "true", reminders will be sent to customers for collecting payments.
Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs
{ "key_1": "value_1", "key_2": "value_2" }
Payment link meta information object
{
"notify_url": "https://ee08e626ecd88c61c85f5c69c0418cb5.m.pipedream.net",
"upi_intent": false,
"return_url": "https://b8af79f41056.eu.ngrok.io"
}
Response
OK
Payment link success creation response object
Payment link customer entity
{
"customer_name": "John Doe",
"customer_phone": "9999999999",
"customer_email": "john@cashfree.com"
}
Payment link meta information object.
{ "key_1": "value_1", "key_2": "value_2" }
Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs
{ "key_1": "value_1", "key_2": "value_2" }
Payment link Notify Object for SMS and Email
{ "send_sms": false, "send_email": true }