Make a Euro payment (SEPA-SCT)
This API lets you to make a EUR payment, using SEPA-SCT scheme. There maybe further restrictions in the preapproved amount, and/or approvals needed for a payment transaction to fully get settled.
/CreatePaymentEUR
import requests
import json
url = “https://stageapi.cfsemoney.com/v1/CreatePaymentEUR”
payload = json.dumps({
“paymentMethod”: “SEPA-SCT”,
“fromAccountIBAN”: “GB06CFZZ12345300100009”,
“recipientName”: “test2”,
“toAccountIBAN”: “GB76CFZZ65432100100010”,
“toBicCode”: “ABXX29XXX”,
“paymentReference”: “ref776”,
“amount”: 3.45
})
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://v1/tEUR’ \
–header ‘x-api-key’: ‘YOUR-API-KEY‘ \
–header ‘Authorization: Bearer <<bearer-token>>‘ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{
“paymentMethod”:”SEPA-SCT”,
“fromAccountIBAN”:”GB06CFZZ00124300100009″,
“recipientName”:”test2″,
“toAccountIBAN”:”GB76CFZZ00993400100010″,
“toBicCode”:”XXXXGB21XXX”,
“paymentReference”:”ref776″,
“amount”:3.45
}’
“properties”: {
“paymentMethod”: {“type”: “string”,”minLength”: 2,”maxLength”:50,”enum”: [“SEPA-SCT”]},
“fromAccountIBAN”: {“type”: “string”,”minLength”: 2,”maxLength”:50},
“recipientName”: {“type”: “string”,”minLength”: 2,”maxLength”:50},
“toAccountIBAN”: {“type”: “string”,”minLength”: 2,”maxLength”:50},
“toBicCode”: {“type”: “string”,”minLength”: 7,”maxLength”:15},
“paymentReference”: {“type”: “string”,”minLength”: 7,”maxLength”:15},
“amount”: {“type”: “number”}
},”required”: [“paymentMethod”, “fromAccountIBAN”,”recipientName”,”toAccountIBAN”,”toBicCode”,”paymentReference”,”amount”] }
{
“statusCode”: 200,
“body”: “{\”transaction_id\”: \”dbe23419-9ab4-44a0-ae6c- 8cdf74155c26\”, \”message\”: \”transaction created successfully.\”, \”status\”: true}”
}
{
“statusCode”: 400,
“body”: “{\”message\”: \”xxx”}”
}