DDCMS Direct File Import
Import BACS payment files via the API for processing through DDCMS Direct. The client must have the DDCMS Direct feature enabled.
POST/client/{clientCode}/ddcmsdirect/importImports a BACS payment file via the API for processing through DDCMS Direct#
Imports a file into DDCMS Direct for processing through the existing approval workflows. The file undergoes initial structural validation based on the specified fileType. If validation passes, the file is stored and queued for further validation. Prerequisites:
directDebit/path/client- clientCode
- file
- fileType
Responses
200OK
- status
- fileId
- importedAt
- message
- fileStatus
- nextSteps
400Bad Request
- status
- message
- errors [ {
- category
- message
} ] - errorType
- supportedFileTypes
403Forbidden
- status
- message
413Payload Too Large
- status
- message
- maxFileSizeBytes
500Internal Server Error
- status
- message
Example request
POST /client/{clientCode}/ddcmsdirect/import# multipart/form-data — use -F flags with cURL
fileType=bacs_standard_18
file=@/path/to/your/file.txtcurl -L -g -X POST \
'https://ddcms.accesspaysuite.com/api/v3/client/{clientCode}/ddcmsdirect/import' \
-H 'apiKey: {apiKey}' \
-F 'file=@/path/to/payment-file.txt' \
-F 'fileType=bacs_standard_18'HTTP/1.1 200 OK
{
"status": "success",
"fileId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"importedAt": "2024-01-20T15:30:00Z",
"message": "File imported successfully",
"fileStatus": "Queued for validation",
"nextSteps": "File is queued for validation. Check DDCMS Direct UI for validation results and any required actions such as SUN assignment or processing date selection."
}HTTP/1.1 400 Bad Request
"error"HTTP/1.1 403 Forbidden
{
"status": "error",
"message": "DDCMS Direct feature not enabled for this client"
}HTTP/1.1 413 Payload Too Large
{
"status": "error",
"message": "File exceeds the maximum allowed size",
"maxFileSizeBytes": 137000000
}HTTP/1.1 500 Internal Server Error
{
"status": "error",
"message": "An internal server error occurred"
}Prerequisites
- The client must have the DDCMS Direct feature enabled.
- The request must be sent as
multipart/form-data. - Both
fileandfileTypeform fields are required.
Upload attribution
Files uploaded via this endpoint are recorded as “Uploaded by: API User”, and appear in the DDCMS Direct UI and on the home screen with that attribution. When a user subsequently interacts with the file, the attribution transfers to that user so that approval workflows stay correct.
After a successful import
The file will have status “Queued for validation”. Check the DDCMS Direct UI for validation results and any required actions, such as SUN assignment or processing date selection.