Customer information.

Retrieving customer information

Get details of a customer on your integration.


const myHeaders = new Headers();
myHeaders.append("token", "lGIZjxxn0j6o664sC7trToMaiTUIz6kFzf633f68i4hkyjFsl1U4WGHWsgNXdxMg");

const raw = "";

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

fetch("https://api.switch.tulupay.com/customer/ce463f4d-2dfc-4bfd-a67a-386762350a7d", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
    
      

Request details

  • Endpoint: `https://api.switch.tulupay.com/customer/customer_id`
  • Method: `GET`
  • Headers:
  • Content-Type: `application/json`
  • Authorization: `public key`
  • Response details

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

    
        {
        "statusCode": "00",
        "status": "success",
        "message": "Customer Detail",
        "datetime": "2024-07-10T10:32:58.000Z",
        "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",
            "status": "1"
        },
        "account": [
            {
                "bankname": "WEMA",
                "full_name": "abdul qudus",
                "currency": "ngn",
                "voucher_id": "8924481652",
                "last_balance": 0,
                "current_balance": 0,
                "status": "3"
            }
        ],
        "verificationStatus": {
            "bvn_status": "Not Verified",
            "nin_status": "Not Verified"
        }
    }
        

    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!