Update/Overhaul Connected Account
This helps you update any of the data required to operate a subaccount
PATCH https://api2.ourpass.co/v1/api/subaccounts/:subaccountId
Path Parameters
Name
Type
Description
subaccountId*
String
This is the unique ID of the connected account to be updated.
Headers
Name
Type
Description
apiKey*
String
Pass your api key in the request header to authorise the call
{
"success": true,
"message": "Business Subaccount updated"
}curl --location --request PATCH 'https://api2.ourpass.co/v1/api/subaccounts/1295' \
--data-raw '{
"subAccountEmail": "[email protected]",
"txCap": 1000,
"txPercentage": 10,
"userMobile": "Hello",
"businessName": "Hello",
"bankName": "test",
"bankCode": "Hello",
"accountNumber": "Hello",
"accountName": "Hello",
"lastName": "true",
"firstName": "true"
}'var axios = require('axios');
var data = '{\n "subAccountEmail": "[email protected]",\n "txCap": 1000,\n "txPercentage": 10,\n "userMobile": "Hello",\n "businessName": "Hello",\n "bankName": "test",\n "bankCode": "Hello",\n "accountNumber": "Hello",\n "accountName": "Hello",\n "lastName": "true",\n "firstName": "true"\n}';
var config = {
method: 'patch',
url: 'https://api2.ourpass.co/v1/api/subaccounts/1295',
headers: { },
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Last updated
Was this helpful?