Skip to content

statuspro_public_api_client.api.orders.lookup_order

statuspro_public_api_client.api.orders.lookup_order

Classes

Functions

asyncio(*, client, number, email) async

Retrieve an order by order number and customer email

Limited to 60 requests per minute.

Parameters:

  • number (str) –
  • email (str) –

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:

  • ErrorResponse | OrderResponse | None

    ErrorResponse | OrderResponse

Source code in statuspro_public_api_client/api/orders/lookup_order.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    number: str,
    email: str,
) -> ErrorResponse | OrderResponse | None:
    """Retrieve an order by order number and customer email

     Limited to 60 requests per minute.

    Args:
        number (str):
        email (str):

    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:
        ErrorResponse | OrderResponse
    """

    return (
        await asyncio_detailed(
            client=client,
            number=number,
            email=email,
        )
    ).parsed

asyncio_detailed(*, client, number, email) async

Retrieve an order by order number and customer email

Limited to 60 requests per minute.

Parameters:

  • number (str) –
  • email (str) –

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:

  • Response[ErrorResponse | OrderResponse]

    Response[ErrorResponse | OrderResponse]

Source code in statuspro_public_api_client/api/orders/lookup_order.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    number: str,
    email: str,
) -> Response[ErrorResponse | OrderResponse]:
    """Retrieve an order by order number and customer email

     Limited to 60 requests per minute.

    Args:
        number (str):
        email (str):

    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[ErrorResponse | OrderResponse]
    """

    kwargs = _get_kwargs(
        number=number,
        email=email,
    )

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

    return _build_response(client=client, response=response)

sync(*, client, number, email)

Retrieve an order by order number and customer email

Limited to 60 requests per minute.

Parameters:

  • number (str) –
  • email (str) –

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:

  • ErrorResponse | OrderResponse | None

    ErrorResponse | OrderResponse

Source code in statuspro_public_api_client/api/orders/lookup_order.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    number: str,
    email: str,
) -> ErrorResponse | OrderResponse | None:
    """Retrieve an order by order number and customer email

     Limited to 60 requests per minute.

    Args:
        number (str):
        email (str):

    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:
        ErrorResponse | OrderResponse
    """

    return sync_detailed(
        client=client,
        number=number,
        email=email,
    ).parsed

sync_detailed(*, client, number, email)

Retrieve an order by order number and customer email

Limited to 60 requests per minute.

Parameters:

  • number (str) –
  • email (str) –

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:

  • Response[ErrorResponse | OrderResponse]

    Response[ErrorResponse | OrderResponse]

Source code in statuspro_public_api_client/api/orders/lookup_order.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    number: str,
    email: str,
) -> Response[ErrorResponse | OrderResponse]:
    """Retrieve an order by order number and customer email

     Limited to 60 requests per minute.

    Args:
        number (str):
        email (str):

    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[ErrorResponse | OrderResponse]
    """

    kwargs = _get_kwargs(
        number=number,
        email=email,
    )

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

    return _build_response(client=client, response=response)