Sandbox simulation endpoints for testing Unit integrations.
All sandbox endpoints require a valid Bearer token (same auth as live API).
The sandbox base URL is https://api.s.unit.sh.
Available simulations
- Applications: approve, deny, approve/reject/require-review documents
- Accounts: interest accrual, NSF simulation, statement generation
- Payments: incoming ACH, incoming wire, ACH return, ACH clear
- Cards: authorization, authorization decline, purchase, reversal, ATM
- Check Deposits: clear, reject, return
- Check Payments: process, return
- Credit: credit limit change
- Received Payments: advance
Summary
Functions
Trigger interest accrual on a deposit account.
Advance a received ACH payment (simulate early-access to incoming funds).
Approve an application in the sandbox.
Approve an application document.
Simulate an ATM withdrawal.
Simulate a card purchase authorization (creates a pending Authorization).
Simulate a credit limit change on a credit account.
Simulate an ACH payment clearing (Pending → Sent).
Simulate clearing a check deposit (AwaitingImages → Clearing → Sent).
Simulate a card authorization being declined.
Deny an application in the sandbox.
Generate a monthly statement for an account in sandbox.
Simulate a check payment being processed (New/Pending → Processed).
Simulate a settled card purchase (no authorization step).
Simulate receiving an incoming ACH payment.
Simulate receiving an incoming wire payment.
Simulate rejecting a check deposit.
Reject an application document.
Set an application document to RequireAdditionalReview.
Simulate an ACH payment being returned.
Simulate returning a cleared check deposit.
Simulate a check payment being returned.
Simulate a card reversal.
Simulate an NSF event on an account.
Functions
Trigger interest accrual on a deposit account.
Advance a received ACH payment (simulate early-access to incoming funds).
Required params
:received_payment_id
Approve an application in the sandbox.
Approve an application document.
Simulate an ATM withdrawal.
Required params
:card_id,:amount,:atm_name
Optional
:atm_location,:surcharge
Simulate a card purchase authorization (creates a pending Authorization).
Required params
:card_id,:amount
Optional
:merchant(%{name:, type:, category:, location:}),:recurring,:tags
Simulate a credit limit change on a credit account.
Required params
:credit_account_id,:credit_limit(new limit in cents)
Simulate an ACH payment clearing (Pending → Sent).
Required params
:payment_id
Simulate clearing a check deposit (AwaitingImages → Clearing → Sent).
Required params
:check_deposit_id
Optional
:status—"Clearing"(default) or"Sent"
Simulate a card authorization being declined.
Required params
:card_id,:amount,:reason
Optional
:merchant
Deny an application in the sandbox.
Generate a monthly statement for an account in sandbox.
Simulate a check payment being processed (New/Pending → Processed).
Required params
:check_payment_id
Simulate a settled card purchase (no authorization step).
Required params
:card_id,:amount
Optional
:merchant,:tags
Simulate receiving an incoming ACH payment.
Required params
:account_id,:amount,:direction("Credit"or"Debit"),:description
Optional
:sec_code,:counterparty,:same_day,:tags
Simulate receiving an incoming wire payment.
Required params
:account_id,:amount,:description
Optional
:originating_fi,:tags
Simulate rejecting a check deposit.
Required params
:check_deposit_id,:reason
@spec reject_document(String.t(), String.t(), String.t(), keyword()) :: {:ok, map()} | {:error, term()}
Reject an application document.
Set an application document to RequireAdditionalReview.
Simulate an ACH payment being returned.
Fires the payment.returned webhook and creates a Returned ACH Transaction.
Required params
:payment_id:return_reason_code— e.g."R01"(NSF),"R02"(closed),"R10"(unauthorized)
Simulate returning a cleared check deposit.
Required params
:check_deposit_id,:reason
Simulate a check payment being returned.
Required params
:check_payment_id,:return_reason
Simulate a card reversal.
Required params
:amount:authorization_idOR:transaction_id
Simulate an NSF event on an account.
Required params
:account_id,:amount