Direct Debit
Client Info
Retrieve configuration info about your DDCMS client.
GET/client/{clientCode}/infoRetrieve configuration info about your DDCMS client#
description:
Retrieve configuration info about your DDCMS client.
authorization:ApiKeyAuth
content-type: application/json
path parameters:
shared schema
directDebit/path/client{
- clientCode
}
Responses
200OK
response body:
{
- CustomerEmailMandatory
}
Example request
Endpoint
GET /client/{clientCode}/infocURL
curl -L -g -X GET 'https://ddcms.accesspaysuite.com/api/v3/client/{clientCode}/info' \
-H 'apiKey: {apiKey}'Response
HTTP/1.1 200 OK
{
"CustomerEmailMandatory": true
}POST/client/{clientCode}/paymentsList all payments registered against your DDCMS client#
description:
List all payments registered against your DDCMS client.
authorization:ApiKeyAuth
content-type: application/json
path parameters:
shared schema
directDebit/path/client{
- clientCode
}
request body:
{
- PageNumber
- PageSize
- ContractId
- CustomerId
- IsCredit
- IsScheduled
- Status
- Type
- CollectionDateFrom
- CollectionDateTo
- CreatedAfter
- CreatedBefore
}
Responses
200OK
response body:
{
- Pagination {
- Page
- PageSize
- TotalPages
- TotalRecords
} - Data [ {
- Amount
- Comment
- Date
- Id
- IsAdhoc
- IsCredit
- ReasonCode
- ReasonMessage
- Status
- Type
} ]
}
400Bad RequestBad Request — invalid status/type value, or pageSize exceeds configured maximum.
403ForbiddenForbidden - This contract cannot be used in API. When contract is protected.
500Internal Server ErrorInternal Server Error - An unexpected error occurred while processing the request.
Example request
Endpoint
POST /client/{clientCode}/paymentsRequest body
{
"PageNumber": 1,
"PageSize": 100,
"ContractId": "00000000-0000-0000-0000-000000000000",
"CustomerId": "00000000-0000-0000-0000-000000000000",
"IsCredit": false,
"IsScheduled": false,
"Status": "Indemnity Claimed",
"Type": "Credit",
"CollectionDateFrom": "YYYY-MM-DDT00:00:00.000Z",
"CollectionDateTo": "YYYY-MM-DDT00:00:00.000Z",
"CreatedAfter": "YYYY-MM-DDT00:00:00.000Z",
"CreatedBefore": "YYYY-MM-DDT00:00:00.000Z"
}cURL
curl -L -g -X POST 'https://ddcms.accesspaysuite.com/api/v3/client/{clientCode}/payments' \
-H 'apiKey: {apiKey}' \
-H 'Content-Type: application/json' \
--data-raw '{"PageNumber":1,"PageSize":100,"ContractId":"00000000-0000-0000-0000-000000000000","CustomerId":"00000000-0000-0000-0000-000000000000","IsCredit":false,"IsScheduled":false}'Response
HTTP/1.1 200 OK
{
"Pagination": {
"Page": 1,
"PageSize": 100,
"TotalPages": 5,
"TotalRecords": 499
},
"Data": [
{
"Id": "c36ce83c-0064-4c1e-a157-cd4c70decf47",
"Amount": 9.99,
"Comment": "Monthly payment",
"Date": "2019-08-01T00:00:00.000Z",
"IsAdhoc": false,
"IsCredit": false,
"ReasonCode": null,
"ReasonMessage": null,
"Status": "Paid",
"Type": "Regular"
}
]
}HTTP/1.1 400 Bad Request
{
"ErrorCode": 3,
"Detail": "Invalid status value",
"Message": "Validation error"
}HTTP/1.1 403 Forbidden
{
"ErrorCode": 0,
"Detail": null,
"Message": "This contract cannot be used in API."
}HTTP/1.1 500 Internal Server Error
{
"Message": "An unexpected error occurred while processing the request."
}