Appearance
Destination account invalid
HTTP 422 destination_account_invalid
What it means
The account being paid doesn't exist or can't receive payments.
What to do
Look the business up by its handle with GET /v1/accounts/lookup before paying it, and check the id.
The response
json
HTTP/1.1 422
Content-Type: application/problem+json
{
"type": "https://docs.txgold.money/errors/destination_account_invalid",
"title": "Destination account invalid",
"status": 422,
"code": "destination_account_invalid",
"detail": "…",
"requestId": "7219af94e39d"
}Branch on code, never on title or detail: the code never changes once published, and the text may. Quote requestId to TxGold support. See all errors.
