I am recieveing the error when I give title=str(customer.name) in plone.api.content.create()
Full traceback please. Don't let us ask this for every single question..
you most probably provided the title or portal_type as context.
see the documentation for the correct order/name of the supported parameters
https://docs.plone.org/develop/plone.api/docs/content.html#create-content