I have this PHP Code that I want to put into UiPath Request
$values = array( 'order_type' => 2, // 2 dropshipping courier, 3 dropshipping with self pick-up (default is 2) 'client_order_name' => 'Popescu Ion', // 'text' (mandatory) 'client_order_number' => '12647098', // numeric (mandatory) 'message' => 'Your message for seller', // text (optional) 'url_awb' => 'https://www.domain.tld/path/awb.pdf', // url (mandatory) 'products' => [ [ 'sku' => '60969', 'description' => '', // text (optional) 'quantity' => 1 ] ] ); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://www.partenerviva.ro/api/orders/new", CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => http_build_query($values), CURLOPT_HTTPHEADER => array("API-KEY:your-api-key-or-token"), CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => 0, CURLOPT_TIMEOUT => 30, CURLOPT_CONNECTTIMEOUT => 5 )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
I managed to put it into Postman but it's not the best way because it's difficult to use it in UiPath.

I need a way to send the parameter just as **product[]** and the rest in the value, or some way in which I can pass a variable with all other informations.
Any ideas of how I can transport pruduct[0][sku], product[0][quantity], etc. into just one variable products[]?