Skip to main content

Get Splitit Token

POST 

https://id.sandbox.splitit.com/connect/token

Authenticate using your client_id and client_secret from your merchant hub (Splitit support will also have to enable AMS API access for you).

For testing purposes, you can authenticate directly in the Request box on this page (at right). For grant_type, enter client_credentials, for scope enter ams.api, then enter your client_id and client_secret. Scroll down and press SEND API REQUEST. In the response, copy your access_token, which you can use to execute the other endpoints in this API reference.

  • Note that unlike the other endpoints, your authentication payload should use the format application/x-www-form-urlencoded.

Request

Responses

Success

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://id.sandbox.splitit.com/connect/token");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/x-www-form-urlencoded");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://id.sandbox.splitit.com/connect
Body required
ResponseClear

Click the Send API Request button above and see the response here!