{
  "id": "ku_a9cf9cd2eb8ce065ab476698a238ac9a",
  "version": 1,
  "domains": [
    "stripe",
    "agentic-commerce",
    "checkout",
    "processor"
  ],
  "insight": {
    "summary": "The first resolve worked; a retry, or a resolve after a PaymentIntent used the token, answers 400.",
    "detail": "You can resolve an SPT one time. Stripe also answers 400 when your account has no credential configuration, or when it cannot turn the payment method into a usable credential. Without a PCI Attestation of Compliance on file, credentials in PCI scope come back encrypted to a key you do not hold.",
    "action": "Resolve once and keep the result with the order. On a retry, read your stored credential, not the API. Choose Stripe or your processor per token, never both."
  },
  "context": {
    "languages": [
      "shell"
    ],
    "pattern": "single-use"
  },
  "evidence": {
    "confidence": 0.85,
    "confirmations": 1,
    "first_observed": "2026-12-02T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "Stripe 400 when resolving a shared payment token for another processor: it was already resolved or used",
    "neomorphic:signature": {
      "surface": "payments-platform",
      "provider": "stripe",
      "code": "spt-already-resolved",
      "http": 400,
      "versions": "Stripe-Version 2026-09-30.preview",
      "environment": "agentic commerce, third-party processor",
      "key": "payments-platform/stripe/spt-already-resolved"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Resolve once and keep the result with the order. On a retry, read your stored credential, not the API. Choose Stripe or your processor per token, never both.",
      "snippet": {
        "lang": "sh",
        "text": "curl -X POST https://api.stripe.com/v1/shared_payment/granted_tokens/spt_123/resolve \\\n  -u \"$STRIPE_SECRET_KEY:\" -H 'Stripe-Version: 2026-09-30.preview'\n# store the response with the order id; a second resolve answers 400"
      }
    },
    "neomorphic:sources": [
      {
        "kind": "doc",
        "url": "https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens",
        "observed_at": "2026-12-02",
        "note": "Shared payment tokens, Handle errors: 400 when there is no credential configuration, the SPT was resolved before, or it was used in a PaymentIntent; Meet PCI requirements."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-12-02",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
