For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HomeGuidesAPI Reference
HomeGuidesAPI Reference
  • API Reference
      • GETGet Qualification Session Details
      • GETList Qualification Sessions
      • POSTUpdate Qualification Session
      • POSTQualification Session Complete Webhook
LogoLogo
API ReferenceQualification Sessions

Update Qualification Session

POST
/api/v1/qualification_session/:qualification_session_id/update
POST
/api/v1/qualification_session/:qualification_session_id/update
1import requests
2
3url = "https://dev-api.truemed.com/api/v1/qualification_session/qualification_session_id/update"
4
5payload = { "idempotency_key": "update-session-20240601-001" }
6headers = {
7 "x-truemed-api-key": "<apiKey>",
8 "Content-Type": "application/json"
9}
10
11response = requests.post(url, json=payload, headers=headers)
12
13print(response.json())
1{
2 "qualification_session_id": "qs_9f8b7c6d-1234-4e56-8a9b-0c1d2e3f4a5b",
3 "status": "pending"
4}
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_key` makes 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 a `400` validation error. - `user_id` is set-when-null only: you can supply it while the qualification session has no `user_id` yet, but attempting to overwrite a non-null value returns the documented `user_id_already_set` error code. Stale-value corrections must route through Truemed support, not this endpoint. - `metadata` is a JSON-encoded string echoing the same convention used by the create endpoint. - `success_url` and `failure_url` are 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 - `status` is 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.
Was this page helpful?
Previous

Qualification Session Complete Webhook

Next
Built with

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_key makes 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 a 400 validation error.
  • user_id is set-when-null only: you can supply it while the qualification session has no user_id yet, but attempting to overwrite a non-null value returns the documented user_id_already_set error code. Stale-value corrections must route through Truemed support, not this endpoint.
  • metadata is a JSON-encoded string echoing the same convention used by the create endpoint.
  • success_url and failure_url are 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

  • status is 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

x-truemed-api-keystring

Sales channel API key for merchant server-to-server authentication

Path parameters

qualification_session_idstringRequired
The qualification session ID from the URL path.

Request

Request body for UpdateQualificationSessionRequest
idempotency_keystringRequired<=255 characters
A unique key for safely retrying the request, scoped to this qualification session. Duplicate POSTs with the same key against the same qualification session are deduplicated and return the original response.
failure_urlstring or nullOptional<=2048 characters
Optional failure redirect URL. Has no effect once the qualification session reaches a terminal status.
metadatastring or nullOptional<=4096 characters

Optional metadata string (JSON-encoded by convention).

success_urlstring or nullOptional<=2048 characters
Optional success redirect URL. Has no effect once the qualification session reaches a terminal status.
user_idstring or nullOptional<=255 characters

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

Successful response
qualification_session_idstring

The qualification_session_id that was updated (echoed from the path param).

statusenum
Current status summary of the qualification session. This endpoint does not change the status.
Allowed values:

Errors

400
Bad Request Error
404
Not Found Error
405
Method Not Allowed Error
500
Internal Server Error
501
Not Implemented Error