Integrate with our Payment CRM

Use one of our existing integrations
or build your own.

Heading

General API

General API calls used for sales, marketing, payments, organising and reports.

Learn more

Contact Centre API

Contact Centre specific API documentation.

Learn more

Integrations

Various integrations from payment methods, leads importing and data enrich providers.

Learn more

Developer tools

Use our API in any programming language. See the examples below:

  1. $("#register-form").validate({
  2. rules: {
  3. username: {
  4. required: true,
  5. minLength: 2,
  6. remote: "register.php"
  7. }
  8. },
  9. messages: {
  10. username: {
  11. required: "Enter your username",
  12. minLength: "At least 2 characters are necessary",
  13. remote: String.format("The name {0} is already in use")
  14. }
  15. }
  16. });
 curl --location 'https://switchtransact.com/api/1.0/people/create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
    "name":"John",
    "surname":"Doe",
    "id_number":"8304105800088",
    "email":"john.doe@example.com",
    "contact_cell":"27881112222",
    "day_salary":"1",
    "date_balance_open":"2024-01-01",
    "balance_open":"3000.00",
    "custom_fields": { 
        "Middle Name": "Josh",
        "Alternative Mobile Number": "27781234567",
        "Max Payment": 50.25,
        "Out of Country": true,
        "List of Children": "Ruben, James",
        "Spouse Birthday": "1985-01-01",
        "list": "a,b,c",
    }
}'
 var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://switchtransact.com/api/1.0/people/create");
request.Headers.Add("Authorization", "");

var data = new
{
    name = "John",
    surname = "Doe",
    id_number = "8304105800088",
    email = "",
    contact_cell = "27881112222",
    date_birth = "",
    day_salary = "1",
    date_balance_open = "",
    balance_open = "",
    custom_fields = new
    {
        "Middle Name" = "Josh",
        "Alternative Mobile Number" = "27781234567",
        "Max Payment" = 50.25,
        "Out of Country" = true,
        "List of Children" = "Ruben, James",
        "Spouse Birthday" = "1985-01-01",
        "list" = "a,b,c"
    }
};

var content = new StringContent(System.Text.Json.JsonSerializer.Serialize(data), null, "application/json");
request.Content = content;

var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();

Console.WriteLine(await response.Content.ReadAsStringAsync());
 <?php
$client = new Client();
$headers = [
  'Authorization' => '',
  'Content-Type' => 'application/json'
];
$body = '{
    "name":"John",
    "surname":"Doe",
    "id_number":"8304105800088",
    "email":"john.doe@example.com",
    "contact_cell":"27881112222",
    "day_salary":"1",
    "date_balance_open":"2024-01-01",
    "balance_open":"3000.00",
    "custom_fields": { 
        "Middle Name": "Josh",
        "Alternative Mobile Number": "27781234567",
        "Max Payment": 50.25,
        "Out of Country": true,
        "List of Children": "Ruben, James",
        "Spouse Birthday": "1985-01-01",
        "list": "a,b,c",
    }
}';
$request = new Request('POST', 'https://switchtransact.com/api/1.0/people/create', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
 const axios = require('axios');

const data = {
  name: "John",
  surname: "Doe",
  id_number: "8304105800088",
  email: "john.doe@example.com",
  contact_cell: "27881112222",
  day_salary: "1",
  date_balance_open: "2024-01-01",
  balance_open: "3000.00",
  custom_fields: {
    "Middle Name": "Josh",
    "Alternative Mobile Number": "27781234567",
    "Max Payment": 50.25,
    "Out of Country": true,
    "List of Children": "Ruben, James",
    "Spouse Birthday": "1985-01-01",
    "list": "a,b,c"
  }
};

const config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://switchtransact.com/api/1.0/people/create',
  headers: {
    'Authorization': '',
    'Content-Type': 'application/json'
  },
  data: JSON.stringify(data)
};

axios.request(config)
  .then((response) => console.log(JSON.stringify(response.data)))
  .catch((error) => console.log(error));
 import http.client
import json

conn = http.client.HTTPSConnection("")
data = {
    "name": "John",
    "surname": "Doe",
    "id_number": "8304105800088",
    "email": "",
    "contact_cell": "27881112222",
    "date_birth": "",
    "day_salary": "1",
    "date_balance_open": "",
    "balance_open": "",
    "custom_fields": {
        "Middle Name": "Josh",
        "Alternative Mobile Number": "27781234567",
        "Max Payment": 50.25,
        "Out of Country": True,
        "List of Children": "Ruben, James",
        "Spouse Birthday": "1985-01-01",
        "list": "a,b,c"
    }
}
payload = json.dumps(data)
headers = {
    'Authorization': '',
    'Content-Type': 'application/json'
}
conn.request("POST", "https://switchtransact.com/api/1.0/people/create", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
  1. <header class="main-header">
  2. ...
  3. </header>
  4.  
  5. <div class="main-body">
  6. <nav class="side-nav">
  7. ...
  8. </div>
  9.  
  10. <main>
  11. ...
  12. </main>
  13.  
  14. <aside class="quick-view">
  15. ...
  16. </div>
  17. </div>
  18.  
  19. <footer class="main-footer">
  20. ...
  21. </footer>

Start growing your business... Get paid quicker.

Talk to an expert!

Contact us