Betterness
Bett-iDocsTutorialsAboutAugmented Wellness

Overview

Trust

Resources

System

Get Started

Clients

Recipes

Tools

Reference

DocsMCPToolsPurchases

Purchase Tools

List payment methods, buy with a saved card, or generate Stripe Checkout.

listSavedPaymentMethods

Returns saved cards: externalId, brand, last4, expiresAt, isDefault. If the user has no Stripe customer or no saved cards, returns an empty list with a message.

Parameters: none

purchaseLabTest

Purchases a lab test using a saved card. Use when listSavedPaymentMethods returned at least one card.

ParameterRequired
labTestObjectKeyyes (from listAvailableLabTests)
paymentMethodExternalIdyes (from listSavedPaymentMethods)
promotionCodeno

Before calling:

  • getProfile() — verify gender, phone (with dial code), birth date, complete home address. updateProfile if needed.
  • Confirm test name, price, and selected card with the user. The purchase is charged immediately.

The order is created and auto-initialized in one call (when profile is complete).

purchaseLabTestWithCheckout

Generates a Stripe Checkout payment link when the user has no saved cards.

ParameterRequired
labTestObjectKeyyes
successUrlyes — where to redirect after payment
cancelUrlyes — where to redirect on cancel
promotionCodeno

Share the complete checkoutUrl with the user. Never truncate. The order is created via webhook after payment completes.

Common errors

ErrorCause
Profile incompleteMissing required fields — fix with updateProfile
Invalid labTestObjectKeyUse the exact value from listAvailableLabTests
Promo code invalid / expiredTry without the promo or get an updated code
Lab ResultsHealth Profile
© 2026 Betterness Inc.
Privacy PolicyTerms of ServiceHealth Data