Login (Deprecated)
The Login operation returns a SessionId that enables a connection with Splitit's API operations and is kept alive for twenty minutes. Authenticate your account using your Splitit API credentials (API Username and API Password). To find your credentials, see here. Important: Your Splitit API credentials should be kept secure on your server and only transmitted over HTTPS directly from your server to Splitit's API.
post
https://webapi.{environment}.splitit.com
/api/Login

Example Requests

cURL
Go
Python
C#
PHP
Node
curl --location --request POST '{{url}}/api/Login?format=json' \
--header 'Content-Type: application/json' \
--data-raw '{
"UserName":"{{UserName}}",
"Password":"{{Password}}"
}
'
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://webapi.sandbox.splitit.com/api/Login"
payload := strings.NewReader("{ \n \"UserName\":\"APIUser000042200\",\n \"Password\":\"tB2rjoWy7cX7bBydMFbYj6QFv8U93SoZPYxwStSwMXjQ5Xe2Z0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import http.client
conn = http.client.HTTPSConnection("webapi.sandbox.splitit.com")
payload = "{ \n \"UserName\":\"APIUser000042200\",\n \"Password\":\"tB2rjoWy7cX7bBydMFbYj6QFv8U93SoZPYxwStSwMXjQ5Xe2Z0\"\n}"
headers = {
'Content-Type': "application/json"
}
conn.request("POST", "/api/Login", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))p
var client = new RestClient("https://webapi.sandbox.splitit.com/api/Login");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddCookie("visid_incap_2179264", "UsBokfb1QnemcgrbLfeEP253/GEAAAAAQUIPAAAAAACB/+AWx7fdrcJmzBvXSyFA");
request.AddCookie("incap_ses_885_2179264", "QHvaX5xTMEwiwMtIhSdIDJmbxGIAAAAAG70ChrX4KVYR7FZIjXE9gA==");
request.AddParameter("application/json", "{ \n \"UserName\":\"APIUser000034200\",\n \"Password\":\"tB2rjoWy7cX7bBydMFbYj6QFv8U93SoZPYxwStSwMXjQ5Xe2Z0\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
<?php
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append('{
"UserName":"APIUser000034200",
"Password":"tB2rjoWy7cX7bBydMFbYj6QFv8U93SoZPYxwStSwMXjQ5Xe2Z0"
}');
$request->setRequestUrl('https://webapi.sandbox.splitit.com/api/Login');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'Content-Type' => 'application/json'
]);
$client->setCookies([
'incap_ses_885_2179264' => 'QHvaX5xTMEwiwMtIhSdIDJmbxGIAAAAAG70ChrX4KVYR7FZIjXE9gA==',
'visid_incap_2179264' => 'UsBokfb1QnemcgrbLfeEP253/GEAAAAAQUIPAAAAAACB/+AWx7fdrcJmzBvXSyFA',
'nlbi_2179264' => 'hDcpOHiNyEQCRz37vrfigAAAAAAJzVqfMZf60aE2owLFQxKA'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
?>
const http = require("https");
const options = {
"method": "POST",
"hostname": "webapi.sandbox.splitit.com",
"port": null,
"path": "/api/Login",
"headers": {
"Content-Type": "application/json",
"Content-Length": "107" }
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
UserName: 'APIUser000052200',
Password: 'tB2rjoWy7cX7bBydMFbYj6QFv8U93SoZPYxwStSwMXjQ5Xe2Z0'
}));
req.end();
Export as PDF
Copy link
On this page
post
Example Requests