How to Add contact details in Location REST API — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Add contact details in Location REST API

Summary:

I am trying to create a location along with the contacts but its failing to create and Throwing an exception as following(

{    "status": 500,    "title": "Internal Server Error",    "detail": "The server encountered an internal error that prevented it from fulfilling this request."}

)

where in without the contact section working fine.

{
"locationXid": "TEST98566598",
"locationName": "Sample Warehouse",
"domainName": "TEST",
"city": "Mumbai",
"province": "Maharashtra",
"postalCode": "400001",
"countryCode3Gid": "IN",
"contacts": {
"items": [
{
"contactXid": "CONT_001",
"firstName": "Amit",
"lastName": "Sharma",
"jobTitle": "Manager",
"emailAddress": "amit.sharma@example.com",
"phone1": "022-12345678",
"domainName": "TEST"
}
]
},
"refnums": {
"items": [
{
"locationRefnumQualGid": "PAYMENT_TERMS",
"locationRefnumValue": "30 DAYS"
},
{
"locationRefnumQualGid": "SUPPLIER_SITE_ID",
"locationRefnumValue": "REF-789"
}
]
},
"roleProfiles": {
"items": [
{
"locationRoleGid": "SHIPFROM/SHIPTO"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!