# Simulate a customer's deposit

`POST /v1/platforms/{platformOrgId}/customers/{customerOrgId}/accounts/{accountId}/simulate-deposit`

**Simulate a customer's deposit** (Act as a platform). Staging and sandbox only. Production returns `not_found`. Credits the customer without moving real money. Try-it on this site calls the sandbox.

Prerequisite: Permission `platform:customer_operate`. `accountId` comes from list customer accounts.

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.

Requires: permission platform:customer_operate; Staging and sandbox only. Production returns not_found.

## Request body

- `amount` (string, required): Amount as a decimal string in major units, such as dollars.
- `rail` (enum, required): How the money moves. Send one of the values this field allows. One of: ach, wire, fednow. One of ach, wire, fednow.

```json
{
  "amount": "250.00",
  "rail": "ach"
}
```

Events: payment.updated

Errors: simulation_rejected, simulator_unavailable, simulator_unknown_account, no_virtual_account

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/platforms/$PLATFORM_ORG_ID/customers/$CUSTOMER_ORG_ID/accounts/$ACCOUNT_ID/simulate-deposit" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": "250.00",
  "rail": "ach"
}'
```
