title: VBA woocomerce API "rest_missing_callback_param name"
body: <p>I have been searching and trying to resolve it, but seems I can not figure out what might be the problem.</p>
  <p>As per woocommerce <a href="https://woocommerce.github.io/woocommerce-rest-api-docs/?shell#product-category-properties" rel="nofollow noreferrer">API documentation</a> for adding category the category name is the only required property, below is my JSON format before xmlhttp.send which seems correct to me:</p>
  <p>Immediate window:</p>
  <pre><code>[
     {
        &quot;name&quot;: &quot;Automotive parts and accessories&quot;,
        &quot;slug&quot;: &quot;Automotive parts and accessories&quot;,
        &quot;parent&quot;: 0,
        &quot;display&quot;: &quot;default&quot;
     }
  ]
  </code></pre>
  <p>However I am receiving the error in the response:</p>
  <pre><code>{&quot;code&quot;:&quot;rest_missing_callback_param&quot;,&quot;message&quot;:&quot;Missing parameter(s): name&quot;,&quot;data&quot;:{&quot;status&quot;:400,&quot;params&quot;:[&quot;name&quot;]}}
  </code></pre>
  <p>My code is as below:</p>
  <pre><code>Public Sub woo_Post_category()
  
  Dim xmlhttp As New MSXML2.XMLHTTP60
  Dim myurl As String
  Dim Json As Object
  
  myurl = &quot;https://example.com/wp-json/wc/v3/products/categories&quot;
  
  xmlhttp.Open &quot;POST&quot;, myurl, False
  
  xmlhttp.setRequestHeader &quot;authorization&quot;, &quot;Basic &quot; &amp; &lt;SECRET_HERE&gt; \&quot;
  xmlhttp.setRequestHeader &quot;content-type&quot;, &quot;application/json&quot;
  
  Dim inner As Dictionary
  Set inner = New Dictionary
  
  Dim myCollection As Collection
  Set myCollection = New Collection
  
  inner(&quot;name&quot;) = &quot;Automotive parts and accessories&quot;
  inner(&quot;slug&quot;) = &quot;Automotive parts and accessories&quot;
  inner(&quot;parent&quot;) = 0
  inner(&quot;display&quot;) = &quot;default&quot;
              
  myCollection.Add inner
  Debug.Print ConvertToJson(myCollection, Whitespace:=3)
  xmlhttp.send (ConvertToJson(myCollection, Whitespace:=3))
  Debug.Print xmlhttp.responseText
  
  end sub
  </code></pre>
  <p>So I am not entirely sure what I am doing wrong here, if someone can help, and thank you :)</p>