post
https://ws.lemonway.fr/mb/env-name/prod/directkitrest/v2/accounts//documents//signinit
This call lets you to generate an electronic signature.
Note: Only SDD mandates can be signed with this method.
Prerequisite: A Mandate needs to be registered with RegisterSddMandate
- A call to
SignDocumentInitof DirectKit to make the signature request and get a token. - A redirection from your website to the WebKit, with the token in GET parameter (see Finalize document signature).
- A return page where your user will be redirected after the signature.
When the mandate requires an electronic signature, the flow is as follows:
- Register the mandate via
POST /v2/moneyins/sdd/mandate— returns adocumentIdand mandate in Pending status (0) - Call Generate an Electronic Signature of a Document (
POST /v2/accounts/{accountid}/documents/{documentid}/signinit) — returns asignDocumenttoken - Redirect the end user to the Lemonway WebKit with the token as a GET parameter:
- Sandbox:
https://sandbox-webkit.lemonway.fr/{env}/dev/?signingtoken={signDocument} - Production:
https://webkit.lemonway.fr/{env}/prod/?signingtoken={signDocument}
- Sandbox:
- The debtor receives an OTP SMS, signs the mandate in the WebKit
- The end user is redirected to
returnUrl(success) orerrorUrl(failure) - The mandate status transitions to Active (
6)
401Unauthorized
500InternalServerError

