API changes
Firm user: userRefId instead of contactId
A firm user is identified by userRefId. The contactId field (ID of a subordinate contact) is deprecated and will be removed from requests and responses: the firm owner and employees with their own registration share the same contactId, 0, while each of them has their own userRefId. We will announce the removal date in advance, by email and on this page.
Requests
Wherever you send contactId, send the userRefId of the same user:
- offer owner:
userRefIdin the request body of creating a freight offer and a vehicle offer, editing a freight offer and a vehicle offer; - tender contact: the
userRefIdparameter of creating a tender.
When userRefId is set, contactId is ignored. Instead of contactId: 0 (the firm owner) you can omit userRefId.
Responses
Read userRefId instead of contactId:
- offer owner and visitors: structure "Offer owner";
- firm contacts: structure "User's subordinate contact";
- tender user: structure "Tender owner";
userRefIdbelongs to the user,contactIdis in itscontact.
Stored contactId values
Map them to userRefId with the list of subordinate contacts: every contact in it has both fields.
The contactId parameter of retrieving all tenders is already ignored.