INDEPENDENT THINKING. SHARED PURPOSE.Our global teams ↗
RED STARPHARMASCIENCE WITH PURPOSE

Partner engineering · Clinical operations

From supply record
to regional handoff.

A working guide to retained inventory collections and regional export reviews, for clinical systems and supply operations teams.

01 / Service map

Choose the
right collection.

Collection reconciliation and regional record review are separate workflows. Keep their continuation state separate.

Clinical supply inventory

Use this collection to reconcile retained kit allocations, posted depot movements and shipment-manifest segments. It is a read-only JSON interface: completing a sequence does not reserve stock, release a batch or authorise dispatch.

Open clinical supply inventory →

Regional record review

Use the regional review when a handoff needs an approved retained export. Reconcile the allocation and movement records, then confirm the regional backup. The review returns a record location and a reference to carry into the existing partner integration profile.

Open regional record review →

For workspace ownership and file conventions, consult the regional directory and reference data dictionary.

02 / Inventory collection

Reconcile each
page in context.

Keep the original record identifiers. Values and row order can differ between collection pages.

Start a collection

Send a GET request to the collection endpoint. The initial 409 response is a reconciliation notice containing records and a continuation cursor; it is not a failed transport request. Clients must read its JSON body.

curl --silent --show-error \
  -H 'Accept: application/json' \
  https://inventory.starpharmagroup.com/api/kit-reconciliation

Read detail together with records. Each page states its reconciliation rule: eligible stock, posted movements for the named ledger, or continuity in a manifest segment range. Apply the rule to the current response rather than retaining a previous page's result.

Continue the same sequence

POST JSON to the returned continuation.path on the same inventory hostname. Supply the cursor unchanged, the selected record identifier and an integer value. The following shows the payload shape only; replace the illustrative values with the current page's result.

{
  "cursor": "<continuation.cursor from this page>",
  "record": "<record identifier>",
  "value": 120
}

Use Content-Type: application/json. A successful submission returns 200 and either the next page or {"complete":true,"items":[]}. Follow the returned continuation until completion; do not assume a fixed page count or reuse an earlier cursor for a later page.

An incorrect result returns 409. Recheck the original page and retry with its cursor. Inventory sessions expire one hour after opening; start a new GET if the cursor expires. A POST advances this review sequence only—it does not update an operational stock record.

03 / Regional review

Carry the reference
into the export.

US clinical logistics, European supply coordination and Asia-Pacific site operations maintain their own retained records.

The regional record interface starts with 200 and returns review_reference, review, records, submission, continuation and expires_at. Its payload differs from the inventory collection.

For each step, POST the supplied cursor and an answer object matching that step's submission fields. Preserve identifier spelling and integer types. Continue on the exact returned path; cursors are specific to that review source.

{
  "cursor": "<continuation.cursor from this review>",
  "answer": {
    "<field named by submission>": "<calculated or selected value>"
  }
}

The review asks you to reconcile eligible allocation, posted movement totals and the appropriate retained backup. It expires 30 minutes after opening. The selected region follows our operating-team routing convention; it does not by itself establish a legal data-residency requirement.

Retrieve the retained record

A completed review returns status: ready_for_record_retrieval, the S3 record location and an access section. Use the existing partner integration profile and the returned role sequence. Preserve the review reference as the role session name when retrieving the indicated object.

The review service does not issue AWS credentials. If the partner profile has not been provisioned, use the platform integration notes to identify the workspace owner and diagnostic context. Do not substitute another team's region or request a new export to complete a retained-record review.

04 / Client behaviour

Handle the response,
then continue.

ResponseClient action
200Read the JSON result. Continue if a cursor is returned; otherwise handle the completion or record-retrieval response.
409On the first inventory GET, read the reconciliation page. On a submission, correct the result using the previous response and cursor.
400Check JSON and continuation state. Reopen the appropriate workflow if the cursor is invalid or expired.
405 / 415 / 413Check method, JSON media type and payload size. Keep submissions to the fields requested by the interface.
429 / 503Pause and retry with backoff. Avoid parallel submission of one sequence. Reopen it if the retry outlasts its expiry.
403Record the service hostname and request identifier for support. Do not keep retrying an access failure.

Use HTTPS and the published inventory hostname. The two workflows have independent cursor formats; neither accepts the other's continuation. Avoid logging full response bodies containing cursors or putting continuation values in URLs.

05 / Support handoff

Leave a useful
review trail.

Include the UTC time, service hostname, workflow, response status and x-inventory-request-id response header when raising an integration issue. For a regional export, include the review reference and the source region returned by the service.

Use the workspace runtime manifest when the issue concerns partner platform configuration. Keep its diagnostic metadata separate from credentials, and keep patient information out of support bundles.