wire_own_account: Own-account mode stores no wire destination

A payee tried to register a wire payout destination (POST /payee/v1/destinations with rail: "wire") on a deployment whose ramps run in own-account mode. In own-account mode the payee's own provider account pays the off-ramp out to the payee's own bank account, so this deployment stores no wire destination and has no provider to check one with. Nothing was recorded (fail closed).

An own-account off-ramp does not need one: report it at POST /payee/v1/offramps with the payin transaction, and its record answers destination: null.

What to do

On the wire

HTTP 409.

{
  "error": "invalid_destination",
  "reason": "wire_own_account",
  "detail": "own-account off-ramps pay out from the payee's own provider account; this deployment stores no wire destination (fail closed, nothing recorded)"
}

See ramps and all error codes.