curl --request GET \
--url https://api.nitrotranslate.com/v1/orders/{id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.nitrotranslate.com/v1/orders/{id}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.nitrotranslate.com/v1/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nitrotranslate.com/v1/orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nitrotranslate.com/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nitrotranslate.com/v1/orders/{id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nitrotranslate.com/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"status": "PROGRESS",
"id": 123,
"source_language": "<string>",
"target_language": "<string>",
"source_text": "<string>",
"target_text": "<string>",
"snippet": "<string>",
"volume": 123,
"price": 123,
"resource": {
"type": "text/plain",
"data": "<string>",
"metadata": "<string>"
},
"context": {
"tone": "FORMAL",
"limit": 1,
"category": "IT"
},
"comments": [
{
"id": 123,
"time": "2023-11-07T05:31:56Z",
"role": "CUSTOMER",
"text": "<string>",
"attachments": [
{
"image": "<string>",
"type": "<string>",
"name": "<string>",
"weight": 123,
"size": "<string>"
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"accepted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"translator": "<string>"
}Get Order
Fetch a single order with its full details.
curl --request GET \
--url https://api.nitrotranslate.com/v1/orders/{id} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.nitrotranslate.com/v1/orders/{id}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.nitrotranslate.com/v1/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nitrotranslate.com/v1/orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nitrotranslate.com/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nitrotranslate.com/v1/orders/{id}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nitrotranslate.com/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"status": "PROGRESS",
"id": 123,
"source_language": "<string>",
"target_language": "<string>",
"source_text": "<string>",
"target_text": "<string>",
"snippet": "<string>",
"volume": 123,
"price": 123,
"resource": {
"type": "text/plain",
"data": "<string>",
"metadata": "<string>"
},
"context": {
"tone": "FORMAL",
"limit": 1,
"category": "IT"
},
"comments": [
{
"id": 123,
"time": "2023-11-07T05:31:56Z",
"role": "CUSTOMER",
"text": "<string>",
"attachments": [
{
"image": "<string>",
"type": "<string>",
"name": "<string>",
"weight": 123,
"size": "<string>"
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"accepted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"translator": "<string>"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
Response
Success
A full order record, as returned by GetOrder. Lighter listings (ListOrders, Translate) use the OrderSummary projection instead.
Lifecycle status: QUEUE (deletable) -> PROGRESS -> DONE. REVISION marks a completed order the customer reopened and is pending revision; once rework resumes it reports as PROGRESS again (DONE -> REVISION -> PROGRESS -> DONE).
QUEUE, PROGRESS, DONE, REVISION "PROGRESS"
The content to be translated. data is interpreted according to its MIME
type (e.g. text/plain, text/html, application/json).
Show child attributes
Show child attributes
Translation hints applied to an order. All fields are optional.
Show child attributes
Show child attributes
Show child attributes
Show child attributes