payment method page in razorpay link code example

Example: cancel payment link in razorpay API reference

Request ResponseCopycurl -u <YOUR_KEY_ID>:<YOUR_KEY_SECRET> \
-X POST https://api.razorpay.com/v1/invoices/inv_ColZh68L2JmHsB/cancel \
-H 'Content-type: application/json' \
Copy{
    "id": "inv_ColZh68L2JmHsB",
    "entity": "invoice",
    "receipt": "Tkk03",
    "invoice_number": "Tkk03",
    "customer_id": "cust_ColR3sBDWRAZcK",
    "customer_details": {
        "id": "cust_ColR3sBDWRAZcK",
        "name": null,
        "email": "[email protected]",
        "contact": "9999999999",
        "gstin": null,
        "billing_address": null,
        "shipping_address": null,
        "customer_name": null,
        "customer_email": "[email protected]",
        "customer_contact": "9999999999"
    },
    "order_id": "order_ColZh78Ksag8g3",
    "line_items": [],
    "payment_id": null,
    "status": "cancelled",
    "expire_by": 1793630556,
    "issued_at": 1562063987,
    "paid_at": null,
    "cancelled_at": 1562153114,
    "expired_at": null,
    "sms_status": "sent",
    "email_status": "sent",
    "date": 1562063987,
    "terms": null,
    "partial_payment": false,
    "gross_amount": 670042,
    "tax_amount": 0,
    "taxable_amount": 0,
    "amount": 670042,
    "amount_paid": 0,
    "amount_due": 670042,
    "currency": "INR",
    "description": "Payment Link for this purpose - cvb.",
    "notes": {
        "address": "note value"
    },
    "comment": null,
    "short_url": "https://rzp.io/i/urvFnD0",
    "view_less": true,
    "billing_start": null,
    "billing_end": null,
    "type": "link",
    "group_taxes_discounts": false,
    "created_at": 1562063987,
}

Tags:

Misc Example