Improved
Cancel a transfer, reversed and cancelled statuses, a fraud reserve, an own person role, revenue fees and KYB link events
5 days ago by Roots
Breaking: transfers gain two statuses, cancelled and reversed; a fraud reserve below its minimum refuses transfers with 400 insufficient_fraud_reserve; POST /billing/move-from-revenue requires an Idempotency-Key; a person created without a role no longer defaults to customer, and graph_node is replaced by null; webhook envelopes no longer carry client_id. Also added: cancelling a transfer, bank return codes, reserve moves, revenue fees, four hosted KYB link webhooks, and a new link for the Postman collection with sandbox test scenarios.
Breaking changes
cancelledis a new transferstatus.- It appears in
GET /transfers,GET /transfers/{transfer_id}, the list'sstatusfilter and thetransfer.status.changedwebhook. - It is terminal and moves no money.
failureisnull, the held funds go back toavailable_minor, and a fee already charged is not refunded.cancelled_atsays when. status_detailsays where it was stopped:cancelled_before_submission(the bank never had it) orcancelled_at_bank(the bank confirmed your cancel).- Withdrawals only. See Cancel a transfer.
- It appears in
reversedis a new transferstatus.- The bank pulled back an ACH withdrawal that had already settled. The amount is back in the source account, the fee is not refunded,
settled_atstays set andreversed_atsays when. - ACH withdrawals only: a wire the bank takes back is a return. A reversal can arrive days after settlement.
failureis set on a reversed transfer, withcodereversed_by_bank.- Treat an unknown
statusas a prompt to read the transfer, not as an error. See Track transfer status.
- The bank pulled back an ACH withdrawal that had already settled. The amount is back in the source account, the fee is not refunded,
POST /transfersand its approval can return400insufficient_fraud_reserve.- Only for clients Roots asks to hold a fraud reserve, and only while it is below the minimum.
detailgives the balance, the requirement and the shortfall. - Reading the reserve and rejecting a transfer are never refused. See When a reserve is blocked.
- Only for clients Roots asks to hold a fraud reserve, and only while it is below the minimum.
POST /billing/move-from-revenuerequires anIdempotency-Keyheader. Without one the request is422validation. See Idempotency.- A person's
roleiscustomer,ownornull;graph_nodeis gone.POST /personsno longer defaultsroletocustomer. Omitting it, or sendingnull, creates a person with no role, who only sits in a business's ownership and control structure and cannot own an account. Send"role": "customer"explicitly for every end customer.- Persons that read
graph_nodenow readrole: null. Sendinggraph_nodeon create, update or therolefilter ofGET /personsis still read as no role, but is due to be refused: sendnullinstead. ownis your own business. Only a business can beown, andcustomerandownpersons can own an account.- A person with no role can be given one later with
PATCH /persons/{person_id};customerandownnever change. See Persons and associations.
- Webhook deliveries no longer carry
client_idin the envelope. Each event is delivered only to your own endpoints. See Webhooks and events.
Changes
POST /transfers/{transfer_id}/cancelcancels a withdrawal before it settles. It needstransfers:createand anIdempotency-Key, and only the identity that created the transfer can cancel it. After the bank has the transfer the cancel is a request: the response stayssubmittedwithstatus_detailcancel_requestedandcancel_requested_atset, until the bank confirms. Once sent, only ACH and same-day ACH can be cancelled.cancelableon the transfer says whether a cancel is worth trying. Two409codes:transfer_not_cancelable(never; do not retry) andtransfer_cancel_unavailable(not yet; retry in a few seconds).failure.return_codeandfailure.return_descriptionon areturnedtransfer carry the bank's return code and reason. Every ACH return code (44) and Fedwire return reason (22) is listed: ACH return codes, Wire return codes. Returns and reversals arrive astransfer.status.changed; their fee arrives as its ownfee.charged: Fees on a return or reversal.- Fraud reserve and reserve moves.
GET /fraud-reservereturns the reserve against its minimum and astatusofok,loworblocked.GET /funding-accountsreturns where to send a top-up of your billing balance and fraud reserve.POST /reserves/movemoves your money betweenrevenue,billingandfraud, down to each reserve's minimum (reserve_below_minimum); a client whose money is at more than one bank gets409multi_bank_move_unsupported.GET /billingaddsbilling_available_to_move_minorandrevenue_available_to_move_minor. In sandbox,POST /sandbox/fraud-reserve/depositstops up the fraud reserve. See Manage your billing balance and fraud reserve. reserve.lowwebhook fires once each time your billing balance or fraud reserve gets worse (ok→low,ok→blocked,low→blocked).billing.balance.lowstill fires as before.- Revenue fees.
PUT /fee-rules/{code}creates your own fee on your customers, or saves its next version; your customer pays it into your revenue. It can price a deposit, a withdrawal or an internal transfer. Turn it off withactive: false. Fee rules carrykind,billing(Roots' price) orrevenue(yours). On abillingrule whose Roots price you pay, your markup must be at least that price at every amount (400otherwise). - Your first activation is free. Its fees are recorded as
skippedwithskip_reasonfirst_activation: Fees. Roots' fee rules can also pricecounterparty.created,transfer.returnedandtransfer.reversed, andGET /fees/summaryaddsby_day. - Hosted KYB link webhooks:
person.onboarding_link.submitted,person.onboarding_link.review_failed,person.onboarding_link.parties_clearedandperson.onboarding_link.parties_blocked, for the KYB form you send a business customer from the Client Portal. See Event types. - Non-US businesses can be onboarded, and a business takes a
naics_code: Onboard a business end customer. regulatory_licenseis a new document type for a business's license to operate. It is stored and meets no review requirement: Upload documents.- Opening an account answers
409conflictwhen no bank your client is set up with is taking new accounts, and a customer's accounts all open at one bank: Manage accounts. - New error codes:
operation_disabled(403, Roots has turned the operation off for every client; try later) andscreening_in_progress(409, retry shortly): Errors. - The Postman collection has a new link. Open the Roots API collection or select Run in Postman on Postman; the previous link no longer opens. A copy you forked or imported earlier keeps working but does not update, so fork or import it again. Its quickstart creates the business with
"role": "customer"and funds throughPOST /sandbox/billing/depositsandPOST /sandbox/deposits. A new Sandbox test scenarios folder drives every sandbox test value and checks its outcome: Run the sandbox test scenarios.