Skip to content

Preview or apply many payer mappings at once

POST/api/v1/payliance/payer-mappings/bulk

Map several payers to credit lines by account holder name.

Request Body:

  • items: each names the payer (payer_name, optional account_last4) and the line (credit_line_id, or line_ref matched exactly)
  • apply: false previews; true maps, and only when every row resolves
  • link_waiting: with apply, also link the mapped payers' debits that are already waiting (default false)

Response: each row that maps says how many of the payer's debits wait and their amount (waiting_rows, waiting_amount_cents), and the response totals them, so a preview shows the size before anything links.

Effect: an apply saves the mappings; later debits link at sync. Debits already waiting stay unlinked (waiting_unlinked) unless link_waiting is true: then they are linked in the background, as for one payer (link_scheduled_payers), audited against the person or the credit:mapping API key. A recorded link is not undone by removing the mapping.

Note: same rules and access as mapping one payer.

Operation ID: bulk_map_payliance_payers·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

itemsarray · PaylianceBulkMapItemrequiredPaylianceBulkMapItem
5 fields
rowinteger

The row number to report back (file row for CSV).

payer_namestringrequired

The account holder name exactly as Payliance reports it.

account_last4string

Optional check: the payer's bank account last 4.

credit_line_idstring
line_refstring

The line's external line id, external merchant id or merchant name, matched exactly (case aside); it must name exactly one line.

applyboolean

false previews; true maps, only when every row resolves.

link_waitingboolean

With apply: also link the newly mapped payers' debits that are already waiting, in the background. Off unless sent: preview first, which says how many there are and their amount.

Responses

201Successful Response

successboolean
messagestring
codestring
dataPaylianceBulkMapResponse

400Bad Request - Invalid input

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

401Unauthorized - Missing or expired token, an MCP OAuth token used against the REST API, or no access to this business

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

403Forbidden - Insufficient permissions

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.

422Validation Error

errorstringrequired

Error category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.

messagestringrequired

Human-readable explanation, safe to show to end users.

codestringrequired

Stable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).

request_idstring

Correlation id for support requests. Echoes the x-request-id request header when one was supplied.

errorsobject

Field-level validation messages keyed by field name. Present on 400/422 validation failures only.