Update Qualification Session
Keep a qualification session in sync with your own records after you’ve created it. Attach your internal user identifier, store free-form metadata, and adjust the redirect URLs a customer returns to once they finish qualifying.
Request Notes
idempotency_keymakes retries safe: a duplicate POST with the same key against the same qualification session is deduplicated and returns the original response, while reusing a key with a different payload returns a400validation error.user_idis set-when-null only: you can supply it while the qualification session has nouser_idyet, but attempting to overwrite a non-null value returns the documenteduser_id_already_seterror code. Stale-value corrections must route through Truemed support, not this endpoint.metadatais a JSON-encoded string echoing the same convention used by the create endpoint.success_urlandfailure_urlare still stored when supplied, but have no effect once the qualification session reaches a terminal status (approved/rejected) — the customer has already completed the flow and won’t be redirected again.
Response Notes
statusis a read-only passthrough — qualification-session status is never mutable via this endpoint. Status changes occur through the survey-submission and LMN-clinical-review flows.
Authentication
Sales channel API key for merchant server-to-server authentication
Path parameters
Request
Where Truemed sends the customer when they opt out of HSA/FSA or do not qualify in the survey. If omitted, the current failure URL is unchanged. In an iframe, Truemed returns this URL in the completion message instead of navigating. Has no effect once the qualification session reaches a terminal status.
Optional metadata string (JSON-encoded by convention).
Your stable, opaque identifier for the shopper. Can only be set when the qualification session does not already have one — attempting to overwrite an existing value returns the user_id_already_set error. To correct a previously set value, contact Truemed support.
Response
The qualification_session_id that was updated (echoed from the path param).
Current status summary of the qualification session. This endpoint does not change the status.
One of:
pending— The session was created; the shopper hasn’t completed the survey yet.processing— The shopper completed the survey and it is under review.approved— The shopper holds a valid Letter of Medical Necessity covering the items in this order.rejected— The shopper is ineligible for a Letter of Medical Necessity for the items in this order.