Skip to main content
May 16, 2022
Solved

Sending Big Int Value(17002732024) in JSON

  • May 16, 2022
  • 1 reply
  • 0 views

Hi All,

I have to make an REST API call with an integer value 17002732024, it cannot be passed as string as the receiver wont accept it. Do we have any way to achieve this. I am able to call this API as expected from Postman but when tried from Integration object, the value is converted to the max limit value(2147483647) which is not a valid value for request.

Any help is appreciated. Thanks in advance!

Best answer by mahas0001

Was able to fix it-

Instead of passing key value pair(JSON) in Integration body, create a JSON STRING in process and pass it to Integration rule input. It will pass the exact value 17002732024 to API.

"{
""bigIntNumber"":17002732024
}"

It seems Integration object body checks JSON structure limitations.

1 reply

mahas0001AuthorAnswer
May 16, 2022

Was able to fix it-

Instead of passing key value pair(JSON) in Integration body, create a JSON STRING in process and pass it to Integration rule input. It will pass the exact value 17002732024 to API.

"{
""bigIntNumber"":17002732024
}"

It seems Integration object body checks JSON structure limitations.