Getting 400 Errors When Using Adobe Sign API to POST /envelopes and /agreements
We are trying to use the Adobe Sign API to POST /envelopes and POST /agreements. We are getting errors on both when trying to make the request.
For POST /envelopes, we are using the following payload request:
{ "documentCreationInfo": {
"name": "madhurikadam",
"recipientSetInfos": [{
"recipientSetMemberInfos": [{
"email": "madhurikadam@gslanb.com" }],
"recipientSetRole": "SIGNER" }], "signatureType":
"ESIGN", "signatureFlow":
"SENDER_SIGNATURE_NOT_REQUIRED" } }
And we are getting the following error:
{
"requestId": "5ba5148ce4b04d462f69ec24",
"message": "Unable to create Envelope - ",
"providerMessage": "Bad Request"
}
For POST /agreements, we are using the following payload request:
{
"documentCreationInfo": {
"fileInfos": [{
"transientDocumentId": "3AAABLblqZhAsXUM5yVDMZs9RWGd2SDruhL1FC-60W7WZjaMSyRVXkzjN41Ic4LoAh1SGQkhibzcrsFNSIwjfl1F0WpsoPllgFSTN3VzVpz6S9chCsyu7nR5_vMOluAtya5FcxFKfwy2SLx1dtzIIWc6o5AhNcRCB7gFyoSkzvlxlChL8bnpO19pRlwzrMK79c1zZDbNzeM-Ah4h_p6kv5LfYLUdYtm-kOxg2Xw3Ehmpy7ImSg7uTk-dWyL-AaIpvdhGyiwhyqU5ytchpjkyJengUKP3TpXIfD9jXUZ4Rc4JBCkogt4DjdDbapL5SlKWjPsBtSAq0CHVfdPNpMjPTXynvPydlrOR4"
}],
"name": "madhurikadam",
"recipientSetInfos": [{
"recipientSetMemberInfos": [{
"email": "madhurikadam@gslanb.com"
}],
"recipientSetRole": "SIGNER"
}],
"signatureType": "ESIGN",
"signatureFlow": "SENDER_SIGNATURE_NOT_REQUIRED"
}
}
And we are receiving the following error:
{
"requestId": "5ba51636e4b0d0eec1c2c1de",
"message": "Request failed",
"providerMessage": "code - BAD_REQUEST, message - You are not authorized to send documents for signature. (apiActionId=CBJCHBCAABAAuyy0w-VxS9crQstpEYFGSEdUdQUBdAir)"
}
What are the issues with our payload requests and how can we fix this so that we get a successful 200 response for both of these requests?
