ワンクリックで
betterness-purchases
Lab test purchases — payment methods, buy with saved card, or Stripe Checkout.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Lab test purchases — payment methods, buy with saved card, or Stripe Checkout.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Browse and search available lab tests with prices and included markers.
Search the Betterness knowledge library — files and videos via OpenSearch full-text search.
Install, uninstall, and manage Betterness MCP server integrations for AI clients (Claude, Cursor, Windsurf).
Manage authentication — OAuth login, API key login, logout, and verify identity.
Read, update, and explore the user's health profile questionnaire (sections, questions, answers).
Shared reference: auth, global flags, output formats, and security rules for the Betterness CLI.
| name | betterness-purchases |
| version | 1.0.0 |
| description | Lab test purchases — payment methods, buy with saved card, or Stripe Checkout. |
| metadata | {"category":"service","requires":{"bins":["betterness"]}} |
PREREQUISITE: Read
../betterness-shared/SKILL.mdfor auth, global flags, and security rules.
betterness purchases <command> [flags]
purchases payment-methodsList saved payment methods (credit/debit cards).
betterness purchases payment-methods --json
Returns: brand, last4, expiresAt, active, externalId
purchases buyPurchase a lab test using a saved payment method.
# Preview
betterness purchases buy --test-key TK-abc --payment-method-id pm-123 --dry-run --json
# Execute
betterness purchases buy --test-key TK-abc --payment-method-id pm-123 --json
# With promo code
betterness purchases buy --test-key TK-abc --payment-method-id pm-123 --promo-code SAVE20 --json
| Option | Description |
|---|---|
--test-key <key> | Required. Lab test object key (from lab-tests list) |
--payment-method-id <id> | Required. Payment method external ID (from payment-methods) |
--promo-code <code> | Promotion code |
--dry-run | Preview what would be purchased without executing |
purchases checkoutGenerate a Stripe Checkout payment link (for users without saved cards).
# Preview
betterness purchases checkout --test-key TK-abc --success-url https://app.betterness.com/success --cancel-url https://app.betterness.com/cancel --dry-run --json
# Execute
betterness purchases checkout --test-key TK-abc --success-url https://app.betterness.com/success --cancel-url https://app.betterness.com/cancel --json
| Option | Description |
|---|---|
--test-key <key> | Required. Lab test object key |
--success-url <url> | Required. Redirect URL after successful payment |
--cancel-url <url> | Required. Redirect URL if checkout is cancelled |
--promo-code <code> | Promotion code |
--dry-run | Preview the checkout request without executing |
Returns: checkoutUrl, testName, originalPrice, finalPrice, discount, promotionCode
Agent rule: Always use --dry-run first for purchases. Confirm amount and test name with the user before executing.
payment-methods first — if the user has a saved card, use buy. Otherwise, use checkout for a Stripe payment link.test-key comes from betterness lab-tests list --json (objectKey field).betterness lab-orders initialize before scheduling.