API ReferenceEntityUser

Generate JWT Token

POST
Generate a JWT token for an entity user with the given options. This token can be used to authenticate the entity and entity user in the Mercoa API and iFrame.

Path parameters

entityIdstringRequired
Entity ID or Entity ForeignID
userIdstringRequired

Request

This endpoint expects an object.
expiresIn
stringOptional
Expressed in seconds or a string describing a time span. The default is 1h.
invoice
objectOptional
pages
objectOptional
style
objectOptional
vendors
objectOptional
entity
objectOptional

Response

This endpoint returns a string