Tax lines problem in draft order creation

Hello,

I want to create a draft order for a user using the REST API (“https://{domain}/admin/api/2024-07/draft_orders.json”)

I am using PHP. This is how I created the data that is going to be used for the creation. The order is created successfully but tax_lines always remains an empty array and it is not applied. Any idea what could be the problem?

 $data = [
            'draft_order' => [
                'line_items' =>
                [
                    [
                        'title' => 'test',
                        'name' => 'test2',
                        'quantity' => 1,
                        'price' => 25,
                        'custom' => true,
                        'taxable' => true,
                        'tax_lines' => [
                            [
                                'rate_percentage' => 20,
                                'price' => 17,
                                'rate' => 0.20,
                                'title' => 'VAT'
                            ]
                        ],
                        'requires_shipping' => false,
                        'sku' => 'SKU123'
                    ]
                ],
                'customer' => [
                   'id' => $shopifyCustomerId
                ],
                'tax_exempt' => false,
                'note' => 'note',
                'use_customer_default_address' => true,
            ]
        ];

Up. Can’t figure out what’s the problem. Anyone who had this problem?