Unable to update Bill To Contact of an Account

Reply
Highlighted
nikunj New Student

New Student

New Student
Posts: 2
Registered: a week ago

Unable to update Bill To Contact of an Account

I am using the pt1 environment, and trying to update an account's bill to contact using the CRUD accounts REST API. Following is the curl request used for updation. Note that while crmid has been updated, the contact hasn't. The response for this request gives Success : True along with the same account id.
curl -X PUT \
  https://rest.pt1.zuora.com/v1/object/account/2c91a0fb5c1d70a8015c1fb468e6292a \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{
"BillTold" : "2c91a0fb5c1d70aa015c1fb7c4ac493d",
"CrmId" : "random string"
}'
 
Response : 
{
"Success": true,
"Id": "2c91a0fb5c1d70a8015c1fb468e6292a"
}
 
I'm simply following the API reference documentation as mentioned here : Update Account (https://www.zuora.com/developer/api-reference/#operation/Object_PUTAccount)
Note that both the account and the contact have been created before running this request.