Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This method does not provide all the features that you get when submitting orders online (alternative full-feature methods will be added over time).

Table of Contents

URL

Code Block
(POST) /api/orders/create

PARAMETERS

The BODY must be of type form-data and contain two elements:

...

In Postman, this is done as follows:

...

Order parameters (“data”)

This is a JSON object with these properties:

...

Code Block
{
    "reference": "order-name",
    "client": {
        "companyId": 5404018
    },
    "option": 0,
    "sourceLanguage": "en",
    "targetLanguages": ["pl-PL", "es-ES"],
    "deadline": "2018-08-02T00:00:01.0000000Z",
     "files": [
        { "name": "xxxxxxxxx.html" },
        { "name": "___ref___\\xxxxxxxxxx.xml" }
    ],
    "customFields": [
        { "key": "CustomStr1", "text": "My value" }
    ]
}

ZIP archive (“zipFile”)

Include the ZIP file in the BODY form-data with key zipFile

...

Code Block
"files": [
    "file1.docx",
    "file2.docx",
    "marketing\\presentation.pptx",
    "___ref___\\instructions.docx"
]

RESULTS

The method executes asynchronously. It returns the id of the asynchronous operation or 0 if the operation has completed immediately:

...