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
- Keep the bank account in your own provider account and pay out from there (
OwnAccountOffRamp.payout(payin, amount, bankAccountId)in@dynamoprotocol/payee-kit/ramps), then report the off-ramp. - On a deployment whose ramps run in operator mode, the wire rail registers the bank account and the provider checks it.
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.