Usage
At checkout
Section titled “At checkout”The customer enters a Brazilian address with a CEP; every Melhor Envio shipping method you created shows its price and delivery time from one Melhor Envio quote. If Melhor Envio does not answer within the timeout, the methods are not offered (or your fallback rate is) and checkout carries on.
Stock CS-Cart has no Brazilian states: the customer types the state. The label form accepts “SP” or “Sao Paulo” and sends the two letter code.
Labels
Section titled “Labels”- Open the order and the Melhor Envio label and tracking tab. The form is prefilled: the service the customer chose, recipient and address (street and number are split), CPF or CNPJ from the profile field, a package and the content declaration from the order.
- Check the recipient document. A CPF or CNPJ with a wrong check digit is refused before anything is sent. Leave Non-commercial (content declaration) ticked, or untick it and enter the NF-e key for a commercial shipment.
- Add to Melhor Envio cart puts the label in your Melhor Envio cart (nothing is paid). Buy label adds it, pays it from your Melhor Envio balance and generates it in one go; Pay and generate does the same for a label already in the cart.
- Print label opens a fresh Melhor Envio print link of the generated label (generated labels can be printed for 20 days).
- Tracking arrives by the webhook or the cron check; Refresh tracking asks at once. The order status moves at “posted” and “delivered” if you set statuses for them.
- Remove from cart deletes a label that is still in your Melhor Envio cart (nothing was paid). Cancel label on a paid or generated label asks Melhor Envio whether it can still be cancelled (before the carrier is notified) and cancels it; Melhor Envio refunds a paid label.
When the answer is lost
Section titled “When the answer is lost”If the answer to a request is lost (timeout, server error) the add-on never repeats a paid step on a guess: it reads the real state of the label from Melhor Envio first. A label in the cart whose creation answer was lost is looked up in your cart list and adopted. If even that lookup fails, the row is shown as Creating (unclear): look in your Melhor Envio cart, then press Remove unclear entry.
Jobs, log and connection
Section titled “Jobs, log and connection”- Jobs: counts per state, the list with the last error, Retry, Remove and Run the queue now.
- Log: filter and export what happened and when.
- Connection: application credentials, Connect, Test connection, Disconnect, Refresh services, webhook address.
Multi-Vendor
Section titled “Multi-Vendor”Owner mode: vendors see the labels of their orders and can print them and follow the tracking; creating, paying and cancelling is for the marketplace administrator. Own accounts: each vendor connects, pays and cancels their own labels.