Hi @sammarSayed @mirenechave , Yes, we can update sold to and Bill To using REST API (Existing and New Contact)
Please see the below steps to create a new contact on the existing account and update the account sold to contact to newly created contact.
Step 1: Create New Contact using below API
1. Endpoint URL: https://rest.apisandbox.zuora.com/v1/object/contact 2. Method: POST 3. Request Body:
{ "AccountId": "2c92c0f97719ea3b01771aa8c7264103", "Address1": "312 2nd Ave W", "City": "Seattle", "Country": "United States", "Description": "desc", "Fax": "123456", "FirstName": "FN1476935164020", "HomePhone": "86123456789", "LastName": "LN1476935164020", "MobilePhone": "8613312345678", "NickName": "this is nick name", "OtherPhone": "11111111111111111", "OtherPhoneType": "Work", "PersonalEmail": "home@example.com", "PostalCode": "98119", "State": "Washington", "TaxRegion": "CA", "WorkEmail": "work@example.com" } 4. Response Body:
{ "Success": true, "Id": "2c92c0f9771fb3db01772385ea2752e5" }
Ref. Link: https://www.zuora.com/developer/api-reference/#operation/Object_POSTContact
Step 2: Update Account with new sold to contact Id
1. Endpoint URL: https://rest.apisandbox.zuora.com/v1/object/account/2c92c0f97719ea3b01771aa8c7264103 2. Method: PUT 3. Request Body (Pass contact id in the SoldToId Param)
{ "SoldToId" : "2c92c0f9771fb3db01772385ea2752e5" }
4. Response Body
{ "Success": true, "Id": "2c92c0f97719ea3b01771aa8c7264103" }
Ref. Link: https://www.zuora.com/developer/api-reference/#operation/Object_PUTAccount Note: If you want to change Bill To Contact on Account, please use "BillToId" as a param in the request body.
... View more