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.
Response
Success:
POST /api/legale/legaleDocument HTTP/1.1
Host: ServiceURL
Authorization: Bearer token
Connection: keep-alive
Content-Type: application/json
Argument:
Parameter | Description | Mandatory |
user | Email of legale user | Yes |
document | Base64 String of document | Yes |
FileName | Nombre del documento | Yes |
subject | Cancel Document | Yes |
description | Description | Yes |
ID | Identity number such as RUT, DNI, NIF | Yes |
callbackURL | Callback URL of your service | 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 |
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 |
skipAnchor | If you set this “true”, document will follow the normal sign flux. | No |
attached1 | Base64 string of attached file1 | No |
attached2 | Base64 string of attached file2 | No |
attached3 | Base64 string of attached file3 | 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
{
"user": "legaleuser@gmail.com",
"FileName": "Test.pdf",
"document": "JVBE...",
"subject": "Test Upload with API from G2L",
"description": "This is my first upload with Postman API from G2L",
"ID": "11.222.333-6",
"callbackURL": "https://yourhost.com/yourcallbackURL",
"anchor": "signer1",
"attached1": "JVBE...",
"attached2": "JVBE...",
"attached3": "JVBE...",
"deleteAfterSign": false,
"skipNotification": false,
"skipAnchor": false,
}
Response
Success:
{
"success": true,
"GUID": "82f13f65-7829-4511-92d6-25d9351683ed",
"debug": ""
}
Error:
{
"success": false,
"GUID": "",
"debug": "Missing Argument"
}
Other errors are following typical Restful API rules.