curl --request POST \
--url https://app.escrybe.com.br/api/v2/post \
--header 'Content-Type: application/json' \
--data '
{
"userSecurityToken": "<string>",
"name": "<string>",
"addr1": "<string>",
"street_number": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"paymentMethod": "escrybe_credits",
"team_member_id": 123,
"ar_type": "physical",
"virtualbox": "0",
"addr2": "<string>",
"name_sender": "<string>",
"addr1_sender": "<string>",
"street_number_sender": "<string>",
"addr2_sender": "<string>",
"zip_sender": "<string>",
"city_sender": "<string>",
"state_sender": "<string>",
"country_sender": "<string>",
"toAddrOnly": 0,
"tag": "<string>",
"test": "0",
"pdfFile": "<string>",
"docxFile": "<string>",
"variables": "<string>",
"duplex_printing": 1,
"envelope_type": "regular",
"telegram_msg": "<string>",
"telegram_post_dated_date": "2023-12-25",
"ecarta_msg": "<string>",
"use_client_contract": "0"
}
'import requests
url = "https://app.escrybe.com.br/api/v2/post"
payload = {
"userSecurityToken": "<string>",
"name": "<string>",
"addr1": "<string>",
"street_number": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"paymentMethod": "escrybe_credits",
"team_member_id": 123,
"ar_type": "physical",
"virtualbox": "0",
"addr2": "<string>",
"name_sender": "<string>",
"addr1_sender": "<string>",
"street_number_sender": "<string>",
"addr2_sender": "<string>",
"zip_sender": "<string>",
"city_sender": "<string>",
"state_sender": "<string>",
"country_sender": "<string>",
"toAddrOnly": 0,
"tag": "<string>",
"test": "0",
"pdfFile": "<string>",
"docxFile": "<string>",
"variables": "<string>",
"duplex_printing": 1,
"envelope_type": "regular",
"telegram_msg": "<string>",
"telegram_post_dated_date": "2023-12-25",
"ecarta_msg": "<string>",
"use_client_contract": "0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userSecurityToken: '<string>',
name: '<string>',
addr1: '<string>',
street_number: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
paymentMethod: 'escrybe_credits',
team_member_id: 123,
ar_type: 'physical',
virtualbox: '0',
addr2: '<string>',
name_sender: '<string>',
addr1_sender: '<string>',
street_number_sender: '<string>',
addr2_sender: '<string>',
zip_sender: '<string>',
city_sender: '<string>',
state_sender: '<string>',
country_sender: '<string>',
toAddrOnly: 0,
tag: '<string>',
test: '0',
pdfFile: '<string>',
docxFile: '<string>',
variables: '<string>',
duplex_printing: 1,
envelope_type: 'regular',
telegram_msg: '<string>',
telegram_post_dated_date: '2023-12-25',
ecarta_msg: '<string>',
use_client_contract: '0'
})
};
fetch('https://app.escrybe.com.br/api/v2/post', 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://app.escrybe.com.br/api/v2/post",
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([
'userSecurityToken' => '<string>',
'name' => '<string>',
'addr1' => '<string>',
'street_number' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'paymentMethod' => 'escrybe_credits',
'team_member_id' => 123,
'ar_type' => 'physical',
'virtualbox' => '0',
'addr2' => '<string>',
'name_sender' => '<string>',
'addr1_sender' => '<string>',
'street_number_sender' => '<string>',
'addr2_sender' => '<string>',
'zip_sender' => '<string>',
'city_sender' => '<string>',
'state_sender' => '<string>',
'country_sender' => '<string>',
'toAddrOnly' => 0,
'tag' => '<string>',
'test' => '0',
'pdfFile' => '<string>',
'docxFile' => '<string>',
'variables' => '<string>',
'duplex_printing' => 1,
'envelope_type' => 'regular',
'telegram_msg' => '<string>',
'telegram_post_dated_date' => '2023-12-25',
'ecarta_msg' => '<string>',
'use_client_contract' => '0'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.escrybe.com.br/api/v2/post"
payload := strings.NewReader("{\n \"userSecurityToken\": \"<string>\",\n \"name\": \"<string>\",\n \"addr1\": \"<string>\",\n \"street_number\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"paymentMethod\": \"escrybe_credits\",\n \"team_member_id\": 123,\n \"ar_type\": \"physical\",\n \"virtualbox\": \"0\",\n \"addr2\": \"<string>\",\n \"name_sender\": \"<string>\",\n \"addr1_sender\": \"<string>\",\n \"street_number_sender\": \"<string>\",\n \"addr2_sender\": \"<string>\",\n \"zip_sender\": \"<string>\",\n \"city_sender\": \"<string>\",\n \"state_sender\": \"<string>\",\n \"country_sender\": \"<string>\",\n \"toAddrOnly\": 0,\n \"tag\": \"<string>\",\n \"test\": \"0\",\n \"pdfFile\": \"<string>\",\n \"docxFile\": \"<string>\",\n \"variables\": \"<string>\",\n \"duplex_printing\": 1,\n \"envelope_type\": \"regular\",\n \"telegram_msg\": \"<string>\",\n \"telegram_post_dated_date\": \"2023-12-25\",\n \"ecarta_msg\": \"<string>\",\n \"use_client_contract\": \"0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.escrybe.com.br/api/v2/post")
.header("Content-Type", "application/json")
.body("{\n \"userSecurityToken\": \"<string>\",\n \"name\": \"<string>\",\n \"addr1\": \"<string>\",\n \"street_number\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"paymentMethod\": \"escrybe_credits\",\n \"team_member_id\": 123,\n \"ar_type\": \"physical\",\n \"virtualbox\": \"0\",\n \"addr2\": \"<string>\",\n \"name_sender\": \"<string>\",\n \"addr1_sender\": \"<string>\",\n \"street_number_sender\": \"<string>\",\n \"addr2_sender\": \"<string>\",\n \"zip_sender\": \"<string>\",\n \"city_sender\": \"<string>\",\n \"state_sender\": \"<string>\",\n \"country_sender\": \"<string>\",\n \"toAddrOnly\": 0,\n \"tag\": \"<string>\",\n \"test\": \"0\",\n \"pdfFile\": \"<string>\",\n \"docxFile\": \"<string>\",\n \"variables\": \"<string>\",\n \"duplex_printing\": 1,\n \"envelope_type\": \"regular\",\n \"telegram_msg\": \"<string>\",\n \"telegram_post_dated_date\": \"2023-12-25\",\n \"ecarta_msg\": \"<string>\",\n \"use_client_contract\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/v2/post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userSecurityToken\": \"<string>\",\n \"name\": \"<string>\",\n \"addr1\": \"<string>\",\n \"street_number\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"paymentMethod\": \"escrybe_credits\",\n \"team_member_id\": 123,\n \"ar_type\": \"physical\",\n \"virtualbox\": \"0\",\n \"addr2\": \"<string>\",\n \"name_sender\": \"<string>\",\n \"addr1_sender\": \"<string>\",\n \"street_number_sender\": \"<string>\",\n \"addr2_sender\": \"<string>\",\n \"zip_sender\": \"<string>\",\n \"city_sender\": \"<string>\",\n \"state_sender\": \"<string>\",\n \"country_sender\": \"<string>\",\n \"toAddrOnly\": 0,\n \"tag\": \"<string>\",\n \"test\": \"0\",\n \"pdfFile\": \"<string>\",\n \"docxFile\": \"<string>\",\n \"variables\": \"<string>\",\n \"duplex_printing\": 1,\n \"envelope_type\": \"regular\",\n \"telegram_msg\": \"<string>\",\n \"telegram_post_dated_date\": \"2023-12-25\",\n \"ecarta_msg\": \"<string>\",\n \"use_client_contract\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"status_message": "Sucesso - pedido aceito",
"data": "2607031"
}Criar um pedido
Cria um pedido de carta, carta registrada, telegrama, mala direta, Sedex ou e-Carta. Os campos obrigatórios dependem do shipType. Documentos PDF podem ser enviados como base64, URL ou upload de arquivo (multipart).
curl --request POST \
--url https://app.escrybe.com.br/api/v2/post \
--header 'Content-Type: application/json' \
--data '
{
"userSecurityToken": "<string>",
"name": "<string>",
"addr1": "<string>",
"street_number": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"paymentMethod": "escrybe_credits",
"team_member_id": 123,
"ar_type": "physical",
"virtualbox": "0",
"addr2": "<string>",
"name_sender": "<string>",
"addr1_sender": "<string>",
"street_number_sender": "<string>",
"addr2_sender": "<string>",
"zip_sender": "<string>",
"city_sender": "<string>",
"state_sender": "<string>",
"country_sender": "<string>",
"toAddrOnly": 0,
"tag": "<string>",
"test": "0",
"pdfFile": "<string>",
"docxFile": "<string>",
"variables": "<string>",
"duplex_printing": 1,
"envelope_type": "regular",
"telegram_msg": "<string>",
"telegram_post_dated_date": "2023-12-25",
"ecarta_msg": "<string>",
"use_client_contract": "0"
}
'import requests
url = "https://app.escrybe.com.br/api/v2/post"
payload = {
"userSecurityToken": "<string>",
"name": "<string>",
"addr1": "<string>",
"street_number": "<string>",
"zip": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"paymentMethod": "escrybe_credits",
"team_member_id": 123,
"ar_type": "physical",
"virtualbox": "0",
"addr2": "<string>",
"name_sender": "<string>",
"addr1_sender": "<string>",
"street_number_sender": "<string>",
"addr2_sender": "<string>",
"zip_sender": "<string>",
"city_sender": "<string>",
"state_sender": "<string>",
"country_sender": "<string>",
"toAddrOnly": 0,
"tag": "<string>",
"test": "0",
"pdfFile": "<string>",
"docxFile": "<string>",
"variables": "<string>",
"duplex_printing": 1,
"envelope_type": "regular",
"telegram_msg": "<string>",
"telegram_post_dated_date": "2023-12-25",
"ecarta_msg": "<string>",
"use_client_contract": "0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userSecurityToken: '<string>',
name: '<string>',
addr1: '<string>',
street_number: '<string>',
zip: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
paymentMethod: 'escrybe_credits',
team_member_id: 123,
ar_type: 'physical',
virtualbox: '0',
addr2: '<string>',
name_sender: '<string>',
addr1_sender: '<string>',
street_number_sender: '<string>',
addr2_sender: '<string>',
zip_sender: '<string>',
city_sender: '<string>',
state_sender: '<string>',
country_sender: '<string>',
toAddrOnly: 0,
tag: '<string>',
test: '0',
pdfFile: '<string>',
docxFile: '<string>',
variables: '<string>',
duplex_printing: 1,
envelope_type: 'regular',
telegram_msg: '<string>',
telegram_post_dated_date: '2023-12-25',
ecarta_msg: '<string>',
use_client_contract: '0'
})
};
fetch('https://app.escrybe.com.br/api/v2/post', 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://app.escrybe.com.br/api/v2/post",
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([
'userSecurityToken' => '<string>',
'name' => '<string>',
'addr1' => '<string>',
'street_number' => '<string>',
'zip' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'paymentMethod' => 'escrybe_credits',
'team_member_id' => 123,
'ar_type' => 'physical',
'virtualbox' => '0',
'addr2' => '<string>',
'name_sender' => '<string>',
'addr1_sender' => '<string>',
'street_number_sender' => '<string>',
'addr2_sender' => '<string>',
'zip_sender' => '<string>',
'city_sender' => '<string>',
'state_sender' => '<string>',
'country_sender' => '<string>',
'toAddrOnly' => 0,
'tag' => '<string>',
'test' => '0',
'pdfFile' => '<string>',
'docxFile' => '<string>',
'variables' => '<string>',
'duplex_printing' => 1,
'envelope_type' => 'regular',
'telegram_msg' => '<string>',
'telegram_post_dated_date' => '2023-12-25',
'ecarta_msg' => '<string>',
'use_client_contract' => '0'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.escrybe.com.br/api/v2/post"
payload := strings.NewReader("{\n \"userSecurityToken\": \"<string>\",\n \"name\": \"<string>\",\n \"addr1\": \"<string>\",\n \"street_number\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"paymentMethod\": \"escrybe_credits\",\n \"team_member_id\": 123,\n \"ar_type\": \"physical\",\n \"virtualbox\": \"0\",\n \"addr2\": \"<string>\",\n \"name_sender\": \"<string>\",\n \"addr1_sender\": \"<string>\",\n \"street_number_sender\": \"<string>\",\n \"addr2_sender\": \"<string>\",\n \"zip_sender\": \"<string>\",\n \"city_sender\": \"<string>\",\n \"state_sender\": \"<string>\",\n \"country_sender\": \"<string>\",\n \"toAddrOnly\": 0,\n \"tag\": \"<string>\",\n \"test\": \"0\",\n \"pdfFile\": \"<string>\",\n \"docxFile\": \"<string>\",\n \"variables\": \"<string>\",\n \"duplex_printing\": 1,\n \"envelope_type\": \"regular\",\n \"telegram_msg\": \"<string>\",\n \"telegram_post_dated_date\": \"2023-12-25\",\n \"ecarta_msg\": \"<string>\",\n \"use_client_contract\": \"0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.escrybe.com.br/api/v2/post")
.header("Content-Type", "application/json")
.body("{\n \"userSecurityToken\": \"<string>\",\n \"name\": \"<string>\",\n \"addr1\": \"<string>\",\n \"street_number\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"paymentMethod\": \"escrybe_credits\",\n \"team_member_id\": 123,\n \"ar_type\": \"physical\",\n \"virtualbox\": \"0\",\n \"addr2\": \"<string>\",\n \"name_sender\": \"<string>\",\n \"addr1_sender\": \"<string>\",\n \"street_number_sender\": \"<string>\",\n \"addr2_sender\": \"<string>\",\n \"zip_sender\": \"<string>\",\n \"city_sender\": \"<string>\",\n \"state_sender\": \"<string>\",\n \"country_sender\": \"<string>\",\n \"toAddrOnly\": 0,\n \"tag\": \"<string>\",\n \"test\": \"0\",\n \"pdfFile\": \"<string>\",\n \"docxFile\": \"<string>\",\n \"variables\": \"<string>\",\n \"duplex_printing\": 1,\n \"envelope_type\": \"regular\",\n \"telegram_msg\": \"<string>\",\n \"telegram_post_dated_date\": \"2023-12-25\",\n \"ecarta_msg\": \"<string>\",\n \"use_client_contract\": \"0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/v2/post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userSecurityToken\": \"<string>\",\n \"name\": \"<string>\",\n \"addr1\": \"<string>\",\n \"street_number\": \"<string>\",\n \"zip\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"paymentMethod\": \"escrybe_credits\",\n \"team_member_id\": 123,\n \"ar_type\": \"physical\",\n \"virtualbox\": \"0\",\n \"addr2\": \"<string>\",\n \"name_sender\": \"<string>\",\n \"addr1_sender\": \"<string>\",\n \"street_number_sender\": \"<string>\",\n \"addr2_sender\": \"<string>\",\n \"zip_sender\": \"<string>\",\n \"city_sender\": \"<string>\",\n \"state_sender\": \"<string>\",\n \"country_sender\": \"<string>\",\n \"toAddrOnly\": 0,\n \"tag\": \"<string>\",\n \"test\": \"0\",\n \"pdfFile\": \"<string>\",\n \"docxFile\": \"<string>\",\n \"variables\": \"<string>\",\n \"duplex_printing\": 1,\n \"envelope_type\": \"regular\",\n \"telegram_msg\": \"<string>\",\n \"telegram_post_dated_date\": \"2023-12-25\",\n \"ecarta_msg\": \"<string>\",\n \"use_client_contract\": \"0\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"status_message": "Sucesso - pedido aceito",
"data": "2607031"
}Corpo
Seu token de segurança.
1 Carta Simples · 2 Carta Registrada · 3 Carta Registrada + AR · 4 Telegrama · 5 Mala Direta · 6 Sedex · 7 Sedex + AR · 8 eCarta Simples · 9 eCarta Registrada · 10 eCarta Registrada + AR. Sedex (6, 7) só é aceito com virtualbox=1 ou quando o endereço do remetente é em Jaú/SP.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Nome do destinatário. Campos obrigatórios enviados em branco (ou só com espaços) são recusados.
1 - 601 - 60Número do imóvel. Para Telegrama e eCarta (shipTypes 4, 8, 9, 10) precisa ter ao menos uma letra ou dígito — os Correios exigem o número em seu próprio campo. Use S/N quando não houver; - e . são recusados.
1 - 15CEP do destinatário, 8 dígitos. A pontuação é removida, então 78470-000 e 78470000 são equivalentes; qualquer valor que não tenha 8 dígitos é recusado. Validado nos Correios para endereços brasileiros e a UF é conferida contra o CEP. Um CEP que os Correios ALTERARAM NÃO é recusado: o pedido é criado com o CEP novo e a status_message de sucesso informa a troca (ex.: "CEP do destinatario 78460-000 foi alterado pelos Correios e corrigido automaticamente para 78470-000.").
^\d{5}-?\d{3}$1 - 40Para endereços brasileiros deve ser a UF de 2 letras (ex.: SP).
1 - 401 - 60escrybe_credits, invoice, team Obrigatório quando paymentMethod=team.
electronic só é permitido para shipTypes 3, 7 e 10.
physical, electronic Serviço Virtual Box — quando 1 (ou "true"), o endereço do remetente é substituído pela unidade da Escrybe (Jaú/SP) e a precificação do Virtual Box é aplicada. É também o caminho para enviar Sedex (shipType 6 e 7) com remetente fora de Jaú/SP, que de outro modo é recusado.
0, 1 40Bloco do remetente. Se QUALQUER campo de remetente faltar, o bloco INTEIRO vem do cadastro da sua conta — inclusive os campos que você enviou, que são sobrescritos. Envie os sete campos de remetente juntos, ou nenhum deles. Se o cadastro também estiver incompleto, a requisição falha com 400.
60601540CEP do remetente, 8 dígitos. Mesmas regras do zip, incluindo a correção automática de CEP alterado.
^\d{5}-?\d{3}$404060Considerado apenas para shipTypes 2, 3, 6, 7 e 10; forçado para 0 nos demais.
0, 1 Rótulo livre para sua própria referência.
Modo de validação. Aceita 1/true/yes/on para validar sem criar o pedido (o preço calculado é devolvido) e 0/false/no/off para enviar de verdade. QUALQUER outro valor é recusado com 400 — antes ele caía num pedido real e cobrável.
Obrigatório para shipTypes 1,2,3,5,6,7. String base64, URL (links públicos de Google Docs/Drive suportados) ou arquivo multipart. Máx. 150 páginas; PDFs com senha são rejeitados.
Optional alternative to pdfFile for shipTypes 1,2,3,5,6,7: a Word (.docx) template as base64 or multipart file. Every {{variable}} in the document (body, headers, footers) is replaced with the value given in variables for this recipient, then the result is converted to the PDF that gets printed. When both are sent, docxFile wins. Returns 503 if DOCX conversion is not available on the server.
Objeto JSON opcional {"nome": "Ana", "valor": "R$ 120,00"} com os valores deste destinatário para os marcadores {{variavel}} em telegram_msg, ecarta_msg ou docxFile. Nomes ignoram maiúsculas e acentos ({{ Número do Contrato }} = numero_do_contrato); marcador sem valor sai em branco. Máximo de 50 variáveis, 2000 caracteres cada. Páginas e preço são calculados sobre o texto renderizado. Os campos do destinatário desta requisição estão SEMPRE disponíveis como marcadores, em inglês ou português, sem precisar enviá-los aqui: {{name}}/{{nome}}, {{addr1}}/{{endereco}}, {{street_number}}/{{numero}}, {{addr2}}/{{complemento}}, {{zip}}/{{cep}} (formatado 00000-000, após a correção dos Correios), {{city}}/{{cidade}}, {{state}}/{{uf}}, {{country}}/{{pais}}. Um valor enviado em variables com um desses nomes é ignorado em favor do campo.
Também aceita "true"/"false". Forçado para 1 em PDFs de página única e para 0 quando envelope_type=autoenvelope.
0, 1 autoenvelope exige um PDF de página única.
regular, autoenvelope Obrigatório para shipType=4. Mín. 10 caracteres; conteúdo renderizado limitado a 10 páginas.
Obrigatório (0 ou 1) quando shipType=4.
0, 1 Obrigatório quando telegram_post_dated=1; deve ser uma data futura (amanhã ou depois).
Obrigatório (0 ou 1) quando shipType=4.
0, 1 Obrigatório (0 ou 1) quando shipType=4.
0, 1 Obrigatório para shipTypes 8,9,10. Mín. 10 caracteres; pode conter HTML. Conteúdo renderizado limitado a 10 páginas.
Post through your own Correios contract. Only for shipTypes 2,3,4,6,7,8,9,10; requires a PJ account with Correios credentials (API user, token, contract number and card) registered and a plan that allows it. Pricing changes: Correios bills postage, freight, AR, Mão Própria and telegram extras to YOUR contract, and Escrybe charges only handling/printing per your plan (plus extra sheets, single-sided printing, AutoEnvelope and VirtualBox where they apply). The Correios freight is quoted on your contract when the order is placed and returned as shipping_cost by GET /order — reported, not charged. A failed authentication or quote on your contract refuses the order with HTTP 400.
0, 1