$client = new GuzzleHttp\Client([
'base_uri' => 'https://api.lpmotor.ru',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Api-User-Id' => $userId,
'Authorization' => 'Bearer ' . $apiKey,
$response = $client->post(
'title' => 'my delivery',
'comment' => 'this is comment',
$statusCode = $response->getStatusCode();
$delivery = json_decode((string) $response->getBody(), true);