v2 order API covers every physical and hybrid product. The shipType
field selects the product and determines which fields are required.
Shipment types
Sedex (
shipType 6 and 7) only ships from Jaú/SP. Either send virtualbox=1,
which replaces the sender with Escrybe’s facility, or use a sender address in
Jaú/SP. Any other sender city is refused with 400.Endpoints
Full request/response schemas live in the API Reference tab.
Billing a team
paymentMethod=team bills the order to the owner of a team you belong to (instead of
your credits or your own invoice). It requires team_member_id, and that number is
not the team id: it is the id of your membership in that team, different for each
member. Two ways to get it:
GET /api/v2/teams/{securityToken}lists the teams you can bill, each with itsteam_member_id. It is the same list as the “Times” group of the payment method on the panel’s send pages: active memberships only, and only teams whose owner is on a plan that allows invoicing.- In the panel, under Times, every team shows “ID para a API” with a copy button.
you_are_owner: true) and bills their own team with their
own team_member_id. A team_member_id that is not one of your memberships answers 403;
a team whose owner cannot be invoiced answers 400. The same field applies to
/api/email/v1/post and /api/whatsapp/v1/post.
Sending the document
ThepdfFile field accepts three forms:
- Base64 — a base64-encoded PDF string
- URL — a publicly reachable URL (fetched server-side through a proxy); public Google Docs/Drive links are supported
- File upload — a
multipart/form-datafile part
400 whichever way it is sent.
Telegrams & e-Carta
These products carry a text body instead of a PDF (rendered content is limited to 10 pages):shipType=4requirestelegram_msg(min 10 chars) and the flagstelegram_post_dated,telegram_sender_copyandtelegram_delivery_confirmation(each must be present with value 0 or 1). Whentelegram_post_dated=1,telegram_post_dated_datemust be a future date.- Optional
telegram_sender_copy_formatandtelegram_delivery_confirmation_formatchoose how each additional reaches you:physical(paper, by mail),electronic(e-mail from Correios to the account e-mail) orboth(default).telegram_additional_emailreplaces the account e-mail for the electronic copy; a malformed address returns 400. - Each additional posted on paper is its own Correios object with its own tracking
code.
GET /api/v2/getreturns them intelegram_info(tracking_pc,tracking_cc) together with their Correios timeline and derived state (tracking_pc_records,tracking_pc_state, …), refreshed hourly. The telegram’s ownstatusandstatus_deliveryare not affected by them. - For the electronic copy, the PDF the Correios e-mail is attached to the order
automatically (within 15 minutes of arrival): the sender copy sets
sender_copy_available = trueand the delivery confirmation lands infilesasrr_electronic, with therr.createdwebhook. shipType=8|9|10requireecarta_msg(min 10 chars, may contain HTML).
Downloading files
/api/v2/download/{securityToken}/{job_id}/{type} returns base64 content. The type parameter selects the
file: