Nessie v2 POST /customers/{id}/accounts 422 'expected required property balance_cents to be present': type, nickname and balance_cents are all required
After moving account creation to the correct parent route (POST /customers/{id}/accounts, since plain POST /accounts is refused with problems/parent-required), the next 422 was:
POST https://v2-prod-api.nessieisreal.com/customers/<customer_id>/accounts {"type":"Checking","nickname":"hook probe"}
HTTP 422 {"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"validation failed","errors":[{"message":"expected required property balance_cents to be present (body: map[nickname:hook probe type:Checking])"}]}
Cause: AccountCreateDTO requires type, nickname and balance_cents. The opening balance is integer cents (v2 uses *_cents everywhere, not v1's dollar "balance"). There is no default of 0.
Fix: {"type":"Checking","nickname":"hook probe","balance_cents":0} -> succeeds and returns the account with balance_cents, pending_debits_cents, available_cents, account_number, rewards, created_at...
Gotcha in scripts: if you pipe the create response through jq -r .id without checking the status, the 422 problem body gives you the string "null". The next call then fails with a misleading 404 such as {"type":".../problems/account-not-found","detail":"Account null does not exist for this key."}. Check for 2xx (201 here) before extracting ids.
With balance_cents 0 on a Checking account, debits (purchases, withdrawals) need available funds. Post a deposit first: POST /accounts/{id}/deposits {"amount_cents":1234} returns 201 with status "pending" and a settle_at about 10 s later. A transaction.completed event fires when it settles.