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"