Skip to main content
Question

How to get Contact data of shipment owner via REST API

  • October 30, 2025
  • 2 replies
  • 53 views

Forum|alt.badge.img

Hi all,

I’m currently trying to receive the owner data of a shipment using the REST API.

The response of GET /entity/Default/24.200.001/Shipment/<ShipmentNbr> contains the contact ID:

...
"OverrideFreightPrice": {
"value": false
},
"Owner": {
"value": "56"
},
"PackageCount": {
"value": 4
}
...

However, I can’t request more information about the contact.

The owner of a shipment is an employee. But the REST endpoint /entity/Default/24.200.001/Employee does not contain the ContactID.

Is there any other endpoint that can be used?

Thanks in advance!

2 replies

Kyle Vanderstoep
Varsity I
Forum|alt.badge.img+1

I would extend the endpoint and use the Employee ID as follows:

 

The default Contact endpoint will not return a record for the integer even if you add the ContactID and do $filter=ContactID eq 56 since the contact it is returning is the default contact of the employee record.

With the change I put above, then it will return a string AcctCD for the employee record which can then be queried using 

/entity/Default/24.200.001/Employee/{AcctCD}


Forum|alt.badge.img
  • Author
  • Freshman II
  • October 31, 2025

@Kyle Vanderstoep 

Thank you for your response. That would be a workaround.

But why is the contactId returned if it cannot be used to retrieve further information? Shouldn't the employeeId be returned directly by the default endpoint instead?

Is there any possiblity to fix this in the future?

 

Thanks in advance.