I saw that this error in response[Severity] => WARNING
i think that here we take the price without tax
[Source] => ship
[Code] => 7047
[Message] => The sum of commodities customs value amounts do not the equal the total customs value amount; the greater customs value amount was used to rate.
[LocalizedMessage] => The sum of commodities customs value amounts do not the equal the total customs value amount; the greater customs value amount was used to rate.'UnitPrice' => array('Amount' => sprintf('%01.2f', $item->getPrice()),'Currency' => $this->getCurrencyCode()),'CustomsValue' => array('Amount' => sprintf('%01.2f', ($item->getPrice())),'Currency' => $this->getCurrencyCode())and here grand total including tax$shipRequest->setCustomsValue($shipRequest->getOrder()->getGrandTotal() - $shipRequest->getOrder()->getShippingAmount());