Happy Business Starts Here

Zuora Support

[REST] Getting error "The contact is not belong to this account"

Problem:

 

 

You are getting this error " {"Errors":[{"Code":"INVALID_VALUE","Message":"The contact is not belong to this account."}],"Success":false} " when trying to make a POST create account call(https://www.zuora.com/developer/api-reference/#operation/Object_POSTAccount).

 

This error pops up when you are trying to create an account in "Active" status.

 

Solution:

 

Creating an account in UI is different from creating an account in Rest API. In UI, you can create the account and the BillTo/SoldTo contact at the same time. However, in Rest API, you will need to use the endpoint https://www.zuora.com/developer/api-reference/#operation/Object_POSTContact. The response will contain the contact ID for you to use for https://www.zuora.com/developer/api-reference/#operation/Object_POSTAccount. Then from there you can create an account in "Active" status.

 




If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √