Happy Business Starts Here

Parent Name Not Appearing When Creating a Customer Account

Highlighted
Zuora Support

Parent Name Not Appearing When Creating a Customer Account

Question: We are not able to set parent and child hierarchy when creating an account using the below API Call. Please, Advice!

 

POST /v1/object/account 
{
"billToContact" : {
"firstname": "AG BillTo",
"lastname": "27NovVerOne"
},
"soldToContact" : {
"firstname": "AG SoldTo",
"lastname": "27NovVerOne"
},
"Currency": "AUD",
"Name": "new account with AG27NovVerOne",
"BillCycleDay":15,
"Status": "Draft",
"parentId": "8a80ae8c693a8284016eaaf0d6c453ef"
}




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

Tags (1)
error.jpg
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Zuora Support

Re: Parent Name Not Appearing When Creating a Customer Account

Answer: 

 

I have tested the below API call is working fine as expected. I find the issue on your call on the parentId field, it should be ParentId 'P' is Upper case and case sensitive.

 

POST https://rest.apisandbox.zuora.com/v1/object/account

 

Request:

{
"billToContact": {
"firstname": "AG BillTo",
"lastname": "27NovVerOne"
},
"soldToContact": {
"firstname": "AG SoldTo",
"lastname": "27NovVerOne"
},
"Currency": "USD",
"Name": "new account with AG27NovVerOne",
"BillCycleDay": 1,
"Status": "Draft",
"ParentId": "2c92c0fb6883432c01689d3412d67b7b",
"ControlNumber__c": 122
}

 

Response:

{
"Success": true,
"Id": "2c92c0f86ea65d09016eb83287772608"
}
 
Results:
parent.PNG



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

View solution in original post

parent.PNG
1 REPLY 1
Highlighted
Zuora Support

Re: Parent Name Not Appearing When Creating a Customer Account

Answer: 

 

I have tested the below API call is working fine as expected. I find the issue on your call on the parentId field, it should be ParentId 'P' is Upper case and case sensitive.

 

POST https://rest.apisandbox.zuora.com/v1/object/account

 

Request:

{
"billToContact": {
"firstname": "AG BillTo",
"lastname": "27NovVerOne"
},
"soldToContact": {
"firstname": "AG SoldTo",
"lastname": "27NovVerOne"
},
"Currency": "USD",
"Name": "new account with AG27NovVerOne",
"BillCycleDay": 1,
"Status": "Draft",
"ParentId": "2c92c0fb6883432c01689d3412d67b7b",
"ControlNumber__c": 122
}

 

Response:

{
"Success": true,
"Id": "2c92c0f86ea65d09016eb83287772608"
}
 
Results:
parent.PNG



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

View solution in original post

parent.PNG