Creating vendor contact via API

Creating vendor contact via API

We are trying to create vendor contact via API, it is showing error "to enable vendor portal for organisation".

Can you please help on this, as we are just trying to add contact as vendor, for which why it is required to get vendor portal for organization.