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.name | string | required |
| from.address | string | required |
| weight | string | required |
| carrier | string | required |
| ship_to.name | string | required |
| ship_to.address | string | required |
| barcode_image | string | required |
| package_count | string | required |
| service_level | string | required |
| tracking_number | string | required |
| handling_instructions | string | required |
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.