201Successful Response
Schema: SuccessEnvelope_MergeCounterpartiesResponse_
successbooleanmessagestringcodestringdataMergeCounterpartiesResponse
/api/v1/counterparty-naming/mergeEvery transaction that currently displays one of the source names gets target_name as its stored name, marked user-edited so re-syncs keep it. Rows renamed by hand to some other name are never touched. Each row keeps its registry link unless the target names a registry entry (target_registry_id, or the entry whose canonical name is exactly target_name), which every merged row then links to. Saved renames make future transactions display the target too: one per registry entry involved and one per raw name of the unlinked rows.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: MergeCounterpartiesRequest
sourcesarray · CounterpartyRefrequiredCounterpartyRefGroups to fold into the target.
counterparty_namestringrequiredregistry_idstringtarget_namestringrequiredName every merged transaction gets.
target_registry_idstringRegistry entry the merged transactions should link to. Pass the registry_id of the chosen canonical group when it is linked; omit to leave the merged transactions unlinked.
Schema: SuccessEnvelope_MergeCounterpartiesResponse_
successbooleanmessagestringcodestringdataMergeCounterpartiesResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.