Offer added to Payment Link Response
Copy curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
-X POST https://api.razorpay.com/v1/invoices
-H 'content-type: application/json'
-d '{
"amount": 340000,
"currency": "INR",
"description": "Salon at Home Service",
"receipt": "5757",
"type": "link",
"expire_by": 1679244401,
"customer": {
"name": "Gaurav Kumar",
"contact": "9900990099",
"email": "gaurav.kumar@example.com"
},
"options": {
"order": {
"offers": [
"offer_F4WMTC3pwFKnzq",
"offer_F4WJHqvGzw8dWF"
]
}
}
}'
Copy {
"amount" : 340000 ,
"amount_due" : 340000 ,
"amount_paid" : 0 ,
"billing_end" : null ,
"billing_start" : null ,
"cancelled_at" : null ,
"comment" : null ,
"created_at" : 1592579126 ,
"currency" : "INR" ,
"currency_symbol" : "₹" ,
"customer_details" : {
"billing_address" : null ,
"contact" : "9900990099" ,
"customer_contact" : "9900990099" ,
"customer_email" : "gaurav.kumar@example.com" ,
"customer_name" : "Gaurav Kumar" ,
"email" : "gaurav.kumar@example.com" ,
"gstin" : null ,
"id" : "cust_F4WNtqj1xb0Duv" ,
"name" : "Gaurav Kumar" ,
"shipping_address" : null
},
"customer_id" : "cust_F4WNtqj1xb0Duv" ,
"date" : 1592579126 ,
"description" : "Salon at Home Service" ,
"email_status" : null ,
"entity" : "invoice" ,
"expire_by" : 1608390326 ,
"expired_at" : null ,
"first_payment_min_amount" : 0 ,
"gross_amount" : 340000 ,
"group_taxes_discounts" : false ,
"id" : "inv_F4WfpZLk1ct35b" ,
"invoice_number" : null ,
"issued_at" : 1592579126 ,
"line_items" : [],
"notes" : [],
"order_id" : "order_F4WfpxUzWmYOTl" ,
"paid_at" : null ,
"partial_payment" : false ,
"payment_id" : null ,
"receipt" : "5757" ,
"reminder_enable" : false ,
"short_url" : "https://rzp.io/i/vitLptM" ,
"sms_status" : null ,
"status" : "issued" ,
"tax_amount" : 0 ,
"taxable_amount" : 0 ,
"terms" : null ,
"type" : "link" ,
"user_id" : "" ,
"view_less" : true
}
Request Parameter
You must pass the parameters described below along with the regular request parameters passed to create Payment Links via API .
options mandatory
array Options to associate the offer_id with the Payment Link. Parent parameter under which the order child parameter must be passed.
order mandatory
array The parameter under which the offer_id must be passed.
offer_id mandatory
string Unique identifier of the offer created in the previous step. For example, offer_F4WMTC3pwFKnzq.