Authorization: Bearer ********************
{ "amount": "499.00", "txnid": "ORDER_1001", "name": "John Doe", "email": "johndoe@example.com", "phone": "9876543210", "product_name": "Pro Subscription", "success_url": "https://example.com/payment/success", "fail_url": "https://example.com/payment/failed", "webhook_url": "https://example.com/api/webhook" }
curl --location 'https://pay.bottercc.com/api/v1/invoice' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data-raw '{ "amount": "499.00", "txnid": "ORDER_1001", "name": "John Doe", "email": "johndoe@example.com", "phone": "9876543210", "product_name": "Pro Subscription", "success_url": "https://example.com/payment/success", "fail_url": "https://example.com/payment/failed", "webhook_url": "https://example.com/api/webhook" }'
{ "success": true, "txnid": "INV_1001", "payu_txnid": "INV_1001_u1", "amount": "499.00", "payment_url": "http://pay.bottercc.com/pay/INV_1001_u1" }