pilot

Order of API Requests

This diagram illustrates the order in which your AI agent can send API requests.

Figure:

Order of API Requests
  1. Your AI agent sends an
    enroll a card
    request 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.
  2. Your AI agent sends an
    initiate a purchase intent
    request when the customer submits a purchase intent using your website's AI capabilities. For more information, see Initiate a Purchase Intent.
  3. (Optional) If the customer updates their purchase intent, your AI agent sends an
    update a purchase intent
    request. For more information, see Update a Purchase Intent.
  4. (Optional) If the customer chooses to
    not
    make a purchase after submitting a purchase intent, your AI agent sends a
    cancel purchase intent
    request. For more information, see Cancel a Purchase Intent.
  5. Your AI agent sends a
    retrieve payment credentials
    request when the customer chooses a purchase intent option and chooses the tokenized card they want to use. For more information, see Retrieve Payment Credentials.
  6. After your AI agent uses your payment system to process the transaction, your AI agent sends a
    confirm transaction events
    request to verify that the purchase is complete. For more information, see Confirm Transaction Events.