Lager - v5.2.0
    Preparing search index...
    • Function

      Creates a new delivery in the API.

      This function sends a POST request to the API to create a new delivery with the provided delivery details. If the request is successful, it returns the newly created delivery object. In case of an error, it catches the error and logs it.

      createDelivery

      Parameters

      • delivery: Partial<Delivery>

        The details of the new delivery to create.

      Returns Promise<undefined | Delivery>

      The response data from the API, which contains the created delivery, or void if an error occurs.

      If there is an error during the request, it is caught and logged.