Get Splitit Token
POSThttps://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
- 200
Success
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear