curl --request POST \
--url https://economy.synxbr.com/api/v1/transport-manifests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"loading": {
"state": "<string>",
"city_code": "<string>",
"city": "<string>",
"zip": "<string>"
},
"unloading": {
"state": "<string>",
"zip": "<string>"
},
"documents": [
{
"access_key": "<string>",
"city_code": "<string>",
"city": "<string>"
}
],
"cargo": {
"value": "<string>",
"weight": "<string>",
"description": "<string>",
"ncm": "<string>"
},
"vehicle": {
"plate": "<string>",
"tare_kg": "<string>",
"state": "<string>"
},
"drivers": [
{
"name": "<string>",
"cpf": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
loading: {state: '<string>', city_code: '<string>', city: '<string>', zip: '<string>'},
unloading: {state: '<string>', zip: '<string>'},
documents: [{access_key: '<string>', city_code: '<string>', city: '<string>'}],
cargo: {
value: '<string>',
weight: '<string>',
description: '<string>',
ncm: '<string>'
},
vehicle: {plate: '<string>', tare_kg: '<string>', state: '<string>'},
drivers: [{name: '<string>', cpf: '<string>'}]
})
};
fetch('https://economy.synxbr.com/api/v1/transport-manifests', 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-manifests"
payload = {
"loading": {
"state": "<string>",
"city_code": "<string>",
"city": "<string>",
"zip": "<string>"
},
"unloading": {
"state": "<string>",
"zip": "<string>"
},
"documents": [
{
"access_key": "<string>",
"city_code": "<string>",
"city": "<string>"
}
],
"cargo": {
"value": "<string>",
"weight": "<string>",
"description": "<string>",
"ncm": "<string>"
},
"vehicle": {
"plate": "<string>",
"tare_kg": "<string>",
"state": "<string>"
},
"drivers": [
{
"name": "<string>",
"cpf": "<string>"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://economy.synxbr.com/api/v1/transport-manifests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'loading' => [
'state' => '<string>',
'city_code' => '<string>',
'city' => '<string>',
'zip' => '<string>'
],
'unloading' => [
'state' => '<string>',
'zip' => '<string>'
],
'documents' => [
[
'access_key' => '<string>',
'city_code' => '<string>',
'city' => '<string>'
]
],
'cargo' => [
'value' => '<string>',
'weight' => '<string>',
'description' => '<string>',
'ncm' => '<string>'
],
'vehicle' => [
'plate' => '<string>',
'tare_kg' => '<string>',
'state' => '<string>'
],
'drivers' => [
[
'name' => '<string>',
'cpf' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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",
"number": "<string>",
"series": "<string>",
"access_key": "<string>",
"authorization_protocol": "<string>",
"production": true,
"nature": "<string>",
"receivable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"contact": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"recipient": {
"name": "<string>",
"tax_id": "<string>",
"email": "<string>",
"state": "<string>"
},
"amount": "<string>",
"issue_date": "2023-11-07T05:31:56Z",
"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",
"route": {
"start_state": "<string>",
"end_state": "<string>"
},
"vehicle_plate": "<string>",
"cargo": {
"weight": "<string>",
"unit": "<string>"
},
"document_count": 123,
"closed_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>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}Emite um MDF-e (manifesto da viagem, modal rodoviário).
Como a NF-e: o manifesto é conferido (as mesmas regras da tela) e gravado como queued; o envio sai em até um minuto e a situação chega pelo evento transport_manifest.status_changed. Os documentos transportados são chaves de NF-e, CT-e ou MDF-e, cada uma com o município onde descarrega. O seguro da carga, o RNTRC, o tipo de emitente e o produto predominante padrão vêm da configuração do MDF-e; a entrada troca o que muda na viagem. Manifesto com um único documento é carga lotação: informe o CEP de carregamento e o de descarregamento. A numeração é do serviço fiscal. Empresa sem a configuração do MDF-e pronta: 409 fiscal_setup_incomplete.
Permissão exigida: Emitir e operar MDF-e (mdfe.issue).
curl --request POST \
--url https://economy.synxbr.com/api/v1/transport-manifests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"loading": {
"state": "<string>",
"city_code": "<string>",
"city": "<string>",
"zip": "<string>"
},
"unloading": {
"state": "<string>",
"zip": "<string>"
},
"documents": [
{
"access_key": "<string>",
"city_code": "<string>",
"city": "<string>"
}
],
"cargo": {
"value": "<string>",
"weight": "<string>",
"description": "<string>",
"ncm": "<string>"
},
"vehicle": {
"plate": "<string>",
"tare_kg": "<string>",
"state": "<string>"
},
"drivers": [
{
"name": "<string>",
"cpf": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
loading: {state: '<string>', city_code: '<string>', city: '<string>', zip: '<string>'},
unloading: {state: '<string>', zip: '<string>'},
documents: [{access_key: '<string>', city_code: '<string>', city: '<string>'}],
cargo: {
value: '<string>',
weight: '<string>',
description: '<string>',
ncm: '<string>'
},
vehicle: {plate: '<string>', tare_kg: '<string>', state: '<string>'},
drivers: [{name: '<string>', cpf: '<string>'}]
})
};
fetch('https://economy.synxbr.com/api/v1/transport-manifests', 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-manifests"
payload = {
"loading": {
"state": "<string>",
"city_code": "<string>",
"city": "<string>",
"zip": "<string>"
},
"unloading": {
"state": "<string>",
"zip": "<string>"
},
"documents": [
{
"access_key": "<string>",
"city_code": "<string>",
"city": "<string>"
}
],
"cargo": {
"value": "<string>",
"weight": "<string>",
"description": "<string>",
"ncm": "<string>"
},
"vehicle": {
"plate": "<string>",
"tare_kg": "<string>",
"state": "<string>"
},
"drivers": [
{
"name": "<string>",
"cpf": "<string>"
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://economy.synxbr.com/api/v1/transport-manifests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'loading' => [
'state' => '<string>',
'city_code' => '<string>',
'city' => '<string>',
'zip' => '<string>'
],
'unloading' => [
'state' => '<string>',
'zip' => '<string>'
],
'documents' => [
[
'access_key' => '<string>',
'city_code' => '<string>',
'city' => '<string>'
]
],
'cargo' => [
'value' => '<string>',
'weight' => '<string>',
'description' => '<string>',
'ncm' => '<string>'
],
'vehicle' => [
'plate' => '<string>',
'tare_kg' => '<string>',
'state' => '<string>'
],
'drivers' => [
[
'name' => '<string>',
'cpf' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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",
"number": "<string>",
"series": "<string>",
"access_key": "<string>",
"authorization_protocol": "<string>",
"production": true,
"nature": "<string>",
"receivable": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"contact": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"recipient": {
"name": "<string>",
"tax_id": "<string>",
"email": "<string>",
"state": "<string>"
},
"amount": "<string>",
"issue_date": "2023-11-07T05:31:56Z",
"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",
"route": {
"start_state": "<string>",
"end_state": "<string>"
},
"vehicle_plate": "<string>",
"cargo": {
"weight": "<string>",
"unit": "<string>"
},
"document_count": 123,
"closed_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>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}Autorizações
Cabeçalhos
Um identificador único deste pedido (um UUID serve), de 8 a 100 caracteres. Repetir o pedido com a mesma chave devolve a mesma resposta, sem criar outro registro (24 h); a mesma chave com outro conteúdo é recusada (422). A resposta repetida vem com o cabeçalho Idempotent-Replayed: true.
8 - 100