The delete endpoint is called when a user deletes an e-sign, and when a user clicks Revoke e-sign on an e-sign.
In both cases Upsales first calls your /cancel endpoint for the same document, then /delete. If /cancel fails, /delete is not called. Neither endpoint is called if the e-sign has no documentId.
Endpoint POST https://yourapp.com/delete
Your app's endpoint must use HTTPS.
Body
Request body.data contains the e-sign. The documentId of the e-sign to delete is in body.data.documentId.
Response
Respond with status 200 or 201 within 30 seconds. Any other status, or no response in time, is treated as an error.
- When the e-sign is deleted, Upsales removes it before calling your app. If your app returns an error, the e-sign is still gone from Upsales.
- When the e-sign is revoked, it gets the status Canceled only after
/canceland/deleteboth succeed. If either returns an error, the e-sign keeps its current status.