Print last order receipt
curl --request GET \
--url https://api.example.com/order/printimport requests
url = "https://api.example.com/order/print"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/order/print', 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.example.com/order/print",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/order/print"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/order/print")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/order/print")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": null,
"error": {
"code": 123,
"message": "<string>",
"data": null
},
"is_success": true
}Заказы
Печать заказа
Печать копии последнего чека
GET
/
order
/
print
Print last order receipt
curl --request GET \
--url https://api.example.com/order/printimport requests
url = "https://api.example.com/order/print"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/order/print', 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.example.com/order/print",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/order/print"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/order/print")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/order/print")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": null,
"error": {
"code": 123,
"message": "<string>",
"data": null
},
"is_success": true
}Обзор
Order Print API используется для печати копии последнего фискального чека. Операция отправляет команду фискальному принтеру для повторной печати the most recent order without creating a new transaction. Авторизация не требуется.Поля ответа
✅ Успешный ответ 200
| Поле | Тип | Описание |
|---|---|---|
data | null | No data returned |
error | null | Always null |
is_success | boolean | Always true |
🚫 Ответ с ошибкой 200
| Поле | Тип | Описание |
|---|---|---|
data | null | No data returned |
error.code | integer | Error code |
error.message | string | Error description |
error.data | any | null | Additional error data |
is_success | boolean | Always false |
Частые коды ошибок
| Код | Описание |
|---|---|
101 | Printer not working |
⌘I

