Skip to main content
This walkthrough creates a registered letter (shipType=2) and tracks it.

1. Check your balance

Response
dif_account_balance is how much you still need to deposit for every pending order to be processed (total_val_pending_jobs - account_balance), floored at 0 — not the remaining balance. When your balance already covers the pending orders it comes back as 0.

2. Validate before paying (optional)

Send test=1 to validate the payload and PDF without creating the order or charging credits.
test accepts 1/true/yes/on for validation and 0/false/no/off for a real submission. Any other value is rejected with 400 — it is never treated as “not a test”. Sending test=2 used to create a real, billable order.
The sender block is all-or-nothing. To use a request sender, send name_sender, street_number_sender, zip_sender and country_sender. addr1_sender, city_sender and state_sender go all three together or none of them — when omitted, they come from the CEP. If any of the four is missing, or only part of the three is sent, the whole block is taken from your account profile — including the fields you did send, which are silently overwritten. If the profile has no CEP you get a 400.

3. Create the order

Drop test=1 to actually submit. The data field returns the order’s visual id — store it.
Response

4. Track the order

The status field follows this lifecycle:
Once tracking is populated, you can follow the Correios tracking code, and download the submitted PDF, envelope front, return receipt (AR) or sender’s copy via /api/v2/download/{securityToken}/{job_id}/{type}.