To read vessel types the technical user needs the permission Customers and suppliers → Read, the same as for customers and not the one for boats. Roles are assigned as in How to create a role and a user; the technical user and the key are in Technical users and API keys: connecting an integration.
The endpoint for vessel types is:
/rest/v1/vectorType
To get the ID of a vessel type make one of these calls, depending on the macro type.
For a motorboat:
GET /rest/v1/vectorType?filter=[{"property":"class","operator":"=","value":"MOTORBOAT"}]For a sailing boat:
GET /rest/v1/vectorType?filter=[{"property":"class","operator":"=","value":"SAIL BOAT"}]For a rubber dinghy:
GET /rest/v1/vectorType?filter=[{"property":"class","operator":"=","value":"RUBBER DINGHY"}]For a catamaran:
GET /rest/v1/vectorType?filter=[{"property":"class","operator":"=","value":"CATAMARAN"}]The result can include one or more records: take the value of the "id" field of the first. A marina can have other types, or have renamed them: to see all your marina's types, read the list without a filter: GET /rest/v1/vectorType.
