title: How to pass parameters in API request to back-end URL with Azure APIM?
body: <p>I'm trying to create a request with parameters in Azure API Management.</p>
  
  <p>I have the following API(returns all invoices):</p>
  
  <p><em>www.apibackend.com/invoice</em></p>
  
  <p>This API can also handle parameters like this(returns invoice with ID 1):</p>
  
  <p><em>www.apibackend.com/invoice/1</em></p>
  
  <p>In my APIM service I've got the following code:</p>
  
  <pre><code>&lt;policies&gt;
  &lt;inbound&gt;
      &lt;base /&gt;
      &lt;set-backend-service base-url="www.apibackend.com/" /&gt;
      &lt;rewrite-uri template="/invoice" /&gt;
  &lt;/inbound&gt;
  &lt;backend&gt;
      &lt;base /&gt;
  &lt;/backend&gt;
  &lt;outbound&gt;
      &lt;base /&gt;
  &lt;/outbound&gt;
  &lt;on-error&gt;
      &lt;base /&gt;
  &lt;/on-error&gt;
  </code></pre>
  
  <p></p>
  
  <p>With the APIM URL(for example: www.apim.com/test/GetInvoices) I can make the following request to my backend:</p>
  
  <p><em>www.apibackend.com/invoice</em></p>
  
  <p>This will return all the invoices, but how do I only retrieve the invoice with ID 1? If i make the request "www.apim.com/test/GetInvoices/1" I will get an error.</p>
  
  <p>Hope someone can help!</p>