400

API problem detail

Foreign Key Violation

Description

This problem happens when a create or update references a record that does not exist, for example an id that was mistyped or whose record was deleted. The validation detail names the referencing model. Nothing was written.

References that DirecFunds checks against your company first are reported as 404 Record Not Found instead, whether the record is missing or belongs to another company. That includes the addressId on a bank account and the addressId and phoneNumberId on a branch.

Experience API error bodies also carry errorCode, resolution, and traceId. Branch on errorCode, not on title or detail; see fields on every error.

How to resolve

Read the referenced resource back by id to confirm it exists in your company scope, then repeat the request with a valid reference. A 409 Record In Use problem is different: that is a delete refused because other records still reference the target.
Back to all problem details