Skip to content

katana_public_api_client.api.manufacturing_order.unlink_manufacturing_order

Unlink a manufacturing order from sales order row

Unlinks the manufacturing order from a particular sales order row.

Parameters:

  • body (UnlinkManufacturingOrderRequest) –

    Request to unlink a manufacturing order from its associated sales order row, removing the direct connection while preserving both orders. Example: {'sales_order_row_id': 2501}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/manufacturing_order/unlink_manufacturing_order.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    body: UnlinkManufacturingOrderRequest,
) -> Any | ErrorResponse | None:
    """Unlink a manufacturing order from sales order row

     Unlinks the manufacturing order from a particular sales order row.

    Args:
        body (UnlinkManufacturingOrderRequest): Request to unlink a manufacturing order from its
            associated sales order row, removing the direct connection while preserving both orders.
            Example: {'sales_order_row_id': 2501}.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[Any, ErrorResponse]
    """

    return (
        await asyncio_detailed(
            client=client,
            body=body,
        )
    ).parsed

Unlink a manufacturing order from sales order row

Unlinks the manufacturing order from a particular sales order row.

Parameters:

  • body (UnlinkManufacturingOrderRequest) –

    Request to unlink a manufacturing order from its associated sales order row, removing the direct connection while preserving both orders. Example: {'sales_order_row_id': 2501}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/manufacturing_order/unlink_manufacturing_order.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    body: UnlinkManufacturingOrderRequest,
) -> Response[Any | ErrorResponse]:
    """Unlink a manufacturing order from sales order row

     Unlinks the manufacturing order from a particular sales order row.

    Args:
        body (UnlinkManufacturingOrderRequest): Request to unlink a manufacturing order from its
            associated sales order row, removing the direct connection while preserving both orders.
            Example: {'sales_order_row_id': 2501}.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[Any, ErrorResponse]]
    """

    kwargs = _get_kwargs(
        body=body,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

Unlink a manufacturing order from sales order row

Unlinks the manufacturing order from a particular sales order row.

Parameters:

  • body (UnlinkManufacturingOrderRequest) –

    Request to unlink a manufacturing order from its associated sales order row, removing the direct connection while preserving both orders. Example: {'sales_order_row_id': 2501}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/manufacturing_order/unlink_manufacturing_order.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    body: UnlinkManufacturingOrderRequest,
) -> Any | ErrorResponse | None:
    """Unlink a manufacturing order from sales order row

     Unlinks the manufacturing order from a particular sales order row.

    Args:
        body (UnlinkManufacturingOrderRequest): Request to unlink a manufacturing order from its
            associated sales order row, removing the direct connection while preserving both orders.
            Example: {'sales_order_row_id': 2501}.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[Any, ErrorResponse]
    """

    return sync_detailed(
        client=client,
        body=body,
    ).parsed

Unlink a manufacturing order from sales order row

Unlinks the manufacturing order from a particular sales order row.

Parameters:

  • body (UnlinkManufacturingOrderRequest) –

    Request to unlink a manufacturing order from its associated sales order row, removing the direct connection while preserving both orders. Example: {'sales_order_row_id': 2501}.

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/manufacturing_order/unlink_manufacturing_order.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    body: UnlinkManufacturingOrderRequest,
) -> Response[Any | ErrorResponse]:
    """Unlink a manufacturing order from sales order row

     Unlinks the manufacturing order from a particular sales order row.

    Args:
        body (UnlinkManufacturingOrderRequest): Request to unlink a manufacturing order from its
            associated sales order row, removing the direct connection while preserving both orders.
            Example: {'sales_order_row_id': 2501}.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[Any, ErrorResponse]]
    """

    kwargs = _get_kwargs(
        body=body,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)