Send Document
You can send document to remote sign with this request.
You need to use access token that you've got
Authentication
section in this request.
Request
Syntax:
POST /api/oneshot/sendDocument HTTP/1.1
Host: ServiceURL
Authorization: Bearer token
Connection: keep-alive
Content-Type: application/json
Argument:
Parameter | Description | Mandatory |
subject | Cancel Document | Yes |
description | Description | Yes |
ID | Identity number such as RUT, DNI, NIF | Yes |
document | Base64 String of document | Yes |
signerID | RUT number of signer | Yes |
signerEmail | Email address of signer | Yes |
signerPhone | Número mobil del firmante | Yes |
signerCountry | Two character country code | Yes |
signerFirstname | Primer nombre del firmante | Yes |
signerLastname1 | Signer's last name1 | Yes |
signerLastname2 | Signer's last name2 | Yes |
callbackURL | Callback URL of your service | No |
skipEmail | If you set this as true, signer will not receive the email, sign url will be attached in the response. | No |
emailCopy | If you set this as false, the email attached signed document will not be sent. | No |
anchor | The specific word in your document which you want to put the signature image on. Please go to Signature Position section to see more details | No |
posX | X coordination of the bottom left corner of the signature image. Please go to Signature Position section to see more details | No |
posY | Y coordination of the bottom left corner of the signature image. Please go to Signature Position section to see more details | No |
PosX1 | X coordination of the top right corner of the signature image. Please go to Signature Position section to see more details | No |
PosY1 | Y coordination of the top right corner of the signature image. Please go to Signature Position section to see more details | No |
pageNo | The page number of document which page you want to put the signature image in. Please go to Signature Position section to see more details | No |
deleteAfterSign | Please set true if you want to delete from legale after getting back the signed document | No |
skipNotification | If you set this “true”, no notification will be sent after sign. | No |
skipSms | If you set this “true”, signature method will be turn to the firma sobre | No |
If you set callbackURL, you can get signed document with that URL. Firma legale service will send a request to your callback URL with signed document so that you can get that after signing immediately. Please see Callback section to get more information
{
"subject": "Test document from API to oneshot",
"description": "Test document from API to oneshot",
"ID": "11.222.333-4",
"callbackURL": "",
"document": "JVBE...",
"emailCopy": false,
"skipEmail": false,
"signerID": "11222333-5",
"signerEmail": "yoursigner@gmail.com",
"signerPhone": "+1589902848",
"signerCountry": "CL",
"signerFirstname": "John",
"signerLastname1": "Doe",
"signerLastname2": "Black",
"anchor": "signer1",
"posX": 0,
"posY": 0,
"posX1": 300,
"posY1": 200,
"pageNo": 1,
"deleteAfterSign": false,
"skipNotification": false,
"skipSms": false,
}
Response
Success:
{
"success": true,
"GUID": "82f13f65-7829-4511-92d6-25d9351683ed",
"URL": "https://firma.legale.cl/documentSignUrl",
"debug": ""
}
Error:
{
"success": false,
"GUID": "",
"debug": "Missing Argument"
}
Other errors are following typical Restful API rules.