Highlighted

When creating agreement using API I always get agreement was automatically canceled

New Here ,
Jun 18, 2020

Copy link to clipboard

Copied

After uploading file through REST API documentation transientId works ok, I'm able to use it to create agreement. But when uplaoding file through my request implementation transientId I receive makes agreement creation cancelled.

Somehow it looks like file is not created in second case, but transientId is issued without problem.

Why are my agreements cancelled when getting transientId through python requests.POST, and it is ok when receiving it through REST API documentation examples?

EDIT:

Have fixed it with boundary changes (added File-Name Content-Type in multipart + appliccation/pdf Content-Type inside multipart boundary for file just before file content). Hope it helps someone else.

Topics

SDK

Views

31

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

When creating agreement using API I always get agreement was automatically canceled

New Here ,
Jun 18, 2020

Copy link to clipboard

Copied

After uploading file through REST API documentation transientId works ok, I'm able to use it to create agreement. But when uplaoding file through my request implementation transientId I receive makes agreement creation cancelled.

Somehow it looks like file is not created in second case, but transientId is issued without problem.

Why are my agreements cancelled when getting transientId through python requests.POST, and it is ok when receiving it through REST API documentation examples?

EDIT:

Have fixed it with boundary changes (added File-Name Content-Type in multipart + appliccation/pdf Content-Type inside multipart boundary for file just before file content). Hope it helps someone else.

Topics

SDK

Views

32

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation