Versions Compared

Key

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

Use this method to create new orders.

This is only for the standard order form. The new order form uses a different method.


URL

(POST) orders

PARAMETERS

token

The token obtained on connection

Required

data

A json array object containing a list of custom field ids and values. See below for details.

Parameters:

  • reference (string)
  • deadline (datetime, optional)
  • status (EOrderStatus, optional)
  • receivedDate (datetime, optional)
  • projectId (int, optional)
  • companyId (int)
  • personId (int, optional)
  • managerId (int, optional)
  • instructions (string, optional)
  • comments (string, optional)
  • sourceLocale (string)
  • targetLocales (Array[string])
  • tasks (Array[string], optional)
  • domains (Array[string], optional)
  • customFields (Array[Object], optional)
    • id (string)
    • value (string)
  • labels (Array[Object], optional)
    • id (int)
    • value (int?)

Example:

Code Block
[ {
	"reference" =: "order-name",
	"manager": =21158484,
	"sourceLocale"Mister: Manager"en",
	"targetLanguagestargetLocales": = ["pl-PL", "es-ES"],
	"clientdeadline"="Happy Company" =(json object that contains a person)
	"deadline" = 
	"files" =(json object)  
	"isDeadlineByFiles" = 
	"isAppointment" = (optional)
	"appointmentEndDate" = (optional)
	"appointmentStartDate" =(optional)
	"client" => person => id
	"client" => company => id
	"domains" =(optional)
	"sourceLanguage" =(optional)
	"option" =

} ]: "2018-08-01T00:00:01.0000000Z",
	"personId": 04645,
	"instructions": "This should be translated with new French",
	"customFields": [
		{ "id": "CustomStr1", "value": "Super field" },
		{ "id": "CustomStr2", "value": "Adventure" }
	]
}


Required