API error
ENVELOPE_TYPE_MISMATCH
HTTP 409
What it means
The envelope is a DOCUMENT where the operation needs a TEMPLATE, or the reverse.
What to do
Call the endpoint that matches the envelope type. A template is never sent: instantiate it, then send the new envelope.
The response
HTTP/1.1 409
content-type: application/json
{
"error": {
"code": "ENVELOPE_TYPE_MISMATCH",
"message": "The envelope is a DOCUMENT where the operation needs a TEMPLATE, or the reverse.",
"requestId": "req_9Tx4pLm2",
"docs": "https://signrs.com/docs/errors/ENVELOPE_TYPE_MISMATCH"
}
}