Generate JWT Token
Generate a JWT token for an entity group with the given options. This token can be used to authenticate to any entity in the entity group in the Mercoa API and iFrame.
<Warning>We recommend using [this endpoint](/api-reference/entity-group/user/get-token). This will enable features such as approvals and comments.</Warning>
Path parameters
entityGroupId
Entity Group ID or Entity Group ForeignID
Headers
Authorization
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Request
This endpoint expects an object.
expiresIn
Expressed in seconds or a string describing a time span. The default is 1h.
invoice
pages
style
vendors
entity
sessionId
Optional session ID to use for the token. If not provided, this token will not be associated with a session.
Response
This endpoint returns a string.