Restrict account
Relevant webhooks
For this endpoint be sure you have registered for these webhooks:
API reference
Restricts an account from defined transactions. A restriction is a flexible way to prevent transactions that contain certain criteria from posting to an account. This is useful in scenarios such as freezing an account that has been compromised.
To restrict all subaccounts of a master account, set appliesTo to SubAccounts and do not supply a value for subAccountNumber.
To restrict a master account together with all its subaccounts, set appliesTo to All and do not supply a value for subAccountNumber.
Payments that fail to post to a Cross River account and are returned will not be visible to you.
Endpoint: v1/dda/accounts/{accountNumber}/restrictions
POST
https://sandbox.crbcos.com/core/v1/dda/accounts/{accountNumber}/restrictions
curl --location --globoff 'https://sandbox.crbcos.com/core/v1/dda/accounts/2394312736/restrictions' \
--data '{
"transactionCode": "Incoming ACH",
"transactionType": "Debit",
"appliesTo": "Account",
"reason": "Account Freeze"
}'