It looks like you're new here. If you want to get involved, click one of these buttons!
variety=regular
application/x-www-form-urlencoded
It is a form request. You seem to be sending a JSON request.
variety=regular
I tried form request, but still same response:
curl -X POST -H "X-Kite-Version: 3" -H "Authorization: token XXX:YYY" -d "variety=regular&tradingsymbol=INFY&exchange=NSE&transaction_type=BUY&order_type=MARKET&quantity=10&readonly=false" https://kite.zerodha.com/connect/basket
{"status":"error","message":"Invalid orders payload.","data":null,"error_type":"InputException"}
Maybe I'm missing something minor.
application/x-www-form-urlencoded
curl -H "Content-Type: application/x-www-form-urlencoded" -H "X-Kite-Version: 3" -H "Authorization: token XXX:YYY" -d 'variety=regular&tradingsymbol=INFY&exchange=NSE&transaction_type=BUY&order_type=MARKET&quantity=10&readonly=false' https://kite.zerodha.com/connect/basket
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "X-Kite-Version: 3" -H "Authorization: token XXX:YYY" -d "variety%3Dregular%26tradingsymbol%3DINFY%26exchange%3DNSE%26transaction_type%3DBUY%26order_type%3DMARKET%26quantity%3D10%26readonly%3Dfalse" https://kite.zerodha.com/connect/basket