Skip to main content
POST
Create payment configuration for an organisation

Authorizations

X-Auth-Token
string
header
required

Access token obtained from OAuth2 client credentials flow

X-Org-Id
string
header
required

Organisation to scope the request to. Required when the principal can access more than one organisation; optional for single-organisation principals (the authorizer resolves it automatically).

Headers

Request-Id
string

Optional. Your id for this request: it is carried into every log line about it, so quote it when you contact support.

Path Parameters

payrollConfigId
string
required

The pay schedule (payroll configuration) the settings are for.

Body

application/json

A pay schedule's payment configuration, as created.

method
string
required

Payment method, as listed by GET /available/config.

Example:

"BACS"

format
string
required

Payment format within the method, as listed by GET /available/config.

Example:

"Barclays"

fileFormat
string | null
default:txt

Optional. txt when left out. Use csv only when listed in supportedFileFormats for this method and format.

Example:

"csv"

reference
string | null

Single reference expression. Supports static text and tokens in any order: {payDate}, {payPeriodStart}, {payPeriodEnd}, {year}, {period}, {frequency}, {separator:space}, {separator:dash}, {separator:underscore}, {separator:slash}, {separator:custom:}.

Example:

"Payroll May 2024"

referenceDateFormat
enum<string> | null
default:DMY_SLASH

Date format applied to date tokens ({payDate}, {payPeriodStart}, {payPeriodEnd}). DMY_COMPACT (01022026), DMY_SLASH (01/02/2026), YMD_DASH (2026-02-01), MDY_SLASH (02/01/2026), DMY_DASH (01-02-2026), DMY_DOT (01.02.2026). When none is set, DMY_SLASH applies.

Available options:
DMY_COMPACT,
DMY_SLASH,
YMD_DASH,
MDY_SLASH,
DMY_DASH,
DMY_DOT,
null
Example:

"DMY_SLASH"

bacs
object | null

The BACS source bank account and service user number the files are written for.

Example:
fileLayout
object | null

The file's layout, for the Custom format only, where it is required. Its extension is the file format.

Example:

Response

Payment configuration created.

The envelope every answer is written in.

message
object
required

What happened, as text and as a token for translation.

content
object

The answer's data and how to read it. Left out when there is none.

validationIssues
object[] | null

One entry per field the request got wrong. Left out when there are none.