Um CT-e.
curl --request GET \
--url https://economy.synxbr.com/api/v1/transport-invoices/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/transport-invoices/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://economy.synxbr.com/api/v1/transport-invoices/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://economy.synxbr.com/api/v1/transport-invoices/{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: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"awaiting_confirmation": true,
"number": "<string>",
"series": "<string>",
"access_key": "<string>",
"authorization_protocol": "<string>",
"production": true,
"cfop": "<string>",
"nature": "<string>",
"receivable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"taker": {
"role": "sender",
"contact": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"name": "<string>",
"tax_id": "<string>",
"state": "<string>"
},
"sender": {
"name": "<string>",
"tax_id": "<string>"
},
"recipient": {
"name": "<string>",
"tax_id": "<string>"
},
"origin": {
"city": "<string>",
"state": "<string>",
"city_code": "<string>"
},
"destination": {
"city": "<string>",
"state": "<string>",
"city_code": "<string>"
},
"amount": "<string>",
"receivable_amount": "<string>",
"taxes": {
"icms_cst": "<string>",
"icms_base": "<string>",
"icms_rate": "<string>",
"icms_amount": "<string>",
"ibs_amount": "<string>",
"cbs_amount": "<string>"
},
"cargo": {
"product": "<string>",
"value": "<string>",
"unit": "<string>",
"measure": "<string>",
"quantity": "<string>"
},
"issue_date": "2023-11-07T05:31:56Z",
"delivery_forecast": "2023-12-25",
"issued_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"cancel_reason": "<string>",
"error_code": "<string>",
"error_message": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "<string>",
"installments": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"generated_titles": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}Um CT-e.
Permissão exigida: Visualizar CT-e (cte.view).
GET
/
transport-invoices
/
{id}
Um CT-e.
curl --request GET \
--url https://economy.synxbr.com/api/v1/transport-invoices/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/transport-invoices/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://economy.synxbr.com/api/v1/transport-invoices/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://economy.synxbr.com/api/v1/transport-invoices/{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: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"awaiting_confirmation": true,
"number": "<string>",
"series": "<string>",
"access_key": "<string>",
"authorization_protocol": "<string>",
"production": true,
"cfop": "<string>",
"nature": "<string>",
"receivable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"taker": {
"role": "sender",
"contact": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"name": "<string>",
"tax_id": "<string>",
"state": "<string>"
},
"sender": {
"name": "<string>",
"tax_id": "<string>"
},
"recipient": {
"name": "<string>",
"tax_id": "<string>"
},
"origin": {
"city": "<string>",
"state": "<string>",
"city_code": "<string>"
},
"destination": {
"city": "<string>",
"state": "<string>",
"city_code": "<string>"
},
"amount": "<string>",
"receivable_amount": "<string>",
"taxes": {
"icms_cst": "<string>",
"icms_base": "<string>",
"icms_rate": "<string>",
"icms_amount": "<string>",
"ibs_amount": "<string>",
"cbs_amount": "<string>"
},
"cargo": {
"product": "<string>",
"value": "<string>",
"unit": "<string>",
"measure": "<string>",
"quantity": "<string>"
},
"issue_date": "2023-11-07T05:31:56Z",
"delivery_forecast": "2023-12-25",
"issued_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"cancel_reason": "<string>",
"error_code": "<string>",
"error_message": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "<string>",
"installments": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"generated_titles": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}