Drop-off Points & Branches

Offer branch delivery and drop-off at checkout, and make sure the counter accepts the parcel.

Delivering to a branch instead of a home address is cheaper, and in much of Latin America it is what buyers prefer: no one has to be home. Two operations let you build that into your checkout.

The operations — find the points nearest an address, search by carrier and country — are in Drop-off Points.

You want to…Use
List the branches a carrier has in an areaFind branches
Show the closest ones to the buyer's addressFind branches near an address

Show the buyer their nearest options

API reference → Find the branches nearest to an address

curl -X POST https://api-test.envia.com/ship/branchesbyaddress \
  -H "Authorization: Bearer $ENVIA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "carrierId": 12,
    "countryCodeCoverage": "MX",
    "zipCodeCoverage": "64000",
    "streetCoverage": "Av. Constitución",
    "cityCoverage": "Monterrey",
    "stateCoverage": "Nuevo León",
    "capacity": 2,
    "packages": [
      { "weight": 2.5, "length": 30, "width": 20, "height": 15, "amount": 1 }
    ]
  }'

Required: carrierId (the numeric id, not the name), countryCodeCoverage, zipCodeCoverage, streetCoverage.

Check the carrier supports it first. Branch lookup is a separate capability, and most carriers do not have it. Ask one that does not and you get:

{ "error": { "code": 900, "message": "Carrier quiken doesn't have the action branchesbyaddress" } }

GET /carrier-actions lists what each carrier supports in a country, and needs no token. Do not build a branch picker before checking which carriers can fill it.

Pass latitude and longitude when you have them — the ordering by proximity gets better. Without them, the street and postal code are enough.

The part most integrations skip

Send packages.

Each branch has its own limits: maximum weight, maximum dimensions. When you send the package, Envia validates against those limits and only returns branches that will actually accept the parcel.

Leave packages out and you get every branch in the area — including the small counter that will turn your customer away when they arrive with a 30 kg box. That rejection happens after the label is paid for and after the buyer made the trip.

Receiving, delivering, or both

capacity filters by what the branch can do:

capacityMeaning
1Receiving — the branch accepts parcels you drop off
2Delivering — the branch holds parcels for the buyer to collect
3Both

Which one you want depends on the side of the journey:

  • Drop-off — you take the parcel to the branch instead of scheduling a pickup → capacity: 1, filtered near your address
  • Branch delivery — the buyer collects at a branch → capacity: 2, filtered near the buyer's address

Using the branch on the shipment

Once the buyer picks one, pass its code as branchCode in the corresponding address when you generate the label — on origin for drop-off, on destination for branch delivery.

Some carriers reject a branch service without a branch code, with error 1100 ("A destination PUDO (branch) must be selected for this service"). See Errors & Troubleshooting.

Filtering by service

serviceName restricts the result to branches that support one specific service. Useful when a carrier has several and only some operate through branches.

shipmentType follows the same convention as the rest of the API: 1 parcels, 2 pallet (LTL), 3 full truck (FTL).

Next steps


Did this page help you?