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
The details of the new delivery to create.
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.
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