Hello,
I'm trying to called a REST API (created by us) that return client information with UHTTP.
But i need to send the REST API a customer (in JSON format) but i can't seem to make it work.
Here's what i have so far :
I'm creating a struct to define the customer number :
v_getMigrationStatus = $newstruct
v_getMigrationStatus->customerAccountNumber = $newstruct
v_getMigrationStatus->customerAccountNumber = "1324567890"
Then, i transform the struct in json :
structToJson vjson, v_getMigrationStatus
I'm creating the headers for the call :
putitem/id/case vHeaders, "Content-Type", "application/json"
then, finally, i activate the UHTTP :
activate "UHTTP".SEND("myUrl","GET","","",vHeaders,vjson,vResponse)
The called is working but i'm receiving all customer information, not just about the the one being sent?
From my understanding, the content parameter in UHTTP, is the one to use to pass parameter to the body section? Maybe i am mistaken.
What i am doing wrong? How can i send the customer number in JSON format to the REST API WS and receive only information about the customer i want?
Thanks!