I am trying to create an association between an item and an existing tax rate. I am getting error saying invalid value in JSON. What is the correct way to send the data values.
$curl=curl_init('https://sandbox.dev.clover.com/v3/merchants/{MID}/category_items'); curl_setopt($curl, CURLOPT_HTTPHEADER, array( "Authorization:Bearer " . $accessToken, 'Content-Type: application/json', ) ); $data = "{ "elements": [ { "taxRates": {"id": "abc"}, "item": {"id": "123"} } ] }"; curl_setopt( $curl, CURLOPT_POST, true ); curl_setopt( $curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $auth = curl_exec($curl); $info = curl_getinfo($curl); $result=json_decode($auth, true); echo $result;