Creates a shipping label through the specified courier service. The request is idempotent —
repeating a request with the same idempotencyKey returns the original result without
creating a duplicate label.
API access token obtained from the Flex Forward dashboard.
Unique key to ensure idempotent label creation. Duplicate requests with the same key return the original result.
"ord-20250301-abc123"
Courier service identifier.
"yunexpress"
Idempotent replay — the label was already created for this idempotencyKey.
Unique label identifier.
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
Label creation status — created or failed.
"created"
Courier service used.
"yunexpress"
Order number assigned by the courier, or null on failure.
"YT2503010001"
Tracking number assigned by the courier, or null if not yet available.
"YT2503010001CN"
Error details if the label creation failed, otherwise null.