Admin API / Types
SplitShipmentPayload
UnionThe result of splitShipment. Nothing changed unless the result is SplitShipmentSuccess. OrderNotFoundError: the caller cannot act on one or more of the orders; orderIds lists them. UnauthorizedError: the caller is below the SELLER role, and requiredRole is SELLER; or the caller reads an order whose seller is not the caller and not the owner of a store that the caller staffs, and requiredRole is null. ShipmentNotSplittableError: the orders break a rule. See reason. IdempotencyConflictError: the key was used before with other order IDs.
union SplitShipmentPayload = IdempotencyConflictError | OrderNotFoundError | ShipmentNotSplittableError | SplitShipmentSuccess | UnauthorizedErrorMembers
IdempotencyConflictErrorOrderNotFoundErrorShipmentNotSplittableErrorSplitShipmentSuccessUnauthorizedError