Extend Account Group
/ExtendAccountGroup
This allows to add a newly created IBAN or an existing IBAN that is under your purview and control to be added to an accounts group. This IBAN may be one of your entity or could be an entity that comes under your supervision and control.
import requests
import json
url = “https://devapi.cfsemoney.com/v1/ExtendAccountGroup”
payload = json.dumps({
“accountGroupName”: “<<xxxxxxxxx>>”,
“ibanList“: [
“GB31CLRB04271515583125”,
“GB31CLRB04271515583684”
]
})
headers = {
‘x-api-key’: ‘<<X-API-KEY>>‘,
‘Authorization’: ‘Bearer <<token_value>>‘,
‘Content-Type’: ‘application/json’
}
response = requests.request(“POST”, url, headers=headers, data=payload)
print(response.text)
{
“type”: “object”,
“properties”: {
“ibanList”: {
“type”: “array”,
“items”: {
“type”: “string”,
“pattern”: “^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$”
},
“minItems”: 1
},
“accountGroupName”: {
“type”: “string”,
“minLength”: 2,
“maxLength”: 50
}
},
“required”: [“accountGroupName”,“ibanList”]
}
{
“statusCode”: 200,
“body”: “{\”message\”: \”Account added to group successfully.\”, \”status\”: true}”
}
{
“statusCode”: 400,
“body”: “{\”message\”: \”xxx”}”
}