 <p>I do it this way :</p> <pre><code>// create your requests $requests[] = $client-&gt;createRequest('GET', '/endpoint', ['config' =&gt; ['order_id' =&gt; 123]]); ... // in your success callback get $id = $event-&gt;getRequest()-&gt;getConfig()['order_id'] </code></pre>