ppaperbrainTemplates
Sign inGet started
← All templates
E-commerce & Logistics

Shipping Label

Carrier label — service level, addresses, weight, tracking barcode, and handling instructions.

The contract

Fields your API call provides. Amounts and totals are always computed by the caller — templates only format.

from.namestringrequired
from.addressstringrequired
weightstringrequired
carrierstringrequired
ship_to.namestringrequired
ship_to.addressstringrequired
barcode_imagestringrequired
package_countstringrequired
service_levelstringrequired
tracking_numberstringrequired
handling_instructionsstringrequired

MCP-ready: forks of this template will expose generate_shipping_label when the MCP server ships.

Generate it (after you fork & publish)

curl -X POST https://your-paperbrain-host/api/generate/gen_<your-id> \
  -H "Content-Type: application/json" \
  -d '{
    "from": {
      "name": "Fern & Flame Fulfillment",
      "address": "2 Warehouse Row, Edison, NJ 08817"
    },
    "weight": "4.2 lb",
    "carrier": "FastFreight",
    "ship_to": {
      "name": "Priya Raman",
      "address": "88 Alder Street, Apt 4B, Brooklyn, NY 11211"
    },
    "barcode_image": "data:image/png;base64,iVBORw0KGg… (image)",
    "package_count": "1 of 1",
    "service_level": "PRIORITY 2-DAY",
    "tracking_number": "FF 4417 8821 0042",
    "handling_instructions": "FRAGILE — THIS SIDE UP"
  }'

gen_<your-id>is your generator's id once you fork and publish. The body shown is this template's sample data — the exact shape the contract validates.