label_options
Lists ship-from and ship-to parties by name for selection, returning IDs to use in label creation without needing to know party IDs.
Instructions
List the ship-from / ship-to / (importer, international only) parties the user can pick, BY NAME, from the same sources as the app form — so nobody needs to know IDs. Returns each option's id, display name, disambiguating context (country for contacts, city/state for stores), any contact flags, and sole when it's the only choice. Show the names to the user, then pass the chosen option's id to label_preflight / label_create. Call this before creating a label when you don't already have the party IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Target database environment (wired now: dev). Defaults to dev (safe). | dev |
| shipmentType | Yes | Which sources to list: contacts (international) or stores (domestic). |