$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->put(
'code' => 'newpromocode',
$statusCode = $response->getStatusCode();
$promoCode = json_decode((string) $response->getBody(), true);