Request IBAN
/CreateIBANRequest
The RequestIBAN API lets the user to make a request for an IBAN for themselves (Programme Manager; PM) or for a Corporate Entity under the PM.
import requests
import json
url = “https://stageapi.cfsemoney.com/v1/CreateIBANRequest“
payload = json.dumps({
“accountName”: “MY EUR Account”,
“currencyName”: “EUR”,
“providerId”:99999,
“reason”: “”
})
headers = {
‘x-api-key’: ‘YOUR-API-KEY‘,
‘Authorization’: ‘Bearer <<bearer-token>>‘,
‘Content-Type’: ‘application/json’
}
response = requests.request(“POST”, url, headers=headers, data=payload)
print(response.text)
curl –location –request POST ‘https://stageapi.cfsemoney.com/v1/CreateIBANRequest’ \
–header ‘x-api-key: Your-API-KEY‘ \
–header ‘Authorization: Bearer <<bearer-token>>‘ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“accountName”: “apiouttest11”,
“currencyName”: “USD”,
“providerId”:”12313″,
“entityId”: 18350
}’
“properties”: {
“accountName”: {“type”: “string”,”minLength”: 2,”maxLength”:70},
“currencyName”: {“type”: “string”,”enum”: [“USD”,”EUR”,”GBP”,”HUF”,”SEK”,”CZK”,”DKK”,”NOK”,”PLN”,”RON”]},
“providerId”:{“type”:”number”}
“entityId”: {“type”: “number”}
},
“required”: [“accountName”, “currencyName”,”entityId”,”providerId”] }
{
“statusCode”: 200,
“body”: “{\”data\”: {\”accountId\”: \”d14372af-69a1-48c3-b7ec-9eb3282b15b7\”}, \”message\”: \”Account request sent successfully.\”}”
}
{
“statusCode”: 400,
“body”: “{\”message\”: \”xxx”}”
}