Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.
Idempotent replay. The idempotencyKey was already used with the same request body, so the stored result of the first attempt is returned and the courier is not contacted again. The body may have status "failed" if the first attempt was rejected by the courier — branch on the status field, not on the HTTP code. If the idempotencyKey was already used with a different request body, this returns 409 IDEMPOTENCY_CONFLICT instead.
Result of a label creation attempt. Returned on 201 (created), 502 (courier rejected) and 200 (idempotent replay of either).
Label creation outcome. created means the courier issued the label; failed means the courier rejected it and the attempt was stored. On an idempotent replay (HTTP 200) this field, not the HTTP status, tells you the outcome.
Customer order number for this label: the value supplied in order.customerOrderNumber, or a system-generated value when none was supplied. Unique per account.
Courier error details when status is failed; always null when status is created.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Flex Forward API","description":"Unified shipping label platform API — create labels, retrieve documents, and track shipments across multiple couriers.","colors":{"primary":"#0D6EFD","light":"#4D94FF","dark":"#0A58CA"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/returnhelper-9c26dd0a/favicon.svg","styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"ja","href":"ja/introduction"},{"language":"zh-Hant","href":"zh-Hant/introduction"},{"language":"zh-Hans","href":"zh-Hans/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"returnhelper-9c26dd0a","hasAudioNarration":false,"actualSubdomain":"returnhelper-9c26dd0a","customDomains":["openapidocs.flexforwardship.com"],"gitSource":{"type":"github","owner":"flex-forward","repo":"flex-forward-openapi-docs","deployBranch":"main","contentDirectory":"openapi-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adfaee34c626e3171be603f","collectionId":"1d21f481-0958-428f-b237-6eeccf221a83","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adfaee34c626e3171be603f"},"entitlements":{},"buildId":"6adfaee34c626e3171be603f","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"en","tag":"Documentation","count":13},{"language":"ja","tag":"ドキュメント","count":13},{"language":"zh-Hans","tag":"文档","count":13},{"language":"zh-Hant","tag":"文件","count":13},{"language":"en","tag":"API Reference","count":6},{"language":"ja","tag":"APIリファレンス","count":6},{"language":"zh-Hans","tag":"API 参考","count":6},{"language":"zh-Hant","tag":"API 參考","count":6},{"language":"en","tag":"Platform","count":4},{"language":"ja","tag":"プラットフォーム","count":4},{"language":"zh-Hans","tag":"平台","count":4},{"language":"zh-Hant","tag":"平台","count":4},{"language":"en","tag":"Getting Started","count":3},{"language":"en","tag":"Guides","count":3},{"language":"en","tag":"Use-Case Guides","count":3},{"language":"ja","tag":"はじめに","count":3},{"language":"ja","tag":"ガイド","count":3},{"language":"ja","tag":"ユースケースガイド","count":3},{"language":"zh-Hans","tag":"快速开始","count":3},{"language":"zh-Hans","tag":"指南","count":3},{"language":"zh-Hans","tag":"使用场景指南","count":3},{"language":"zh-Hant","tag":"快速開始","count":3},{"language":"zh-Hant","tag":"指南","count":3},{"language":"zh-Hant","tag":"使用場景指南","count":3},{"language":"en","tag":"Labels","count":2},{"language":"ja","tag":"ラベル","count":2},{"language":"zh-Hans","tag":"标签","count":2},{"language":"zh-Hant","tag":"標籤","count":2},{"language":"en","tag":"Couriers","count":1},{"language":"en","tag":"Orders","count":1},{"language":"en","tag":"Products","count":1},{"language":"ja","tag":"配送業者","count":1},{"language":"ja","tag":"注文","count":1},{"language":"ja","tag":"プロダクト","count":1},{"language":"zh-Hans","tag":"物流商","count":1},{"language":"zh-Hans","tag":"订单","count":1},{"language":"zh-Hans","tag":"产品","count":1},{"language":"zh-Hant","tag":"物流業者","count":1},{"language":"zh-Hant","tag":"訂單","count":1},{"language":"zh-Hant","tag":"產品","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"[data-component-part=localization-select-item] img[src*=\"/flags/\"],[data-component-part=localization-select-item]>div:first-child,[data-component-part=localization-select-trigger] img[src*=\"/flags/\"],[data-component-part=localization-select-trigger]>div:first-child{display:none!important}"}],"page":{"pagePath":"api-reference/labels/create-label","slug":"/api-reference/labels/create-label","pageMetadata":{"title":"Create a shipping label","description":"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.","deprecated":null,"version":null,"sidebarTitle":"Create label","openapi":"/flex-forward.yaml post /labels","href":"/api-reference/labels/create-label","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a shipping label","description":"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.","deprecated":null,"version":null,"sidebarTitle":"Create label","openapi":"/flex-forward.yaml post /labels","href":"/api-reference/labels/create-label","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createLabel","summary":"Create a shipping label","tags":["Labels"],"description":"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.","requestBody":"6202ff0d-0ff8-4e17-b11e-44838fda9e00","security":["cdd4dfe9-7ba6-42e7-b52b-3079b41616f8"],"x-mint":{"href":"/api-reference/labels/create-label"},"responses":{"200":"cfeb15cb-940d-4b77-a690-960ce79eb18e","201":"63486756-ba13-4b3b-a734-647e6dfc70a7","400":"8736486c-1f50-4165-8e05-5da2b6e13e2d","401":"561dce9a-a390-4358-ac15-c13dbd446c5c","403":"c1b74865-f27d-4a7f-8e32-324c8131970a","404":"030264af-9d86-42d2-aa82-50432948bcbf","409":"4fd8b362-2938-4e7c-8005-b4cdfa2051b4","429":"29fd2045-d77e-4041-bc05-b8fb921e35b8","500":"52154d44-1de2-439f-9b39-fa0083409808","502":"344907f3-c7b7-475d-a117-efa288ab28db"},"method":"post","type":"path","servers":["e632eedb-a8a7-4905-802e-a376f0c2baac","3f0fbe0e-5b24-4ebe-bd2f-d7e35499e2a9"],"path":"/labels","baseUrlOptions":["https://api.flexforwardship.com","https://sandbox.flexforwardship.com"],"title":"Create a shipping label","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Request payload for creating a shipping label.","type":"object","required":["idempotencyKey","courier","service","shipment"],"properties":{"idempotencyKey":{"minLength":1,"maxLength":100,"description":"Client-generated unique key to ensure idempotent label creation. Replaying a request with the same key returns the original result.","type":"string","example":"unique-key-per-request","isRequired":true,"uniqueKey":"idempotencyKey","typeLabel":"string"},"courier":{"minLength":1,"description":"Courier code to use. Call GET /couriers to list valid courier codes available to your account, then pass one of the returned code values.","type":"string","example":"yunexpress","isRequired":true,"uniqueKey":"courier","typeLabel":"string"},"service":{"additionalProperties":false,"description":"Courier service configuration.","type":"object","required":["productCode"],"properties":{"productCode":{"minLength":1,"description":"Flex Forward product code. Call GET /products to list the codes available for your courier.","type":"string","example":"HKMUZXR","isRequired":true,"uniqueKey":"service.productCode","typeLabel":"string"},"shipperAccountId":{"minLength":1,"description":"Shipping account identifier.","type":"string","example":"optional-shipper-account-id","uniqueKey":"service.shipperAccountId","typeLabel":"string"},"serviceCode":{"description":"Service level code.","type":"string","uniqueKey":"service.serviceCode","typeLabel":"string"}},"isRequired":true,"uniqueKey":"service","typeLabel":"object"},"shipment":{"additionalProperties":false,"description":"Shipment details including origin, destination, and parcels.","type":"object","required":["shipTo","parcels"],"properties":{"shipTo":{"additionalProperties":false,"description":"A shipment party with contact and address.","type":"object","required":["contact","address"],"properties":{"contact":{"additionalProperties":false,"description":"Contact information for a shipment party.","type":"object","required":["firstName"],"properties":{"firstName":{"minLength":1,"description":"First name.","type":"string","example":"John","isRequired":true,"uniqueKey":"shipment.shipTo.contact.firstName","typeLabel":"string"},"lastName":{"description":"Last name.","type":"string","example":"Doe","uniqueKey":"shipment.shipTo.contact.lastName","typeLabel":"string"},"company":{"description":"Company or organization name.","type":"string","uniqueKey":"shipment.shipTo.contact.company","typeLabel":"string"},"phone":{"description":"Phone number with country code.","type":"string","example":"+1-908-555-1234","uniqueKey":"shipment.shipTo.contact.phone","typeLabel":"string"},"email":{"format":"email","description":"Email address.","type":"string","example":"[email protected]","uniqueKey":"shipment.shipTo.contact.email","typeLabel":"string\u003cemail>"},"identification":{"additionalProperties":false,"description":"Government-issued identification.","type":"object","properties":{"type":{"description":"ID type (e.g. passport, national_id).","type":"string","example":"passport","uniqueKey":"shipment.shipTo.contact.identification.type","typeLabel":"string"},"number":{"description":"ID number.","type":"string","example":"AB1234567","uniqueKey":"shipment.shipTo.contact.identification.number","typeLabel":"string"}},"uniqueKey":"shipment.shipTo.contact.identification","typeLabel":"object"}},"isRequired":true,"uniqueKey":"shipment.shipTo.contact","typeLabel":"object"},"address":{"additionalProperties":false,"description":"Physical address for a shipment endpoint.","type":"object","required":["countryCode","city","postalCode","streetLines"],"properties":{"countryCode":{"minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code.","type":"string","example":"US","isRequired":true,"uniqueKey":"shipment.shipTo.address.countryCode","typeLabel":"string"},"city":{"minLength":1,"description":"City name.","type":"string","example":"EDISON","isRequired":true,"uniqueKey":"shipment.shipTo.address.city","typeLabel":"string"},"postalCode":{"minLength":1,"description":"Postal or ZIP code.","type":"string","example":"08817","isRequired":true,"uniqueKey":"shipment.shipTo.address.postalCode","typeLabel":"string"},"streetLines":{"minItems":1,"description":"Street address lines.","type":"array","items":{"minLength":1,"type":"string","uniqueKey":"shipment.shipTo.address.streetLines.items.[INDEX]","typeLabel":"string"},"example":["18 Distribution Blvd"],"isRequired":true,"uniqueKey":"shipment.shipTo.address.streetLines","typeLabel":"string[]"},"state":{"description":"State or province.","type":"string","example":"NJ","uniqueKey":"shipment.shipTo.address.state","typeLabel":"string"},"shortAddress":{"description":"Compact address for label printing.","type":"string","uniqueKey":"shipment.shipTo.address.shortAddress","typeLabel":"string"}},"isRequired":true,"uniqueKey":"shipment.shipTo.address","typeLabel":"object"}},"isRequired":true,"uniqueKey":"shipment.shipTo","typeLabel":"object"},"parcels":{"minItems":1,"description":"Parcels to ship.","type":"array","items":{"additionalProperties":false,"description":"A parcel containing one or more items.","type":"object","required":["weight","items"],"properties":{"weight":{"minimum":0,"description":"Parcel weight in the unit specified by units.weight (default kg).","type":"number","example":0.5,"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].weight","typeLabel":"number"},"items":{"minItems":1,"description":"Items in this parcel.","type":"array","items":{"additionalProperties":false,"description":"A single item within a parcel.","type":"object","required":["descriptionEn","quantity","unitPrice","unitWeight"],"properties":{"descriptionEn":{"minLength":1,"description":"Item description in English (required for customs).","type":"string","example":"Wireless earbuds","isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].descriptionEn","typeLabel":"string"},"quantity":{"minimum":1,"description":"Number of units.","type":"integer","example":1,"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].quantity","typeLabel":"integer"},"unitPrice":{"additionalProperties":false,"description":"Price per unit.","type":"object","required":["amount"],"properties":{"amount":{"minimum":0.01,"description":"Price amount. Must be at least 0.01 -- a free gift, sample, or promotional insert must be declared at a nominal 0.01 or above, never 0.","type":"number","example":29.99,"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].unitPrice.amount","typeLabel":"number"},"currency":{"type":"string","enum":["USD"],"description":"Currency of `amount`. Only `USD` is accepted. Optional; omitted means USD.","example":"USD","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].unitPrice.currency","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].unitPrice","typeLabel":"object"},"unitWeight":{"minimum":0,"description":"Weight per unit in the unit specified by units.weight (default kg).","type":"number","example":0.5,"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].unitWeight","typeLabel":"number"},"sku":{"maxLength":50,"description":"Stock-keeping unit identifier.","type":"string","example":"SKU-001","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].sku","typeLabel":"string"},"descriptionLocal":{"description":"Item description in the destination country language.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].descriptionLocal","typeLabel":"string"},"hsCode":{"maxLength":50,"description":"Harmonized System tariff code.","type":"string","example":"851830","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].hsCode","typeLabel":"string"},"salesUrl":{"format":"uri","description":"URL to the product listing.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].salesUrl","typeLabel":"string\u003curi>"},"attributes":{"additionalProperties":false,"description":"Extended item attributes for customs and logistics.","type":"object","properties":{"material":{"description":"Material composition.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.material","typeLabel":"string"},"purpose":{"description":"Intended use of the item.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.purpose","typeLabel":"string"},"brand":{"description":"Brand name.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.brand","typeLabel":"string"},"spec":{"description":"Product specification.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.spec","typeLabel":"string"},"model":{"description":"Model number or name.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.model","typeLabel":"string"},"remark":{"description":"Additional remarks.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.remark","typeLabel":"string"},"manufacturer":{"additionalProperties":false,"description":"Manufacturer details for customs declaration.","type":"object","properties":{"manufacturerId":{"description":"Manufacturer identifier.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer.manufacturerId","typeLabel":"string"},"manufacturerName":{"description":"Manufacturer name.","type":"string","example":"Acme Corp","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer.manufacturerName","typeLabel":"string"},"manufacturerAddress":{"description":"Street address.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer.manufacturerAddress","typeLabel":"string"},"manufacturerCity":{"description":"City.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer.manufacturerCity","typeLabel":"string"},"manufacturerProvince":{"description":"Province or state.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer.manufacturerProvince","typeLabel":"string"},"manufacturerCountry":{"description":"Country name or code.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer.manufacturerCountry","typeLabel":"string"},"manufacturerPostalcode":{"description":"Postal code.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer.manufacturerPostalcode","typeLabel":"string"}},"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.manufacturer","typeLabel":"object"},"productIdentifiers":{"additionalProperties":false,"description":"EU product identifiers (PID) for the customs declaration. Required for every item shipped to the EU, Monaco, the French overseas regions or Northern Ireland (postal code starting BT); optional elsewhere. Each field is a list of codes.","type":"object","properties":{"mpid":{"description":"M-PID (merchant product identifier): the SKU, ASIN or listing ID buyers see. Required for each item shipped to the EU. Up to 70 printable ASCII characters per code; no placeholders such as N/A, 0, 999999 or ***; no duplicates; Y081 is not allowed.","type":"array","items":{"type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.productIdentifiers.mpid.items.[INDEX]","typeLabel":"string"},"example":["SKU-12345"],"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.productIdentifiers.mpid","typeLabel":"string[]"},"nspid":{"description":"NS-PID (non-standardised manufacturer product identifier): the manufacturer's model or part number, or the product's S-PID barcode. Required for each item shipped to the EU. Same code rules as mpid.","type":"array","items":{"type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.productIdentifiers.nspid.items.[INDEX]","typeLabel":"string"},"example":["MX-200-BLK"],"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.productIdentifiers.nspid","typeLabel":"string[]"},"spid":{"description":"S-PID (standardised manufacturer product identifier): the product barcode (GTIN, EAN, UPC, ISBN or another international barcode), or [\"Y081\"] when the product has none. Required for each item shipped to the EU and never blank. Y081 must be the only value. Same code rules as mpid.","type":"array","items":{"type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.productIdentifiers.spid.items.[INDEX]","typeLabel":"string"},"example":["4006381333931"],"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.productIdentifiers.spid","typeLabel":"string[]"}},"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.productIdentifiers","typeLabel":"object"},"fabricCreationMethod":{"description":"Fabric creation method (e.g. woven, knitted).","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.fabricCreationMethod","typeLabel":"string"},"sellingPrice":{"minimum":0,"description":"Retail selling price.","type":"number","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.sellingPrice","typeLabel":"number"},"originCountry":{"minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code of the item origin.","type":"string","example":"CN","uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes.originCountry","typeLabel":"string"}},"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX].attributes","typeLabel":"object"}},"uniqueKey":"shipment.parcels.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].\\items","typeLabel":"object[]"},"parcelId":{"description":"Optional client-assigned parcel identifier.","type":"string","uniqueKey":"shipment.parcels.items.[INDEX].parcelId","typeLabel":"string"},"dimension":{"additionalProperties":false,"description":"Parcel dimensions.","type":"object","required":["length","width","height"],"properties":{"length":{"minimum":0,"description":"Length.","type":"number","example":30,"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].dimension.length","typeLabel":"number"},"width":{"minimum":0,"description":"Width.","type":"number","example":20,"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].dimension.width","typeLabel":"number"},"height":{"minimum":0,"description":"Height.","type":"number","example":10,"isRequired":true,"uniqueKey":"shipment.parcels.items.[INDEX].dimension.height","typeLabel":"number"}},"uniqueKey":"shipment.parcels.items.[INDEX].dimension","typeLabel":"object"}},"uniqueKey":"shipment.parcels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"shipment.parcels","typeLabel":"object[]"},"shipFrom":{"additionalProperties":false,"description":"A shipment party with contact and address.","type":"object","required":["contact","address"],"properties":{"contact":{"additionalProperties":false,"description":"Contact information for a shipment party.","type":"object","required":["firstName"],"properties":{"firstName":{"minLength":1,"description":"First name.","type":"string","example":"John","isRequired":true,"uniqueKey":"shipment.shipFrom.contact.firstName","typeLabel":"string"},"lastName":{"description":"Last name.","type":"string","example":"Doe","uniqueKey":"shipment.shipFrom.contact.lastName","typeLabel":"string"},"company":{"description":"Company or organization name.","type":"string","uniqueKey":"shipment.shipFrom.contact.company","typeLabel":"string"},"phone":{"description":"Phone number with country code.","type":"string","example":"+1-908-555-1234","uniqueKey":"shipment.shipFrom.contact.phone","typeLabel":"string"},"email":{"format":"email","description":"Email address.","type":"string","example":"[email protected]","uniqueKey":"shipment.shipFrom.contact.email","typeLabel":"string\u003cemail>"},"identification":{"additionalProperties":false,"description":"Government-issued identification.","type":"object","properties":{"type":{"description":"ID type (e.g. passport, national_id).","type":"string","example":"passport","uniqueKey":"shipment.shipFrom.contact.identification.type","typeLabel":"string"},"number":{"description":"ID number.","type":"string","example":"AB1234567","uniqueKey":"shipment.shipFrom.contact.identification.number","typeLabel":"string"}},"uniqueKey":"shipment.shipFrom.contact.identification","typeLabel":"object"}},"isRequired":true,"uniqueKey":"shipment.shipFrom.contact","typeLabel":"object"},"address":{"additionalProperties":false,"description":"Physical address for a shipment endpoint.","type":"object","required":["countryCode","city","postalCode","streetLines"],"properties":{"countryCode":{"minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code.","type":"string","example":"US","isRequired":true,"uniqueKey":"shipment.shipFrom.address.countryCode","typeLabel":"string"},"city":{"minLength":1,"description":"City name.","type":"string","example":"EDISON","isRequired":true,"uniqueKey":"shipment.shipFrom.address.city","typeLabel":"string"},"postalCode":{"minLength":1,"description":"Postal or ZIP code.","type":"string","example":"08817","isRequired":true,"uniqueKey":"shipment.shipFrom.address.postalCode","typeLabel":"string"},"streetLines":{"minItems":1,"description":"Street address lines.","type":"array","items":{"minLength":1,"type":"string","uniqueKey":"shipment.shipFrom.address.streetLines.items.[INDEX]","typeLabel":"string"},"example":["18 Distribution Blvd"],"isRequired":true,"uniqueKey":"shipment.shipFrom.address.streetLines","typeLabel":"string[]"},"state":{"description":"State or province.","type":"string","example":"NJ","uniqueKey":"shipment.shipFrom.address.state","typeLabel":"string"},"shortAddress":{"description":"Compact address for label printing.","type":"string","uniqueKey":"shipment.shipFrom.address.shortAddress","typeLabel":"string"}},"isRequired":true,"uniqueKey":"shipment.shipFrom.address","typeLabel":"object"}},"uniqueKey":"shipment.shipFrom","typeLabel":"object"}},"isRequired":true,"uniqueKey":"shipment","typeLabel":"object"},"label":{"additionalProperties":false,"description":"Label output preferences.","type":"object","properties":{"format":{"type":"string","enum":["PDF","PNG"],"description":"Label document format, uppercase: PDF or PNG. Defaults to PDF when omitted. The response labelFormat reports the same value in lowercase.","example":"PDF","uniqueKey":"label.format","typeLabel":"enum\u003cstring>"}},"uniqueKey":"label","typeLabel":"object"},"units":{"additionalProperties":false,"description":"Measurement units for weight and dimensions.","type":"object","properties":{"weight":{"description":"Weight unit (default KG).","type":"string","example":"KG","uniqueKey":"units.weight","typeLabel":"string"},"dimension":{"description":"Dimension unit (default CM).","type":"string","example":"CM","uniqueKey":"units.dimension","typeLabel":"string"}},"uniqueKey":"units","typeLabel":"object"},"order":{"additionalProperties":false,"description":"Order reference information.","type":"object","properties":{"customerOrderNumber":{"minLength":1,"maxLength":40,"pattern":"^[A-Za-z0-9_-]+$","description":"Optional. Your order reference. FlexForward passes `{clientCode}-{customerOrderNumber}` to the carrier as the customer reference, which carriers print on the label where supported. Max 40 characters: letters, digits, `-`, `_`. Case-sensitive. Defaults to a system-generated value when omitted. Must be unique per account (409 on reuse).","type":"string","example":"N-2026-05-27-TEST-03","uniqueKey":"order.customerOrderNumber","typeLabel":"string"},"orderNumbers":{"additionalProperties":false,"description":"Additional order identifiers.","type":"object","properties":{"platformOrderNumber":{"description":"Marketplace platform order number.","type":"string","uniqueKey":"order.orderNumbers.platformOrderNumber","typeLabel":"string"},"trackingNumber":{"description":"Pre-assigned tracking number.","type":"string","uniqueKey":"order.orderNumbers.trackingNumber","typeLabel":"string"},"referenceNumbers":{"description":"Additional reference numbers.","type":"array","items":{"type":"string","uniqueKey":"order.orderNumbers.referenceNumbers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"order.orderNumbers.referenceNumbers","typeLabel":"string[]"}},"uniqueKey":"order.orderNumbers","typeLabel":"object"}},"uniqueKey":"order","typeLabel":"object"},"customs":{"additionalProperties":false,"description":"Customs declaration information for cross-border shipments.","type":"object","properties":{"taxIds":{"additionalProperties":false,"description":"Tax identifiers for customs clearance.","type":"object","properties":{"taxNumber":{"description":"Tax identification number.","type":"string","uniqueKey":"customs.taxIds.taxNumber","typeLabel":"string"},"ioss":{"description":"IOSS code to send to the carrier. A supplied non-blank value is trimmed and used. If omitted or blank and the destination is an EU tax country, FlexForward's default IOSS code is applied; a code you registered under *IOSS registrations* is **not** applied automatically -- send it here. Applying FlexForward's default code is chargeable: a VAT pre-payment is posted alongside the shipping charge to recover the destination VAT and a service charge. Supplying your own code here is not charged.","type":"string","uniqueKey":"customs.taxIds.ioss","typeLabel":"string"},"vat":{"description":"VAT registration number.","type":"string","uniqueKey":"customs.taxIds.vat","typeLabel":"string"},"eori":{"description":"Economic Operators Registration and Identification (EORI) number.","type":"string","uniqueKey":"customs.taxIds.eori","typeLabel":"string"}},"uniqueKey":"customs.taxIds","typeLabel":"object"}},"uniqueKey":"customs","typeLabel":"object"},"serviceOptions":{"description":"Additional service options as code-value pairs.","type":"array","items":{"additionalProperties":false,"type":"object","required":["code"],"properties":{"code":{"minLength":1,"description":"Option code.","type":"string","example":"V1","isRequired":true,"uniqueKey":"serviceOptions.items.[INDEX].code","typeLabel":"string"},"value":{"description":"Option value. For YunExpress insurance (VAS_IP), one of the insurance method codes (e.g. BJFA, BJDR, EWFZ100001).","type":"string","uniqueKey":"serviceOptions.items.[INDEX].value","typeLabel":"string"},"cost":{"minimum":0,"description":"Option amount, forwarded as the courier add-on cost (YunExpress extra_cost).","type":"number","uniqueKey":"serviceOptions.items.[INDEX].cost","typeLabel":"number"}},"uniqueKey":"serviceOptions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"serviceOptions","typeLabel":"object[]"},"dangerousGoods":{"additionalProperties":false,"description":"Dangerous goods declaration.","type":"object","properties":{"code":{"description":"Dangerous goods classification code.","type":"string","uniqueKey":"dangerousGoods.code","typeLabel":"string"}},"uniqueKey":"dangerousGoods","typeLabel":"object"},"pickup":{"additionalProperties":false,"description":"Pickup point configuration.","type":"object","properties":{"pickupPointCode":{"description":"Pickup point identifier.","type":"string","uniqueKey":"pickup.pickupPointCode","typeLabel":"string"}},"uniqueKey":"pickup","typeLabel":"object"},"courierOptions":{"additionalProperties":false,"description":"Courier-specific options.","type":"object","properties":{"yunexpress":{"additionalProperties":false,"description":"YunExpress-specific options.","type":"object","properties":{"sourceCode":{"description":"Source code for YunExpress.","type":"string","uniqueKey":"courierOptions.yunexpress.sourceCode","typeLabel":"string"},"platformAccountCode":{"description":"Platform account code.","type":"string","uniqueKey":"courierOptions.yunexpress.platformAccountCode","typeLabel":"string"},"sensitiveType":{"description":"Sensitive goods type classification.","type":"string","uniqueKey":"courierOptions.yunexpress.sensitiveType","typeLabel":"string"},"signatureService":{"description":"Signature service flag (Y/N). Mapped to YunExpress add-on Ls0091 when Y.","type":"string","uniqueKey":"courierOptions.yunexpress.signatureService","typeLabel":"string"},"houseNumber":{"description":"Recipient house number.","type":"string","uniqueKey":"courierOptions.yunexpress.houseNumber","typeLabel":"string"},"packageCount":{"minimum":1,"description":"Number of packages in the order.","type":"integer","uniqueKey":"courierOptions.yunexpress.packageCount","typeLabel":"integer"},"senderUsci":{"description":"Sender Unified Social Credit Identifier.","type":"string","uniqueKey":"courierOptions.yunexpress.senderUsci","typeLabel":"string"},"platformName":{"description":"Sales platform name.","type":"string","uniqueKey":"courierOptions.yunexpress.platformName","typeLabel":"string"},"platformState":{"description":"Sales platform state or province.","type":"string","uniqueKey":"courierOptions.yunexpress.platformState","typeLabel":"string"},"platformAddress":{"description":"Sales platform address.","type":"string","uniqueKey":"courierOptions.yunexpress.platformAddress","typeLabel":"string"},"platformPostalCode":{"description":"Sales platform postal code.","type":"string","uniqueKey":"courierOptions.yunexpress.platformPostalCode","typeLabel":"string"},"platformPhone":{"description":"Sales platform phone.","type":"string","uniqueKey":"courierOptions.yunexpress.platformPhone","typeLabel":"string"},"platformEmail":{"description":"Sales platform email.","type":"string","uniqueKey":"courierOptions.yunexpress.platformEmail","typeLabel":"string"},"platformSalesUrl":{"description":"Sales platform listing URL.","type":"string","uniqueKey":"courierOptions.yunexpress.platformSalesUrl","typeLabel":"string"},"cargoType":{"description":"Cargo type code (W/F/O, required for Japan).","type":"string","uniqueKey":"courierOptions.yunexpress.cargoType","typeLabel":"string"},"paymentPlatform":{"description":"Payment platform.","type":"string","uniqueKey":"courierOptions.yunexpress.paymentPlatform","typeLabel":"string"},"paymentPlatformAccount":{"description":"Payment platform account.","type":"string","uniqueKey":"courierOptions.yunexpress.paymentPlatformAccount","typeLabel":"string"},"paymentTransactionNumber":{"description":"Payment transaction number.","type":"string","uniqueKey":"courierOptions.yunexpress.paymentTransactionNumber","typeLabel":"string"},"labelUrl":{"description":"Pre-generated label URL.","type":"string","uniqueKey":"courierOptions.yunexpress.labelUrl","typeLabel":"string"}},"uniqueKey":"courierOptions.yunexpress","typeLabel":"object"}},"uniqueKey":"courierOptions","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"createLabel":{"title":"createLabel","value":{"idempotencyKey":"unique-key-per-request","courier":"yunexpress","service":{"productCode":"HKMUZXR"},"label":{"format":"PDF"},"units":{"weight":"KG","dimension":"CM"},"order":{"customerOrderNumber":"N-2026-05-27-TEST-03","orderNumbers":{"platformOrderNumber":"platform-order-number","referenceNumbers":["ref-number-1","ref-number-2"]}},"shipment":{"shipTo":{"contact":{"firstName":"Alex","lastName":"Smith","phone":"8554377467","email":"[email protected]"},"address":{"streetLines":["18 Distribution Blvd"],"city":"Edison","state":"NJ","postalCode":"08817","countryCode":"US"}},"shipFrom":{"contact":{"firstName":"John","lastName":"Doe","phone":"886900676877","email":"[email protected]"},"address":{"streetLines":["Habucho"],"city":"Kishiwada-Shi","state":"Osaka","postalCode":"596-0825","countryCode":"JP"}},"parcels":[{"weight":0.5,"dimension":{"length":30,"width":20,"height":10},"items":[{"descriptionEn":"Muji Ink pen","descriptionLocal":"文具","quantity":1,"unitPrice":{"amount":29.99,"currency":"USD"},"unitWeight":0.5}]}]},"serviceOptions":[{"code":"V1","value":"云途预缴"}],"courierOptions":{"yunexpress":{"sourceCode":"YT","sensitiveType":"D"}}}}},"exampleType":"examples"}},"description":"Request payload for creating a shipping label.","exampleType":"examples"},"responses":{"cfeb15cb-940d-4b77-a690-960ce79eb18e":{"description":"Idempotent replay. The idempotencyKey was already used with the same request body, so the stored result of the first attempt is returned and the courier is not contacted again. The body may have status \"failed\" if the first attempt was rejected by the courier — branch on the status field, not on the HTTP code. If the idempotencyKey was already used with a different request body, this returns 409 IDEMPOTENCY_CONFLICT instead.","content":{"application/json":{"schema":{"description":"Result of a label creation attempt. Returned on 201 (created), 502 (courier rejected) and 200 (idempotent replay of either).","type":"object","required":["id","status","courier","customerOrderNumber","courierOrderNumber","courierTrackingNumber","error"],"properties":{"id":{"format":"uuid","description":"Unique label identifier.","type":"string","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["created","failed"],"description":"Label creation outcome. `created` means the courier issued the label; `failed` means the courier rejected it and the attempt was stored. On an idempotent replay (HTTP 200) this field, not the HTTP status, tells you the outcome.","example":"created","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"courier":{"description":"Courier service used.","type":"string","example":"yunexpress","isRequired":true,"uniqueKey":"courier","typeLabel":"string"},"customerOrderNumber":{"description":"Customer order number for this label: the value supplied in order.customerOrderNumber, or a system-generated value when none was supplied. Unique per account.","type":"string","example":"N-2026-05-27-TEST-03","isRequired":true,"uniqueKey":"customerOrderNumber","typeLabel":"string"},"courierOrderNumber":{"oneOf":[{"type":"string","description":"Order number assigned by the courier, or null on failure.","example":"YT2503010001","isRequired":true,"uniqueKey":"courierOrderNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Order number assigned by the courier, or null on failure.","example":"YT2503010001","isRequired":true,"uniqueKey":"courierOrderNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierOrderNumber","typeLabel":"string | null"},"courierTrackingNumber":{"oneOf":[{"type":"string","description":"Tracking number assigned by the courier, or null if not yet available.","example":"LMTN2503010001XY","isRequired":true,"uniqueKey":"courierTrackingNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tracking number assigned by the courier, or null if not yet available.","example":"LMTN2503010001XY","isRequired":true,"uniqueKey":"courierTrackingNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierTrackingNumber","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","description":"Courier error details when status is `failed`; always `null` when status is `created`.","required":["code","message"],"properties":{"code":{"description":"Machine-readable error code.","examples":["COURIER_ERROR"],"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"message":{"description":"Human-readable error description.","examples":["YunExpress API returned HTTP 400: Bad request"],"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Courier error details when status is `failed`; always `null` when status is `created`.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"replayedCreated":{"title":"replayedCreated","value":{"id":"f47ac10b-58cc-4372-a567-0e02b2c3d479","status":"created","courier":"yunexpress","customerOrderNumber":"N-2026-05-27-TEST-03","courierOrderNumber":"YT2503010001","courierTrackingNumber":null,"error":null}},"replayedFailed":{"title":"replayedFailed","value":{"id":"f47ac10b-58cc-4372-a567-0e02b2c3d479","status":"failed","courier":"yunexpress","customerOrderNumber":"N-2026-05-27-TEST-03","courierOrderNumber":null,"courierTrackingNumber":null,"error":{"code":"COURIER_ERROR","message":"YunExpress API returned HTTP 400: Bad request"}}}},"exampleType":"examples"}},"exampleType":"examples"},"63486756-ba13-4b3b-a734-647e6dfc70a7":{"description":"Label created at the courier. status is \"created\" and error is null.","content":{"application/json":{"schema":{"description":"Result of a label creation attempt. Returned on 201 (created), 502 (courier rejected) and 200 (idempotent replay of either).","type":"object","required":["id","status","courier","customerOrderNumber","courierOrderNumber","courierTrackingNumber","error"],"properties":{"id":{"format":"uuid","description":"Unique label identifier.","type":"string","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["created","failed"],"description":"Label creation outcome. `created` means the courier issued the label; `failed` means the courier rejected it and the attempt was stored. On an idempotent replay (HTTP 200) this field, not the HTTP status, tells you the outcome.","example":"created","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"courier":{"description":"Courier service used.","type":"string","example":"yunexpress","isRequired":true,"uniqueKey":"courier","typeLabel":"string"},"customerOrderNumber":{"description":"Customer order number for this label: the value supplied in order.customerOrderNumber, or a system-generated value when none was supplied. Unique per account.","type":"string","example":"N-2026-05-27-TEST-03","isRequired":true,"uniqueKey":"customerOrderNumber","typeLabel":"string"},"courierOrderNumber":{"oneOf":[{"type":"string","description":"Order number assigned by the courier, or null on failure.","example":"YT2503010001","isRequired":true,"uniqueKey":"courierOrderNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Order number assigned by the courier, or null on failure.","example":"YT2503010001","isRequired":true,"uniqueKey":"courierOrderNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierOrderNumber","typeLabel":"string | null"},"courierTrackingNumber":{"oneOf":[{"type":"string","description":"Tracking number assigned by the courier, or null if not yet available.","example":"LMTN2503010001XY","isRequired":true,"uniqueKey":"courierTrackingNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tracking number assigned by the courier, or null if not yet available.","example":"LMTN2503010001XY","isRequired":true,"uniqueKey":"courierTrackingNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierTrackingNumber","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","description":"Courier error details when status is `failed`; always `null` when status is `created`.","required":["code","message"],"properties":{"code":{"description":"Machine-readable error code.","examples":["COURIER_ERROR"],"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"message":{"description":"Human-readable error description.","examples":["YunExpress API returned HTTP 400: Bad request"],"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Courier error details when status is `failed`; always `null` when status is `created`.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"created":{"title":"created","value":{"id":"f47ac10b-58cc-4372-a567-0e02b2c3d479","status":"created","courier":"yunexpress","customerOrderNumber":"N-2026-05-27-TEST-03","courierOrderNumber":"YT2503010001","courierTrackingNumber":null,"error":null}}},"exampleType":"examples"}},"exampleType":"examples"},"8736486c-1f50-4165-8e05-5da2b6e13e2d":{"description":"Request body failed validation, or the courier/product is not supported.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Request body failed validation, or the courier/product is not supported.","required":["error","details"],"properties":{"error":{"description":"Summary error message.","type":"string","enum":["Validation failed"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"enum\u003cstring>"},"details":{"description":"List of field-level validation errors.","type":"array","items":{"type":"object","required":["field","message"],"properties":{"field":{"description":"Dot-delimited path to the invalid field.","type":"string","example":"service.productCode","isRequired":true,"uniqueKey":"oneOf.0.details.items.[INDEX].field","typeLabel":"string"},"message":{"description":"Human-readable validation message.","type":"string","example":"service.productCode is required","isRequired":true,"uniqueKey":"oneOf.0.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"oneOf.0.details.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.details","typeLabel":"object[]"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Request body failed validation, or the courier/product is not supported.","required":["error"],"properties":{"error":{"description":"Human-readable error message.","type":"string","example":"Shipping account not found","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"string"},"code":{"description":"Machine-readable error code.","type":"string","example":"COURIER_ERROR","uniqueKey":"oneOf.1.code","typeLabel":"string"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Validation failed","details":[{"field":"service.productCode","message":"service.productCode is required"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"561dce9a-a390-4358-ac15-c13dbd446c5c":{"description":"Missing or invalid x-rr-apikey / x-rr-apitoken.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"description":"Human-readable error message.","type":"string","example":"Shipping account not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"Machine-readable error code.","type":"string","example":"COURIER_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Shipping account not found","code":"COURIER_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"c1b74865-f27d-4a7f-8e32-324c8131970a":{"description":"Credentials are valid but do not grant access to this resource.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"description":"Human-readable error message.","type":"string","example":"Shipping account not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"Machine-readable error code.","type":"string","example":"COURIER_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Shipping account not found","code":"COURIER_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"030264af-9d86-42d2-aa82-50432948bcbf":{"description":"No shipping account is configured for the requested courier.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"description":"Human-readable error message.","type":"string","example":"Shipping account not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"Machine-readable error code.","type":"string","example":"COURIER_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Shipping account not found","code":"COURIER_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"4fd8b362-2938-4e7c-8005-b4cdfa2051b4":{"description":"Returned when order.customerOrderNumber already exists for this account (code DUPLICATE_CUSTOMER_ORDER_NUMBER), or when idempotencyKey was already used for a different request body (code IDEMPOTENCY_CONFLICT) — send the corrected request with a new key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"description":"Human-readable error message.","type":"string","example":"Shipping account not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"Machine-readable error code.","type":"string","example":"COURIER_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Shipping account not found","code":"COURIER_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"29fd2045-d77e-4041-bc05-b8fb921e35b8":{"description":"Request rate for this account was exceeded. Wait for the number of seconds given in the Retry-After header, then retry. Rate limits are declared here so clients implement handling ahead of enforcement.","headers":{"Retry-After":{"schema":{"type":"integer","minimum":1},"description":"Seconds to wait before retrying."}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"description":"Human-readable error message.","type":"string","example":"Shipping account not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"Machine-readable error code.","type":"string","example":"COURIER_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Shipping account not found","code":"COURIER_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"52154d44-1de2-439f-9b39-fa0083409808":{"description":"Unexpected server error. Safe to retry with the same idempotencyKey and exponential backoff; the replay rules apply.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"description":"Human-readable error message.","type":"string","example":"Shipping account not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"Machine-readable error code.","type":"string","example":"COURIER_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Shipping account not found","code":"COURIER_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"344907f3-c7b7-475d-a117-efa288ab28db":{"description":"The courier rejected the request. The attempt is stored with status \"failed\" and bound to the idempotencyKey; the error object carries the courier reason. This is not transient — do not retry with the same idempotencyKey. Fix the request and send it with a new key.","content":{"application/json":{"schema":{"description":"Result of a label creation attempt. Returned on 201 (created), 502 (courier rejected) and 200 (idempotent replay of either).","type":"object","required":["id","status","courier","customerOrderNumber","courierOrderNumber","courierTrackingNumber","error"],"properties":{"id":{"format":"uuid","description":"Unique label identifier.","type":"string","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["created","failed"],"description":"Label creation outcome. `created` means the courier issued the label; `failed` means the courier rejected it and the attempt was stored. On an idempotent replay (HTTP 200) this field, not the HTTP status, tells you the outcome.","example":"created","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"courier":{"description":"Courier service used.","type":"string","example":"yunexpress","isRequired":true,"uniqueKey":"courier","typeLabel":"string"},"customerOrderNumber":{"description":"Customer order number for this label: the value supplied in order.customerOrderNumber, or a system-generated value when none was supplied. Unique per account.","type":"string","example":"N-2026-05-27-TEST-03","isRequired":true,"uniqueKey":"customerOrderNumber","typeLabel":"string"},"courierOrderNumber":{"oneOf":[{"type":"string","description":"Order number assigned by the courier, or null on failure.","example":"YT2503010001","isRequired":true,"uniqueKey":"courierOrderNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Order number assigned by the courier, or null on failure.","example":"YT2503010001","isRequired":true,"uniqueKey":"courierOrderNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierOrderNumber","typeLabel":"string | null"},"courierTrackingNumber":{"oneOf":[{"type":"string","description":"Tracking number assigned by the courier, or null if not yet available.","example":"LMTN2503010001XY","isRequired":true,"uniqueKey":"courierTrackingNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tracking number assigned by the courier, or null if not yet available.","example":"LMTN2503010001XY","isRequired":true,"uniqueKey":"courierTrackingNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierTrackingNumber","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","description":"Courier error details when status is `failed`; always `null` when status is `created`.","required":["code","message"],"properties":{"code":{"description":"Machine-readable error code.","examples":["COURIER_ERROR"],"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"message":{"description":"Human-readable error description.","examples":["YunExpress API returned HTTP 400: Bad request"],"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Courier error details when status is `failed`; always `null` when status is `created`.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"failed":{"title":"failed","value":{"id":"f47ac10b-58cc-4372-a567-0e02b2c3d479","status":"failed","courier":"yunexpress","customerOrderNumber":"N-2026-05-27-TEST-03","courierOrderNumber":null,"courierTrackingNumber":null,"error":{"code":"COURIER_ERROR","message":"YunExpress API returned HTTP 400: Bad request"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"cdd4dfe9-7ba6-42e7-b52b-3079b41616f8":{"apiKey":{"type":"apiKey","in":"header","name":"x-rr-apikey","scopes":[],"schemeName":"apiKey"},"apiToken":{"type":"apiKey","in":"header","name":"x-rr-apitoken","scopes":[],"schemeName":"apiToken"}}},"servers":{"e632eedb-a8a7-4905-802e-a376f0c2baac":{"url":"https://api.flexforwardship.com","description":"Production"},"3f0fbe0e-5b24-4ebe-bd2f-d7e35499e2a9":{"url":"https://sandbox.flexforwardship.com","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-rr-apikey","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-rr-apikey","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-rr-apikey"},{"scheme":{"type":"apiKey","in":"header","name":"x-rr-apitoken","scopes":[],"schemeName":"apiToken"},"schema":{"title":"x-rr-apitoken","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiToken","name":"x-rr-apitoken"}],"title":"apiKey \u0026 apiToken"}]},"originalFileLocation":"flex-forward.yaml"},"subdomain":"returnhelper-9c26dd0a","siteName":"Flex Forward API","title":"Create a shipping label - Flex Forward API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/labels/create-label","matchLevel":0},"ja":{"href":"/ja/api-reference/labels/create-label","matchLevel":1},"zh-Hant":{"href":"/zh-hant/api-reference/labels/create-label","matchLevel":1},"zh-Hans":{"href":"/zh-hans/api-reference/labels/create-label","matchLevel":1}}},"lastModified":"2026-10-20T19:48:34.716Z","originalFileLocation":"api-reference/labels/create-label.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flex Forward API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a shipping label - Flex Forward API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flex Forward API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://returnhelper-9c26dd0a.mintlify.app/_mintlify/api/og/v2?division=Labels\u0026amp;title=Create+a+shipping+label\u0026amp;description=Creates+a+shipping+label+for+the+specified+courier+and+shipment+details.+Supports+idempotent+creation+%E2%80%94+replaying+a+request+with+the+same+idempotencyKey+returns\u0026amp;theme=85b07989d4dd13b3aa9c7cc0\u0026amp;signature=4024b9cbd18c917bdc05209437a094813b3f0fa18b1e5f037b4460d060558e99\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a shipping label - Flex Forward API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://returnhelper-9c26dd0a.mintlify.app/_mintlify/api/og/v2?division=Labels\u0026amp;title=Create+a+shipping+label\u0026amp;description=Creates+a+shipping+label+for+the+specified+courier+and+shipment+details.+Supports+idempotent+creation+%E2%80%94+replaying+a+request+with+the+same+idempotencyKey+returns\u0026amp;theme=85b07989d4dd13b3aa9c7cc0\u0026amp;signature=4024b9cbd18c917bdc05209437a094813b3f0fa18b1e5f037b4460d060558e99\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/returnhelper-9c26dd0a/wdKewILkjtjuVmQW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flex Forward API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D6EFD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/labels/create-label.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://openapidocs.flexforwardship.com/ja/api-reference/labels/create-label\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://openapidocs.flexforwardship.com/zh-hant/api-reference/labels/create-label\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://openapidocs.flexforwardship.com/zh-hans/api-reference/labels/create-label\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://openapidocs.flexforwardship.com/#organization\",\"name\":\"Flex Forward API\",\"url\":\"https://openapidocs.flexforwardship.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://openapidocs.flexforwardship.com#website\",\"name\":\"Flex Forward API\",\"url\":\"https://openapidocs.flexforwardship.com\",\"publisher\":{\"@id\":\"https://openapidocs.flexforwardship.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label#webpage\",\"url\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label\",\"name\":\"Create a shipping label\",\"description\":\"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.\",\"dateModified\":\"2026-10-20T19:48:34.716Z\",\"isPartOf\":{\"@id\":\"https://openapidocs.flexforwardship.com#website\"},\"breadcrumb\":{\"@id\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Flex Forward API\",\"item\":\"https://openapidocs.flexforwardship.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a shipping label\",\"item\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label#apireference\",\"headline\":\"Create a shipping label\",\"name\":\"Create a shipping label\",\"description\":\"Creates a shipping label for the specified courier and shipment details. Supports idempotent creation — replaying a request with the same idempotencyKey returns the original result with HTTP 200 instead of creating a duplicate. Reusing an idempotencyKey with a different request body returns 409 IDEMPOTENCY_CONFLICT instead of replaying the first result.\",\"url\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label\",\"mainEntityOfPage\":{\"@id\":\"https://openapidocs.flexforwardship.com/api-reference/labels/create-label#webpage\"},\"dateModified\":\"2026-10-20T19:48:34.716Z\",\"publisher\":{\"@id\":\"https://openapidocs.flexforwardship.com/#organization\"},\"isPartOf\":{\"@id\":\"https://openapidocs.flexforwardship.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flex Forward API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Flex Forward API","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Labels","pages":[{"title":"Create a shipping label","deprecated":null,"version":null,"sidebarTitle":"Create label","openapi":"/flex-forward.yaml post /labels","href":"/api-reference/labels/create-label"},{"title":"Fetch the courier-hosted label URL by label id or customer order number","description":"Retrieves label document URLs for previously created labels. Accepts a label UUID, customerOrderNumber, or comma-separated identifiers as the path parameter. Batch requests omit missing or failed labels.","deprecated":null,"version":null,"sidebarTitle":"Get label","openapi":"/flex-forward.yaml get /labels/{id}","href":"/api-reference/labels/get-label"}]},{"group":"Orders","pages":[{"title":"Get an order and the carrier details it was created with","deprecated":null,"version":null,"sidebarTitle":"Get order","openapi":"/flex-forward.yaml get /orders/{orderId}","href":"/api-reference/orders/get-order"}]},{"group":"Tracking","pages":[{"title":"Get tracking events for a label","deprecated":null,"version":null,"sidebarTitle":"Get tracking","openapi":"/flex-forward.yaml get /tracking/{id}","href":"/api-reference/tracking/get-tracking"}]},{"group":"Products","pages":[{"title":"List shipping products for a courier","deprecated":null,"version":null,"sidebarTitle":"List products","openapi":"/flex-forward.yaml get /products","href":"/api-reference/products/list-products"}]},{"group":"Couriers","pages":[{"title":"List available couriers","deprecated":null,"version":null,"sidebarTitle":"List couriers","openapi":"/flex-forward.yaml get /couriers","href":"/api-reference/couriers/list-couriers"}]}]}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/labels/create-label"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-hant/api-reference/labels/create-label"}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-hans/api-reference/labels/create-label"}]}]},"title":"Create a shipping label - Flex Forward API","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}