Brazil: parcel extra tasks and motorcycle parcels
Built: 2026-11-03. Written for operators in Brazil and whoever maintains the code.
Delivery apps in Brazil (99 Entrega, Uber Flash, Lalamove) let the sender ask for more than carrying a box, and most deliveries go by motorcycle. RideKit parcels already had collection and delivery codes, photos, cover and returns, and quoted every vehicle class, motorcycles included. This adds:
1. Collect a signature
The sender ticks Collect a signature. At the door, the driver hands the recipient the phone. The recipient:
- types their full name (at least two words);
- ticks "I, (name), received this package."
RideKit keeps the name, the time and the place of delivery. This is a simple electronic signature (Lei 14.063/2020), the kind used for everyday receipts.
- Without it the delivery is refused, before the delivery code is checked, so a missing signature costs no code attempt.
- The sender's tracking screen shows "Signed by Ana Souza · 1:08".
2. Round trip: bring something back
The sender ticks Round trip and says what comes back, for example "Clean laundry, 2 bags". It costs the market's return share of the fare (60% by default, under Admin → Pricing → Parcels), which is quoted and fixed when booking.
- The driver sees the task from the start.
- After delivering (and the signature, if asked), the parcel goes straight to Return to sender, with what to bring back.
- The sender gets a return code. The driver hands the item over against that code, as for any return.
- Both legs settle together. The fare includes the way back, and the driver is paid for both.
3. Motorcycles carry up to medium
A moto courier's box holds a medium parcel at most.
- A motorcycle quote for a larger size is refused.
- The rider app leaves motorcycles out for that size and says why: "Motorcycles carry parcels up to medium".
- The limit is set under Admin → Pricing → Parcels → Motorcycles. It can be any size, or no limit.
Tested end to end
- API (
parcel-tasks-e2e.mjs, 18 checks):- a large parcel refused on a motorcycle; medium accepted; large by car;
- the round trip quoted at +60%, and refused without saying what comes back;
- booked with both tasks, and the driver sees them;
- pickup with photo and code;
- delivery refused without a full name and confirmation, costing no code attempt;
- signed and delivered: now returning, with the signature kept (name, time, place) and the ride still running;
- the sender sees the signature, the return code and the timeline;
- handed back with the sender's code: returned, and the fare includes the way back.
- Driver app on the iOS simulator:
- the tasks banner;
- the signature step: the full name, the recipient's tick and the delivery code;
- after delivery, "Return to sender" with the fee and the return code;
- handed back in the app: the parcel was returned and the ride completed.
- Rider app on the iOS simulator (Arabic): the tracking details show "Signed by Ana Souza", the round trip and its price, and the total.
- Admin in Chrome: the motorcycle limit shows Medium, is saved as Large, and is set back.
For the code
| What | Where |
|---|---|
| Tasks, signature, motorcycle limit | backend/src/parcels/parcel-tasks.ts (+ spec) |
| Quote (round trip line, motorcycle check) | backend/src/parcels/parcel-pricing.service.ts |
| Booking and delivery | backend/src/parcels/parcels.service.ts (book, deliver); a round trip goes from in transit straight to returning (parcel.enums.ts) |
| Config | parcel.twoWheelerMaxTier (parcel-config.ts), Admin → Pricing → Parcels |
| Storage | migration 182: parcels.tasks, parcels.signature |
| Rider app | app/(app)/parcel.tsx (tasks, motorcycle note), parcel-track.tsx (signature, round trip); 14 languages |
| Driver app | app/(app)/parcel.tsx (tasks banner, signature, round trip); 14 languages |
Check before launch. A typed name with a confirmation is a simple electronic signature. For deliveries that need more (contracts, notarised papers), use the delivery photo too, or a qualified signature outside the app.