Problem with creating proper external API request

Dear community,

If I import to XANO this CURL

curl --location 'https://api.somepage.com/connector.php' \
--header 'X-BLToken: TOKEN' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'method=getInventoryProductsList' \
--data-urlencode 'parameters={"inventory_id": 5839, "page":1}'

It works perfect and looks like

But, my goal is set parameters as a variables, so I changed it to:

I will get from external API

But in my opinion, request looks OK.

What in your opinion can cause this problem? Attached also raw output from debugger.

{
   "request":{
      "url":"https://api.somepage.com/connector.php",
      "method":"POST",
      "headers":[
         "POST /connector.php HTTP/2",
         "Host: api.somepage.com",
         "Accept-Encoding: gzip, deflate",
         "X-BLToken: TOKEN",
         "Content-Type: application/x-www-form-urlencoded",
         "Accept: application/json",
         "Content-Length: 88"
      ],
      "params":{
         "method":"getInventoryProductsList",
         "parameters":{
            "inventory_id":5839,
            "page":1
         }
      }
   },
   "response":{
      "headers":[
         "HTTP/2 200",
         "date: Mon, 29 Jan 2024 11:59:53 GMT",
         "content-type: text/html; charset=UTF-8",
         "vary: Accept-Encoding",
         "content-encoding: gzip",
         "cf-cache-status: DYNAMIC",
         "server: cloudflare",
         "cf-ray: 84d14fc50f040476-FRA"
      ],
      "result":{
         "status":"ERROR",
         "error_code":"ERROR",
         "error_message":"ERROR_PARAMETERS_FORMAT"
      },
      "status":200
   }
}
1
2 replies