Simulate a USDT deposit for a sell order (sandbox only)
Sandbox only. Behaves as if the USDT for this sell order arrived on chain, so you can test your integration end to end without sending any. Attach the transaction hash to the order first with PATCH /v1/orders/{id}. The body may be empty: the order's own amount is used. A different amount sends the order to review. Not available in production: the route answers 404 there.
Authorization
partner-key In: header
Path Parameters
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
curl -X POST "https://example.com/v1/simulations/orders/string/usdt-receipt" \ -H "Content-Type: application/json" \ -d '{}'{ "orderId": "a1b2c3d4-0000-4000-8000-000000000002", "receipt": { "amount": "10.000000", "txHash": "9f2b6c1d0a7e4f3b8c5d2e1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c", "outcome": "matched" }, "orderStatus": "awaiting_approval", "walletFunded": true, "message": "Receipt matched. The order has moved on from awaiting_usdt; poll GET /v1/orders/{id}."}Simulate a payment into a customer account (sandbox only) POST
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.
Send N transfers under one confirmation POST
A loop over POST /v1/transfers behind a single confirmation code (spec §2.3). Each item is validated exactly as a single transfer would be; a failed item is reported with its refusal reason and the rest proceed. Nothing reaches the bank until the one code is verified via POST /v1/confirmations/:id, unless OnLink has enabled confirmation waiving for your account and, in production, the API key has an IP allowlist, in which case the batch is returned already confirmed and is executed immediately.