curl -X POST "https://api-integration.ollang.com/integration/orders/60b8d6f1e1b9b1d8c6c0d8e1/rerun" \
-H "X-Api-Key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{}'
const orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
const response = await fetch(
`https://api-integration.ollang.com/integration/orders/${orderId}/rerun`,
{
method: "POST",
headers: {
"X-Api-Key": "<your-api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
},
);
const result = await response.json();
console.log(result);
import requests
order_id = "60b8d6f1e1b9b1d8c6c0d8e1"
headers = {
'X-Api-Key': '<your-api-key>',
'Content-Type': 'application/json'
}
response = requests.post(
f'https://api-integration.ollang.com/integration/orders/{order_id}/rerun',
headers=headers,
json={}
)
print(response.json())
$orderId = '60b8d6f1e1b9b1d8c6c0d8e1';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-integration.ollang.com/integration/orders/' . $orderId . '/rerun',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => '{}',
CURLOPT_HTTPHEADER => array(
'X-Api-Key: <your-api-key>',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
$result = json_decode($response, true);
print_r($result);
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
orderId := "60b8d6f1e1b9b1d8c6c0d8e1"
url := fmt.Sprintf("https://api-integration.ollang.com/integration/orders/%s/rerun", orderId)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer([]byte("{}")))
req.Header.Set("X-Api-Key", "<your-api-key>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
String orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
HttpResponse<String> response = Unirest.post("https://api-integration.ollang.com/integration/orders/" + orderId + "/rerun")
.header("X-Api-Key", "<your-api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();
System.out.println(response.getBody());
{
"success": true,
"message": "Order rerun initiated successfully",
"orderId": "60b8d6f1e1b9b1d8c6c0d8e1"
}
{
"error": "Order not eligible for rerun",
"message": "Only completed or delivered orders can be rerun",
"code": "ORDER_NOT_ELIGIBLE"
}
{
"error": "Order not found",
"message": "No order found with the provided orderId",
"code": "ORDER_NOT_FOUND"
}
{
"error": "Access denied",
"message": "You don't have permission to rerun this order",
"code": "ACCESS_DENIED"
}
{
"error": "Unauthorized",
"message": "Invalid or missing API key",
"code": "UNAUTHORIZED"
}
Ollang API Reference
Rerun Order
Rerun an existing order to regenerate the translation using the latest AI models and settings
POST
/
integration
/
orders
/
{orderId}
/
rerun
curl -X POST "https://api-integration.ollang.com/integration/orders/60b8d6f1e1b9b1d8c6c0d8e1/rerun" \
-H "X-Api-Key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{}'
const orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
const response = await fetch(
`https://api-integration.ollang.com/integration/orders/${orderId}/rerun`,
{
method: "POST",
headers: {
"X-Api-Key": "<your-api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
},
);
const result = await response.json();
console.log(result);
import requests
order_id = "60b8d6f1e1b9b1d8c6c0d8e1"
headers = {
'X-Api-Key': '<your-api-key>',
'Content-Type': 'application/json'
}
response = requests.post(
f'https://api-integration.ollang.com/integration/orders/{order_id}/rerun',
headers=headers,
json={}
)
print(response.json())
$orderId = '60b8d6f1e1b9b1d8c6c0d8e1';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-integration.ollang.com/integration/orders/' . $orderId . '/rerun',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => '{}',
CURLOPT_HTTPHEADER => array(
'X-Api-Key: <your-api-key>',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
$result = json_decode($response, true);
print_r($result);
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
orderId := "60b8d6f1e1b9b1d8c6c0d8e1"
url := fmt.Sprintf("https://api-integration.ollang.com/integration/orders/%s/rerun", orderId)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer([]byte("{}")))
req.Header.Set("X-Api-Key", "<your-api-key>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
String orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
HttpResponse<String> response = Unirest.post("https://api-integration.ollang.com/integration/orders/" + orderId + "/rerun")
.header("X-Api-Key", "<your-api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();
System.out.println(response.getBody());
{
"success": true,
"message": "Order rerun initiated successfully",
"orderId": "60b8d6f1e1b9b1d8c6c0d8e1"
}
{
"error": "Order not eligible for rerun",
"message": "Only completed or delivered orders can be rerun",
"code": "ORDER_NOT_ELIGIBLE"
}
{
"error": "Order not found",
"message": "No order found with the provided orderId",
"code": "ORDER_NOT_FOUND"
}
{
"error": "Access denied",
"message": "You don't have permission to rerun this order",
"code": "ACCESS_DENIED"
}
{
"error": "Unauthorized",
"message": "Invalid or missing API key",
"code": "UNAUTHORIZED"
}
Rerun an existing order to regenerate the translation. This endpoint triggers a new translation process using the current AI models and any updated settings. The original order will be processed again, and the results will replace the previous translation.
curl -X POST "https://api-integration.ollang.com/integration/orders/60b8d6f1e1b9b1d8c6c0d8e1/rerun" \
-H "X-Api-Key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{}'
const orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
const response = await fetch(
`https://api-integration.ollang.com/integration/orders/${orderId}/rerun`,
{
method: "POST",
headers: {
"X-Api-Key": "<your-api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
},
);
const result = await response.json();
console.log(result);
import requests
order_id = "60b8d6f1e1b9b1d8c6c0d8e1"
headers = {
'X-Api-Key': '<your-api-key>',
'Content-Type': 'application/json'
}
response = requests.post(
f'https://api-integration.ollang.com/integration/orders/{order_id}/rerun',
headers=headers,
json={}
)
print(response.json())
$orderId = '60b8d6f1e1b9b1d8c6c0d8e1';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-integration.ollang.com/integration/orders/' . $orderId . '/rerun',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => '{}',
CURLOPT_HTTPHEADER => array(
'X-Api-Key: <your-api-key>',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
$result = json_decode($response, true);
print_r($result);
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
orderId := "60b8d6f1e1b9b1d8c6c0d8e1"
url := fmt.Sprintf("https://api-integration.ollang.com/integration/orders/%s/rerun", orderId)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer([]byte("{}")))
req.Header.Set("X-Api-Key", "<your-api-key>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
String orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
HttpResponse<String> response = Unirest.post("https://api-integration.ollang.com/integration/orders/" + orderId + "/rerun")
.header("X-Api-Key", "<your-api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();
System.out.println(response.getBody());
Authorizations
This endpoint requires API key authentication. Include your API key in the request header:- Header name:
X-Api-Key - Header value: Your API key from the Ollang dashboard
- Format:
X-Api-Key: your-api-key-here
Path Parameters
The unique identifier of the order you want to rerun. The order must be in a
completed or delivered state to be eligible for rerun.
Request Body
The request body is optional. You can send an empty object{} to rerun the order with default settings.
Response
Indicates whether the rerun was initiated successfully.
A message describing the result of the rerun request.
The ID of the order being rerun. This is the same as the input orderId.
{
"success": true,
"message": "Order rerun initiated successfully",
"orderId": "60b8d6f1e1b9b1d8c6c0d8e1"
}
{
"error": "Order not eligible for rerun",
"message": "Only completed or delivered orders can be rerun",
"code": "ORDER_NOT_ELIGIBLE"
}
{
"error": "Order not found",
"message": "No order found with the provided orderId",
"code": "ORDER_NOT_FOUND"
}
{
"error": "Access denied",
"message": "You don't have permission to rerun this order",
"code": "ACCESS_DENIED"
}
{
"error": "Unauthorized",
"message": "Invalid or missing API key",
"code": "UNAUTHORIZED"
}
Was this page helpful?
⌘I