API reference / Act as a platform
Simulate a customer's deposit
POST/v1/platforms/{platformOrgId}/customers/{customerOrgId}/accounts/{accountId}/simulate-deposit
Acts on a linked customer with the platform's own key or team (platform:customer_operate). Same as POST /v1/orgs/{orgId}/accounts/{accountId}/simulate-deposit. Staging and sandbox only. Production returns not_found. Asks the partner's test environment to send funds to the account's virtual account.
When to use it
On staging and sandbox, to fund the customer without moving real money. Production returns not_found. Try-it calls the sandbox only.
Before you call it
- Permission
platform:customer_operate - NoteStaging and sandbox only. Production returns not_found.
Parameters
| Parameter | What it does |
|---|---|
platformOrgIdpath, uuidrequired | Your platform's organization id. platformOrgId is the platform response's org_id. |
customerOrgIdpath, uuidrequired | customerOrgId is the customer response's org_id. |
accountIdpath, uuidrequired | The Payezy account id from list accounts. |
Request body
| Field | What it does |
|---|---|
amountstringrequired | Amount as a decimal string in major units, such as dollars. |
railenumrequired | How the money moves. Send one of the values this field allows. One of: ach, wire, fednow. One of |
Response 202
Simulation requested; the deposit arrives via partner webhooks
| Field | What it does |
|---|---|
referencestringrequired | Partner reference, bank trace number, or the id returned when a deposit simulation is accepted. |
Events it causes
Errors to handle
| Code | What it means and what to do |
|---|---|
simulation_rejected422 | The sandbox partner refused the simulated deposit. Check the amount and rail and try again. |
simulator_unavailable422 | The sandbox simulator cannot run for this account (for example in production). Simulators work in the sandbox. Production returns not_found. |
simulator_unknown_account409 | The account has no virtual account at the sandbox partner yet. Wait for the account to finish opening after approval, then retry. |
no_virtual_account409 | this account has no active deposit details yet |
Every error is a Problem document. Branch on code; quote request_id to support.