OnLink
API reference

Simulate a payment into a customer account (sandbox only)

Sandbox only. Behaves as if a payer sent USD to this customer’s own US bank details, so you can test your integration end to end without sending real money. The customer needs an active USD account with its own bank details, and must have been created in the sandbox. The deposit then takes the same path a real one does: it is held for review if the customer is suspended or closed, and otherwise credited to the account, and you are told by customer.deposit.received or customer.deposit.held. Answers 202 with a simulationId: the deposit is requested, not made yet, and usually appears within two minutes. Each request is a new payer, so do not retry a 202. No real money moves. Not available in production: the route answers 404 there.

POST
/v1/simulations/customers/{customerId}/deposits

Authorization

partner-key
X-OnLink-Key<token>

In: header

Path Parameters

customerId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/simulations/customers/string/deposits" \  -H "Content-Type: application/json" \  -d '{    "currency": "USD",    "amount": "25.00"  }'
{  "customerId": "a1b2c3d4-0000-4000-8000-000000000003",  "currency": "USD",  "simulationId": "6f1c2d9e-3b7a-4c51-9d0e-2a8b7c6d5e4f",  "message": "Simulated deposit requested. It usually appears within two minutes: the customer.deposit.received webhook (or customer.deposit.held, when the deposit is held for review) tells you what became of it, and the account balance follows. No real money moves."}