Happy Business Starts Here

Re: Create multiple Key Contacts using REST API

Highlighted
New Student

Create multiple Key Contacts using REST API

screen shot from zuora UIscreen shot from zuora UIAs you can see from the screen shot, there is an option in the UI to create multiple key contacts on an account in Zuora.

 

Is there a way to do this using the REST API? I only see the billto and soldto contacts in the API.

5 REPLIES 5
Highlighted
Valued Scholar

Re: Create multiple Key Contacts using REST API

Yes, we do this after creating the Account with the /v1/action/create endpoint passing a list of Contacts in JSON, with the AccountId of the newly created account.

Highlighted
Valued Scholar

Re: Create multiple Key Contacts using REST API

How can we pull these key contacts via API, I pull the account data and it only gives the bill to and sold to details.

Highlighted
Zuora Staff

Re: Create multiple Key Contacts using REST API

Hi,

You can use "/v1/action/query" rest api to query all the contact information.

Please refer https://www.zuora.com/developer/api-reference/#operation/Action_POSTquery

Thanks,

Thanks and Regards,
Prem Anandh
Highlighted
Valued Scholar

Re: Create multiple Key Contacts using REST API

Yes, But what would be the field names when I create my query?

Highlighted
Zuora Staff

Re: Create multiple Key Contacts using REST API

Hi, 

You can get the API names from the below article.

https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/Conta...

Thanks and Regards,
Prem Anandh