Payezydevelopers
Sandbox

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

  • Permissionplatform:customer_operate
  • NoteStaging and sandbox only. Production returns not_found.

Parameters

ParameterWhat it does
platformOrgIdpath, uuidrequiredYour platform's organization id. platformOrgId is the platform response's org_id.
customerOrgIdpath, uuidrequiredcustomerOrgId is the customer response's org_id.
accountIdpath, uuidrequiredThe Payezy account id from list accounts.

Request body

FieldWhat it does
amountstringrequiredAmount as a decimal string in major units, such as dollars.
railenumrequiredHow the money moves. Send one of the values this field allows. One of: ach, wire, fednow.

One of ach wire fednow

Response 202

Simulation requested; the deposit arrives via partner webhooks

FieldWhat it does
referencestringrequiredPartner reference, bank trace number, or the id returned when a deposit simulation is accepted.

Events it causes

Errors to handle

CodeWhat it means and what to do
simulation_rejected422The sandbox partner refused the simulated deposit.

Check the amount and rail and try again.

simulator_unavailable422The sandbox simulator cannot run for this account (for example in production).

Simulators work in the sandbox. Production returns not_found.

simulator_unknown_account409The account has no virtual account at the sandbox partner yet.

Wait for the account to finish opening after approval, then retry.

no_virtual_account409this account has no active deposit details yet

Every error is a Problem document. Branch on code; quote request_id to support.