Add account

This endpoint allows you to add a new account for a customer, you can use a POST request to the customer endpoint. Below is an example using cURL:


    const myHeaders = new Headers();
myHeaders.append("token", "TlAWiePV51isvfuRZEHuCOW1ZDBeDHep2rnosIXHRVGvMwyFTMJZUVCeIneQJJ0h");
myHeaders.append("Content-Type", "application/json");

const raw = JSON.stringify({
  "customerId": "49438567-bc45-494c-b57d-80b41f193de7",
  "currency": "kes",
  "channel": "fiat"
});

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

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

Request details

  • Endpoint: `http://api.switch.tulupay.com/customer/add-account`
  • Method: `Post`
  • Headers:
  • Content-Type: `application/json`
  • Authorization: `public_key`
  • Response details

    A successful response will contain a JSON object with detailed account information. Here's a simplified example:

    
      
       			 "statusCode": "00",
      			  "status": "success",
       			 "message": "Account created successful",
       			 "voucherId": "5828097239"
    
       
        }

    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!