Taking the payment for a customer? Pass their party ID as
customerPartyId when creating the
intent and as merchantPartyId when creating the session.Create the voice session
Voice sessions are tied to payment intents. First create a payment intent for the full total. The charge captures exactly that amount. Use the payment intent to create a voice session viaPOST /voice/sessions.
cURL
callerPhone lets Natural text the caller a checkout link if their card is refused.
returnTarget is the SIP URI Natural sends the caller back to when the call ends, whatever the
outcome; leave it out and Natural hangs up instead. Natural places a new call to that URI, so
put your own call identifier in it to route the caller back to the right agent.
Transfer the caller
Place one SIP call todialUri before dialExpiresAt, 15 minutes from creation. Natural’s
agent names the business, reads the total, and takes the card by speech or keypad. When the
call ends, the agent transfers the caller to your returnTarget.
A session accepts one call. If the transfer fails or the window passes, create a new session
for the same intent.
Read the result
Read the intent withGET /payment-intents/{paymentIntentId}.
A paid intent reads completed, and its cardPayment carries the card brand, last four, and
"channel": "voice".
cURL