I'm getting Session ID Not Specified

16 views
Skip to first unread message

Dumitru Gutu

unread,
Jan 22, 2020, 4:02:54 PM1/22/20
to TramsAPI Beta
I'm first time want explore the TRAMS API. I was able to login successfully and want to explorer available methods. Here is my Example that fail with "Session ID Not Specified". What I'm doing wrong ?

GET //invoicequery/RunQuery HTTP/1.1
Content-Type: text/plain
User-Agent: PostmanRuntime/7.20.1
Accept: */*
Cache-Control: no-cache
Postman-Token: d087c789-0a4a-45c1-872e-f4fef9dfc184,35d5642b-0b0d-4e66-b9c6-21fa19bc6237
Accept-Encoding: gzip, deflate
Content-Length: 85
Connection: keep-alive
cache-control: no-cache

{
  "params": 
  {
  }
  "SessionID": "{E108531E-9382-44B9-ABFC-535A5ABD198A}"
}

Dumitru Gutu

unread,
Jan 23, 2020, 4:41:34 AM1/23/20
to TramsAPI Beta
Here is another example of usage. What I'm doing wrong ? Could you please assist ?

POST /history/runquery HTTP/1.1
Content-Type: text/plain
User-Agent: PostmanRuntime/7.20.1
Accept: */*
Cache-Control: no-cache
Postman-Token: d2d423fc-80bc-4f5c-aff4-e5ed2ffb6f7b,03e48c70-1812-49c5-8d3e-96536c898c01
Accept-Encoding: gzip, deflate
Content-Length: 214
Connection: keep-alive
cache-control: no-cache

{
  "SessionID": "{7291C890-BE51-4D05-9F34-45BF1F37FE9A}",
  "Params" : {
    "tableName" : "RESCARD",
    "logAction" : "Create",
    "timestampFrom" : "2018-09-19"
    "timestampTo" : "2018-09-20"
  }  
}

TRAMSAPI_USE.png


Dan Palley

unread,
Jan 23, 2020, 11:15:43 AM1/23/20
to TramsAPI Beta
Hi Dumitru,

The request content type is plain text. Can you change to JSON and try again?

Dan

Dumitru Gutu

unread,
Jan 23, 2020, 11:28:44 AM1/23/20
to TramsAPI Beta
Hi Dan, with JSON content type it work fine
Thanks
Reply all
Reply to author
Forward
0 new messages