Document from G2L
Overview
You can use use this API request to migrate document from G2L to Legale.
Response will return the GUID
of document that is created from Legale.
This API doesn't support to migrate Workflow information, only migrate document with correct status from G2L.
API detail
Request
- URL:
/migrate/document/g2l/
- Method:
POST
- Content-Type:
application/json
- Body:
{
"subject": "Subject of document",
"file_name": "file name of document",
"description": "description of document",
"folder": "Contract/Company1",
"document_status": 1,
"file": "JVBERioxLjUNCiW1tbWiDQoxIDAgb2JDo9PC....",
"document_type": "Test",
"note": "Test",
"date": null
}
Request body details
document
Value | Type | Is required | Description |
---|---|---|---|
subject | str | No | Subject of document |
file_name | str | Yes | The name of file you wanna to save as |
description | str | Yes | Description of document, maximum 1023 characters |
folder | str | No | Folder path that you wanna to save document in. If folder structure is not matched to current existing structure, system will create it. |
document_status | int | No | Document status, default is 0 . Available values are 0 (Uploaded), 1 (Ready for workflow), 2 (Signed), 3 (Rejected). |
file | str | Yes | Base64 string of document you wanna upload |
document_type | str | No | Document type that you can put any string you want save related to the document |
note | str | No | String data that you can put any string you want save related to the document |
date | str | No | Date string that you can put any date you want save related to the document |
Response
Success
- Status code:
201
- Body:
{
"GUID": "0fe75c65-70cc-4517-ac7f-ebba85bfa63e"
}