Skip to main content

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
ValueTypeIs requiredDescription
subjectstrNoSubject of document
file_namestrYesThe name of file you wanna to save as
descriptionstrYesDescription of document, maximum 1023 characters
folderstrNoFolder path that you wanna to save document in. If folder structure is not matched to current existing structure, system will create it.
document_statusintNoDocument status, default is 0. Available values are 0(Uploaded), 1(Ready for workflow), 2(Signed), 3(Rejected).
filestrYesBase64 string of document you wanna upload
document_typestrNoDocument type that you can put any string you want save related to the document
notestrNoString data that you can put any string you want save related to the document
datestrNoDate 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"
}