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:
Request payload
Name
Type
Description
customerId
string
Unique identifier for the customer whose account is being created.
currency
string
The currency type for the new account (e.g., ngn, usd, kes, cad).
channel
string
The transaction channel type (e.g., fiat).
const myHeaders = new Headers();
const myHeaders = new Headers();
myHeaders.append("Authorization",Bearer token", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX
VCJ9.eyJyb2xlaWQiOiI2NDEiLCJ1c2VySWQiOiI4Y2Q3NjQ0ZC1mYzNmLT
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/v1/customer/add-account", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
}
Request details
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 FAQ 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!