On This Page
pilot
Order of API Requests
This diagram illustrates the order in which your AI agent can send API requests.
Figure:
Order of API Requests
- Your AI agent sends anenroll a cardrequest when a new customer creates an account on your website and enrolls a payment card to tokenize. After the request is sent, the customer must verify their identity to activate a tokenized card. For more information, see Enroll a Card.
- Your AI agent sends aninitiate a purchase intentrequest when the customer submits a purchase intent using your website's AI capabilities. For more information, see Initiate a Purchase Intent.
- (Optional) If the customer updates their purchase intent, your AI agent sends anupdate a purchase intentrequest. For more information, see Update a Purchase Intent.
- (Optional) If the customer chooses tonotmake a purchase after submitting a purchase intent, your AI agent sends acancel purchase intentrequest. For more information, see Cancel a Purchase Intent.
- Your AI agent sends aretrieve payment credentialsrequest when the customer chooses a purchase intent option and chooses the tokenized card they want to use. For more information, see Retrieve Payment Credentials.
- After your AI agent uses your payment system to process the transaction, your AI agent sends aconfirm transaction eventsrequest to verify that the purchase is complete. For more information, see Confirm Transaction Events.