Skip to main content
Sandbox, Lead’s test system, has two v2 calls that production doesn’t: one moves an object you created to a status you name, and one triggers an event that would come from outside Lead. This page has both calls, their rules, and the errors they return. You need them as soon as a test creates something that would move on its own in production. A funding is one example: in production, Lead moves it to posted when the money reaches your account number. In sandbox nothing moves by itself, so you move your own objects between statuses and trigger what other banks would do. To get credentials and make your first call, see Set up sandbox. On v1, sandbox has a separate endpoint for each event, listed on Sandbox Setup. v2 replaces them with at most one call of each kind per product, and the move call lets you name the status you want instead of only taking the next one.

Advance and simulate calls

Both calls take the product’s name as {domain} in the path, such as fundings or card_network_settlements: Both calls are under /v2/simulate, which marks them as sandbox-only, so on this page “simulate” means the second call only. Neither returns the object itself. To see what changed, retrieve the object, or wait for its webhook where the status sends one, as you would in production.

Rules for both calls

  • A new object stays in its first status until you move it. Each advance call makes one supported transition. The product’s Test and go live page lists the transitions.
  • What sandbox can do is listed as endpoints and scenario values in the API reference, under Simulations (for example Simulate Advance Funding).
  • To cancel or return a payment, call the same endpoint you’d call in production. The simulate call is only for what another bank or a network does.
  • Send an Idempotency-Key header on every call under /v2/simulate, whether or not the endpoint’s reference page marks it required. See Idempotency.
  • Calls under /v2/simulate work only in sandbox. In production they return 404. Keep them out of production code.

Test and go live pages

A Test and go live page lists the statuses you can move a product’s objects to, the events you can trigger, and a test run in order. For other products, see the API reference, for example Simulate a Card Network Settlement. The Note at the top of each product’s pages says whether the product is in sandbox yet.

Errors

Every error uses the v2 error body. The top-level code tells you the kind of problem, and errors, when it’s present, lists each specific one. For which fields you can build on, see Errors. For every v2 error code, see Errors.