title: How to POST Request with multiple objects in Python
body: <p>I'm able to use the post method with any url but this one, when I use postman to send the same request (same body, key, etc) the request works absolutely fine!, However when I use python (with requests library) it simply wont work, I used the following code:</p>
  <pre><code>import requests
  import json
  url = &quot;https://app.funildevendas.com.br/api/opportunity?&amp;IntegrationKey=(cant give it up, but it's defintely right)&quot;
  payload =  {
       &quot;oportunidades&quot;: [
  
       {
       &quot;titulo&quot;: &quot;TestePython&quot;,
       &quot;valor&quot;: 10440,
       &quot;codigo_vendedor&quot;: 38171,
       &quot;codigo_metodologia&quot;: 1,
       &quot;codigo_etapa&quot;: 2,
       &quot;codigo_canal_venda&quot;:69400,
  
       &quot;empresa&quot;: {
       &quot;nome&quot;: &quot;Python&quot;,
       &quot;cnpj&quot;: &quot;&quot;,
       &quot;ie&quot;: &quot;&quot;,
       &quot;segmento&quot;: &quot;&quot;,
       &quot;endereco_completo&quot;: {
       &quot;logradouro&quot;: &quot;&quot;,
       &quot;numero&quot;: &quot;&quot;,
       &quot;complemento&quot;: &quot;&quot;,
       &quot;bairro&quot;: &quot;&quot;,
       &quot;cidade&quot;: &quot;&quot;,
       &quot;uf&quot;: &quot;&quot;,
       &quot;cep&quot;: &quot;&quot;
       }
  
       },
       &quot;contato&quot;: {
       &quot;nome&quot;: &quot;Nome do contato&quot;,
       &quot;email&quot;: &quot;email@contato.com.br&quot;,
       &quot;telefone1&quot;: &quot;&quot;,
       &quot;telefone2&quot;: &quot;&quot;,
       &quot;cargo&quot;: &quot;&quot;,
       &quot;cpf&quot;: &quot;&quot;
       }
  
       }
       ]
      }
  res = requests.post(url,data=json.dumps(payload))
   
  </code></pre>
  <p>I do get the response [200] but it doesn't seem to recognize the body structure.
  The response I get is:</p>
  <pre><code>{&quot;response&quot;:&quot;failure&quot;,&quot;message&quot;:&quot;Cannot perform runtime binding on a null reference&quot;,&quot;value&quot;:null} 
  </code></pre>
  <p>I wonder if it is because of the &quot;[&quot; right before &quot;oportunidades&quot; but changing it to &quot;{&quot; result in a syntax error. My integration key is definetely right, so is my body (payload) since both work just fine using postman</p>