All customers

Fetch customers available on your integration.


const myHeaders = new Headers();
myHeaders.append("
token", "eyJhbGciOiJIUzI1NiIsInR5cCI6I
kpXVCJ9.eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiI4Y2Q3NjQ0ZC1m
YzNmLTQyOTktODk1Mi1lMjZkYzNlYTY4NTYiLCJpYXQiOjE3MjA1OTg4
MTcsImV4cCI6MTcyMDY4NTIxN30.vOQajiinI-I_QC--EZZ1DI0NjTM3
N06_DPT492H4T4g");

const raw = "";

const requestOptions = {
  method: "GET",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("https://api.switch.tulupay.com/customers", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
      

Request details

  • Endpoint:`https://api.switch.tulupay.com/customers`
  • Method:`GET`
  • Headers:
  • Content-Type:`application/json`
  • Authorization:`token`
  • Response details

    A successful response will contain a JSON array with user details. Here's a simplified example:

    
     const myHeaders = new Headers();
    myHeaders.append("token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX
    VCJ9.eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiI4Y2Q3NjQ0ZC1mYzNmLT
    {
        "statusCode": "00",
        "status": "success",
        "message": "Customer List",
        "user_status": {
            "total_user": 1,
            "active_user": 0,
            "inactive_user": 0
        },
        "data": [
            {
                "customer_id": "ce463f4d-2dfc-4bfd-a67a-386762350a7d",
                "first_name": "abdul",
                "last_name": "qudus",
                "mobile_number": "08185348318",
                "email": "kola@gmail.com",
                "address": "lekki phase 2",
                "bvn": "7345267287",
                "nin": "8647382948",
                "user_status": "1",
                "created": "2024-07-10T08:14:55.000Z"
            }
        ],
        "datetime": "2024-07-10T09:42:56.000Z"
    }
          

    Contact Us for Developer Support

    Contact our dedicated developer support team for assistance, guidance, or any questions you have regarding Tuluswitch API integration. We're here to ensure your development experience is smooth and successful.

    Read Our Developer Blog for Insights

    Master the Tuluswitch API with our Developer Blog! Get expert insights, advanced tips, and industry trends beyond the documentation. Stay connected with the developer community to build exceptional payment platforms. Visit the blog now and unlock your full potential!