Document has many attributes. Types of attributes can be text, date, boolean, ... or lookup.
Lookup field is a link to another document or a value of list. Examples:
Some examples:
- Invoice can contain:
- responsible person (a reference to employee)
- currency (a reference to a value from currency list)
- Payment type (a reference to a value from payment types list)
- ...
- Employee can contain:
- Line manager (a reference to another employee)
- Department (a reference to department)
- Gender (choose between values from genders' list)
- ...
Lookups at documents looks like this:
"warehouseId":"{"id":"123456" , "name":"Warehouse 1"}"
If you need to get additional information from this lookup, for example, code of warehouse (that isn't visible in name), you need to know an endpoint for Warehouse object. You can ask Vecticum consultants for endpoint ID value.
Since you know an endpoint, you can get all information about warehouse by ID.
You can use this example by putting endpoint ID and document ID: Get document by ID