cpy_*) in your Sandbox account, with the same events a live call produces.
Pick the outcome with the amount
Sandbox never reads a card number to decide an outcome. The cents of the intent amount select it:1000 is 10.07 and declines. A declined session stays in the call, so you can create a new session on the same intent and try again.
From the dashboard
Open Voice in the Sandbox dashboard and choose Simulate outcome. Set the amount, press Start, and the results panel shows the session, the payment, and the events as they land. Test call, which places a real audio call from your browser, is coming.From the API
Three requests, all against your Sandbox base URL with a Sandbox API key.1. Create the payment intent
cURL
pmi_* id from the response.
2. Create the voice session
cURL
vos_* id. The session is now awaiting a call.
3. Simulate the call
POST /simulations/voice/sessions/{voiceSessionId}/call plays the caller and the agent on the server. Natural consumes the session’s dial slot, submits a server-owned test card, and applies the outcome the amount selects.
cURL
Idempotency-Key answers 409. Replaying the same key returns the stored result.
Acting for a customer? Pass their party ID as customerPartyId when creating the intent, and as merchantPartyId when creating the session and when simulating the call.
Read the result back like any other voice payment: GET /payment-intents/{paymentIntentId} reads completed with "channel": "voice", and GET /voice/sessions/{voiceSessionId} shows the session. Call facts such as duration and who hung up stay null because no audio call took place.
From your own phone system
To test the audio path, create the intent and the session as above and dialdialUri from your own SIP platform. Before the first call:
- Email hi@natural.com the public IP ranges your Sandbox platform signals from, and any
returnTargetyou transfer back to. - Place the call over SIP with TLS on port 5061, before
dialExpiresAt. - Read the amount’s cents from the table above to choose the outcome. The card you read to the agent can be any test card.