{"openapi":"3.1.0","info":{"title":"Scepter360 HMO Connect API","version":"1.0","summary":"Fetch claims, answer cover checks and approvals, and record payments through one FHIR R4 API.","description":"Connect your HMO system to Scepter360 pharmacies. You keep your own software.\n\n## Getting started\n1. **Sign up for the sandbox** on the developer site. Arrowhead approves you, usually within a working day, and emails you.\n2. **Sign in** with the emailed link and make your sandbox client secret. Your sandbox has demo enrollees, claims and a cover check.\n3. **Make your first calls:** get a token (`POST /oauth/token`), then `GET /fhir/Claim?status=active`.\n4. **Set your webhook address** and check each notice’s signature (below).\n5. **Run the conformance tests** (9, judged for 30 minutes). When they all pass, Arrowhead issues live credentials.\n\n## Money\nAmounts are naira, as FHIR `Money` with `currency: \"NGN\"`, to the kobo (two decimal places). A claim’s `total` is what is claimed from you: the listed price less the patient’s co-pay (extension `patient-copay`).\n\n## Patient identification\nOnly by their enrollee ID with you (`patient.identifier`). Scepter360 never sends a patient’s name, phone or address, and never keeps a copy of your member list.\n\n## Signatures\nEvery notice to your webhook, and every live cover check to your eligibility endpoint, carries `X-Scepter-Timestamp` and `X-Scepter-Signature: t=<timestamp>,v1=<hex>`, where hex is HMAC-SHA256 of `<timestamp>.<body>` with your signing secret. Refuse (401) any whose signature doesn’t match or whose timestamp is more than 5 minutes old.\n\n## Notices\nAnswer 200 within 5 s. Otherwise we try again after 1 min, 5 min, 30 min, 2 h, 12 h, 24 h, then give up and tell Arrowhead. A notice names what to fetch, never the data: fetch it with your token. Notices may come twice or out of order: ignore event IDs you’ve seen, and read the resource’s current state. Anything you missed is in `GET /events?since=`.\n\n## Live cover checks\nIf you have an eligibility endpoint, we ask it at the pharmacy counter (a CoverageEligibilityRequest) and wait up to 15 s for your CoverageEligibilityResponse. Without an answer in time, the pharmacy calls you.\n\n## Rate limits\n120 calls a minute per client to the FHIR API and `/events`; 20 token requests a minute (a token lasts an hour: keep it). Over the limit: 429 with `Retry-After`.","contact":{"name":"Arrowhead Network team","url":"https://developers.scepter360.com"}},"servers":[{"url":"https://api.inventory.scepter360.com","description":"Live, and your sandbox (your client decides which)"}],"security":[{"oauth2":[]}],"tags":[{"name":"Authentication","description":"Get an access token with your client ID and secret."},{"name":"Claims","description":"The claims pharmacies send you."},{"name":"Claim responses","description":"Approve, part-approve, query or reject a claim."},{"name":"Payments","description":"Record what you paid, against the claims it pays."},{"name":"Cover checks","description":"Answer a pharmacy’s question: is this enrollee covered?"},{"name":"Events","description":"Catch up on the notices you may have missed."},{"name":"Metadata","description":"What this FHIR server does."}],"x-conformance-tests":[{"id":"get_token","name":"Get a token with your client credentials"},{"id":"fetch_claim","name":"Fetch a claim with an OAuth token"},{"id":"decide_claim","name":"Decide a claim with a ClaimResponse"},{"id":"idempotency_key","name":"Send every write with an Idempotency-Key"},{"id":"record_payment","name":"Record a payment for listed claims"},{"id":"answer_cover_check","name":"Answer a cover check within 15 s"},{"id":"answer_notice","name":"Answer a notice with 200 within 5 s"},{"id":"reject_bad_signature","name":"Reject a webhook with a bad signature"},{"id":"ignore_repeated_event","name":"Ignore a repeated event ID"}],"x-error-codes":[{"code":"unauthenticated","status":401,"meaning":"No valid access token: get one from POST /oauth/token.","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"validation_failed","status":400,"meaning":"The body or a parameter isn’t right; `details.text` says which and why.","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"not_found","status":404,"meaning":"Not one of yours, or not there. Another HMO’s claim is never found.","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"conflict","status":409,"meaning":"Already decided, already answered, or already recorded (a payment reference).","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"hmo_credit_limit","status":409,"meaning":"Your credit limit with Arrowhead is reached: new fills are paused.","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"idempotency_key_invalid","status":400,"meaning":"Idempotency-Key must be a UUID.","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"idempotency_key_reused","status":422,"meaning":"That Idempotency-Key was used for a different request.","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"rate_limited","status":429,"meaning":"More than 120 calls (or 20 tokens) a minute: wait for Retry-After.","system":"https://fhir.scepter360.com/CodeSystem/error"},{"code":"internal_error","status":500,"meaning":"Something went wrong on our side; try again.","system":"https://fhir.scepter360.com/CodeSystem/error"}],"x-code-systems":{"claim":"https://fhir.scepter360.com/sid/claim-number","enrollee":"https://fhir.scepter360.com/sid/hmo-enrollee","accreditation":"https://fhir.scepter360.com/sid/hmo-accreditation","prescription":"https://fhir.scepter360.com/sid/prescription-number","nafdac":"https://fhir.scepter360.com/sid/nafdac-number","nhia":"https://fhir.scepter360.com/sid/nhia-number","atc":"http://www.whocc.no/atc","rejectionReason":"https://fhir.scepter360.com/CodeSystem/rejection-reason"},"x-rejection-reasons":["not_covered_on_date","over_plan_limit","check_too_old","no_prescription","other"],"paths":{"/oauth/token":{"post":{"tags":["Authentication"],"operationId":"getAccessToken","summary":"Get an access token","description":"OAuth 2.0 client credentials (RFC 6749 §4.4): in the form, or as HTTP Basic. The token lasts an hour; a new client secret ends every token made with the old one.","security":[],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["grant_type"],"properties":{"grant_type":{"const":"client_credentials"},"client_id":{"type":"string","example":"hmo_crestline_7Qm2"},"client_secret":{"type":"string","example":"hcs_…"}}}}}},"responses":{"200":{"description":"A token.","content":{"application/json":{"example":{"access_token":"eyJhbGciOi…","token_type":"Bearer","expires_in":3600,"scope":"live"}}}},"400":{"description":"Not client credentials.","content":{"application/json":{"example":{"error":"unsupported_grant_type","error_description":"Use grant_type=client_credentials with your client ID and secret."}}}},"401":{"description":"Wrong client ID or secret.","content":{"application/json":{"example":{"error":"invalid_client","error_description":"That client ID and secret don’t match. Ask Arrowhead for a new secret."}}}},"429":{"description":"More than 20 a minute.","content":{"application/json":{"example":{"error":"rate_limited","error_description":"Keep the token for its hour."}}}}}}},"/fhir/metadata":{"get":{"tags":["Metadata"],"operationId":"getCapabilityStatement","summary":"The CapabilityStatement","security":[],"responses":{"200":{"description":"What this server does."}}}},"/fhir/Claim":{"get":{"tags":["Claims"],"operationId":"listClaims","summary":"Your claims","description":"`status=active` (the default) is what waits on you: sent, queried, answered, appealed. `cancelled` is the withdrawn; `all`, everything. Oldest first.","parameters":[{"name":"status","in":"query","schema":{"enum":["active","cancelled","all"],"default":"active"}},{"name":"_count","in":"query","schema":{"type":"integer","maximum":100,"default":50}},{"name":"_offset","in":"query","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"A searchset Bundle, with a `next` link while there are more.","content":{"application/fhir+json":{"schema":{"type":"object"},"example":{"resourceType":"Bundle","type":"searchset","total":1,"link":[{"relation":"self","url":"https://api.inventory.scepter360.com/fhir/Claim?status=active&_count=50&_offset=0"}],"entry":[{"fullUrl":"https://api.inventory.scepter360.com/fhir/Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11","resource":{"resourceType":"Claim","id":"0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11","meta":{"lastUpdated":"2026-11-05T09:12:40.000Z"},"extension":[{"url":"https://fhir.scepter360.com/StructureDefinition/claim-workflow-status","valueCode":"sent"},{"url":"https://fhir.scepter360.com/StructureDefinition/claim-kind","valueCode":"network"},{"url":"https://fhir.scepter360.com/StructureDefinition/patient-copay","valueMoney":{"value":640,"currency":"NGN"}}],"identifier":[{"system":"https://fhir.scepter360.com/sid/claim-number","value":"CL-30418"}],"status":"active","type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/claim-type","code":"pharmacy"}]},"use":"claim","patient":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"}},"created":"2026-11-05T09:12:40.000Z","insurer":{"display":"Crestline HMO","identifier":{"system":"https://fhir.scepter360.com/sid/nhia-number","value":"NHIA/HMO/0045"}},"provider":{"display":"Medivale Pharmacy, Wuse 2 Branch","identifier":{"system":"https://fhir.scepter360.com/sid/hmo-accreditation","value":"CRH-PH-0091"}},"priority":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/processpriority","code":"normal"}]},"prescription":{"identifier":{"system":"https://fhir.scepter360.com/sid/prescription-number","value":"RX-W2-018866"}},"insurance":[{"sequence":1,"focal":true,"coverage":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"},"display":"Gold Family"},"preAuthRef":["CRH-A-88214"]}],"item":[{"sequence":1,"productOrService":{"coding":[{"system":"https://fhir.scepter360.com/sid/nafdac-number","code":"A4-0377"},{"system":"http://www.whocc.no/atc","code":"J01DD04"}],"text":"Ceftriaxone 1 g (Rocephin)"},"servicedDate":"2026-11-05","quantity":{"value":2},"unitPrice":{"value":3200,"currency":"NGN"},"net":{"value":6400,"currency":"NGN"}}],"total":{"value":5760,"currency":"NGN"}},"search":{"mode":"match"}}]}}}},"401":{"description":"Send a valid access token from POST /oauth/token as Authorization: Bearer.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"login","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"unauthenticated"}],"text":"Send a valid access token from POST /oauth/token as Authorization: Bearer."},"diagnostics":"Send a valid access token from POST /oauth/token as Authorization: Bearer."}]}}}},"429":{"description":"More than 120 calls in a minute. Wait a minute, then go on.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"throttled","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"rate_limited"}],"text":"More than 120 calls in a minute. Wait a minute, then go on."},"diagnostics":"More than 120 calls in a minute. Wait a minute, then go on."}]}}}}}}},"/fhir/Claim/{id}":{"get":{"tags":["Claims"],"operationId":"getClaim","summary":"One claim","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The claim, as it is now.","content":{"application/fhir+json":{"schema":{"type":"object"},"example":{"resourceType":"Claim","id":"0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11","meta":{"lastUpdated":"2026-11-05T09:12:40.000Z"},"extension":[{"url":"https://fhir.scepter360.com/StructureDefinition/claim-workflow-status","valueCode":"sent"},{"url":"https://fhir.scepter360.com/StructureDefinition/claim-kind","valueCode":"network"},{"url":"https://fhir.scepter360.com/StructureDefinition/patient-copay","valueMoney":{"value":640,"currency":"NGN"}}],"identifier":[{"system":"https://fhir.scepter360.com/sid/claim-number","value":"CL-30418"}],"status":"active","type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/claim-type","code":"pharmacy"}]},"use":"claim","patient":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"}},"created":"2026-11-05T09:12:40.000Z","insurer":{"display":"Crestline HMO","identifier":{"system":"https://fhir.scepter360.com/sid/nhia-number","value":"NHIA/HMO/0045"}},"provider":{"display":"Medivale Pharmacy, Wuse 2 Branch","identifier":{"system":"https://fhir.scepter360.com/sid/hmo-accreditation","value":"CRH-PH-0091"}},"priority":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/processpriority","code":"normal"}]},"prescription":{"identifier":{"system":"https://fhir.scepter360.com/sid/prescription-number","value":"RX-W2-018866"}},"insurance":[{"sequence":1,"focal":true,"coverage":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"},"display":"Gold Family"},"preAuthRef":["CRH-A-88214"]}],"item":[{"sequence":1,"productOrService":{"coding":[{"system":"https://fhir.scepter360.com/sid/nafdac-number","code":"A4-0377"},{"system":"http://www.whocc.no/atc","code":"J01DD04"}],"text":"Ceftriaxone 1 g (Rocephin)"},"servicedDate":"2026-11-05","quantity":{"value":2},"unitPrice":{"value":3200,"currency":"NGN"},"net":{"value":6400,"currency":"NGN"}}],"total":{"value":5760,"currency":"NGN"}}}}},"404":{"description":"Claim not found.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"not_found"}],"text":"Claim not found."},"diagnostics":"Claim not found."}]}}}}}}},"/fhir/ClaimResponse":{"post":{"tags":["Claim responses"],"operationId":"decideClaim","summary":"Decide a claim","description":"`outcome`: `complete` approves (in full, or in part with a `benefit` total less than the claim); `partial` approves part (the benefit total is required); `queued` asks the pharmacy a question; `error` rejects. A question or a rejection says why in `disposition`; a rejection also names its reason in `error[].code` (`x-rejection-reasons`, system `rejection-reason`), or counts as `other`.\n\nSend an `Idempotency-Key` (a UUID): the same key gets the first answer again, with `Idempotency-Replayed: true`.","security":[{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object"},"examples":{"approve":{"summary":"Approve in full","value":{"resourceType":"ClaimResponse","request":{"reference":"Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"},"outcome":"complete"}},"partApprove":{"summary":"Approve part of it, with why","value":{"resourceType":"ClaimResponse","request":{"reference":"Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"},"outcome":"partial","disposition":"Over the plan limit for antibiotics this month","total":[{"category":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/adjudication","code":"benefit"}]},"amount":{"value":4500,"currency":"NGN"}}]}},"query":{"summary":"Ask the pharmacy a question","value":{"resourceType":"ClaimResponse","request":{"reference":"Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"},"outcome":"queued","disposition":"Send the prescriber’s MDCN number"}},"reject":{"summary":"Reject, with why","value":{"resourceType":"ClaimResponse","request":{"reference":"Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"},"outcome":"error","disposition":"Not a member on the date of the fill","error":[{"code":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/rejection-reason","code":"not_covered_on_date"}]}}]}}}}}},"responses":{"201":{"description":"Recorded.","content":{"application/fhir+json":{"schema":{"type":"object"},"example":{"resourceType":"ClaimResponse","request":{"reference":"Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"},"outcome":"complete","id":"0193f6b0-1a2b-7c3d-8e4f-5a6b7c8d9e0f","status":"active","total":[{"category":{"coding":[{"code":"benefit"}]},"amount":{"value":5760,"currency":"NGN"}}]}}}},"400":{"description":"outcome is complete, partial, queued (a question) or error (rejected).","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"validation_failed"}],"text":"outcome is complete, partial, queued (a question) or error (rejected)."},"diagnostics":"outcome is complete, partial, queued (a question) or error (rejected)."}]}}}},"404":{"description":"Claim not found.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"not_found"}],"text":"Claim not found."},"diagnostics":"Claim not found."}]}}}},"409":{"description":"This claim is already paid.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"conflict","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"conflict"}],"text":"This claim is already paid."},"diagnostics":"This claim is already paid."}]}}}},"429":{"description":"More than 120 calls in a minute. Wait a minute, then go on.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"throttled","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"rate_limited"}],"text":"More than 120 calls in a minute. Wait a minute, then go on."},"diagnostics":"More than 120 calls in a minute. Wait a minute, then go on."}]}}}}}}},"/fhir/PaymentReconciliation":{"post":{"tags":["Payments"],"operationId":"recordPayment","summary":"Record a payment","description":"Your payment’s reference, the day it was paid, its amount and the claims it pays, which must add up. A claim paid all that is open on it is `paid`; less, `part_paid`. A reference already recorded is a conflict.\n\nSend an `Idempotency-Key` (a UUID): the same key gets the first answer again, with `Idempotency-Replayed: true`.","security":[{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object"},"examples":{"payment":{"summary":"One claim paid in full","value":{"resourceType":"PaymentReconciliation","status":"active","paymentIdentifier":{"value":"PAY-CR-1108"},"paymentDate":"2026-11-04","paymentAmount":{"value":5760,"currency":"NGN"},"detail":[{"request":{"reference":"Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"},"amount":{"value":5760,"currency":"NGN"}}]}}}}}},"responses":{"201":{"description":"Recorded.","content":{"application/fhir+json":{"schema":{"type":"object"},"example":{"resourceType":"PaymentReconciliation","status":"active","paymentIdentifier":{"value":"PAY-CR-1108"},"paymentDate":"2026-11-04","paymentAmount":{"value":5760,"currency":"NGN"},"detail":[{"request":{"reference":"Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"},"amount":{"value":5760,"currency":"NGN"}}],"id":"0193f6b2-3c4d-7e5f-8a6b-7c8d9e0f1a2b","outcome":"complete","disposition":"Recorded against 1 claim."}}}},"400":{"description":"outcome is complete, partial, queued (a question) or error (rejected).","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"validation_failed"}],"text":"outcome is complete, partial, queued (a question) or error (rejected)."},"diagnostics":"outcome is complete, partial, queued (a question) or error (rejected)."}]}}}},"404":{"description":"Claim not found.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"not_found"}],"text":"Claim not found."},"diagnostics":"Claim not found."}]}}}},"409":{"description":"This claim is already paid.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"conflict","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"conflict"}],"text":"This claim is already paid."},"diagnostics":"This claim is already paid."}]}}}},"429":{"description":"More than 120 calls in a minute. Wait a minute, then go on.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"throttled","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"rate_limited"}],"text":"More than 120 calls in a minute. Wait a minute, then go on."},"diagnostics":"More than 120 calls in a minute. Wait a minute, then go on."}]}}}}}}},"/fhir/CoverageEligibilityRequest":{"get":{"tags":["Cover checks"],"operationId":"listCoverChecks","summary":"Cover checks waiting on you","description":"Checks a pharmacy made that wait for your answer (less than a day old), oldest first.","responses":{"200":{"description":"A searchset Bundle.","content":{"application/fhir+json":{"schema":{"type":"object"},"example":{"resourceType":"Bundle","type":"searchset","total":1,"entry":[{"resource":{"resourceType":"CoverageEligibilityRequest","id":"0193f6a2-9e10-7a55-8c02-3b7d1e6f9a20","status":"active","purpose":["validation","benefits"],"patient":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"}},"created":"2026-11-05T09:10:02.000Z","insurer":{"display":"Crestline HMO"},"provider":{"display":"Grace Pharmacy, Utako Branch","identifier":{"system":"https://fhir.scepter360.com/sid/hmo-accreditation","value":"CRH-PH-0042"}},"insurance":[{"focal":true,"coverage":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"},"display":"Gold Family"}}]}}]}}}}}}},"/fhir/CoverageEligibilityRequest/{id}":{"get":{"tags":["Cover checks"],"operationId":"getCoverCheck","summary":"One waiting cover check","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The check.","content":{"application/fhir+json":{"schema":{"type":"object"},"example":{"resourceType":"CoverageEligibilityRequest","id":"0193f6a2-9e10-7a55-8c02-3b7d1e6f9a20","status":"active","purpose":["validation","benefits"],"patient":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"}},"created":"2026-11-05T09:10:02.000Z","insurer":{"display":"Crestline HMO"},"provider":{"display":"Grace Pharmacy, Utako Branch","identifier":{"system":"https://fhir.scepter360.com/sid/hmo-accreditation","value":"CRH-PH-0042"}},"insurance":[{"focal":true,"coverage":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"},"display":"Gold Family"}}]}}}},"404":{"description":"No such check is waiting on you.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"not_found"}],"text":"No such check is waiting on you."},"diagnostics":"No such check is waiting on you."}]}}}}}}},"/fhir/CoverageEligibilityResponse":{"post":{"tags":["Cover checks"],"operationId":"answerCoverCheck","summary":"Answer a cover check","description":"`insurance[0].inforce` true is covered, with any approval code in `preAuthRef`, the plan’s name and the benefit left as `allowedMoney`; false is not covered, with why in `disposition`.\n\nSend an `Idempotency-Key` (a UUID): the same key gets the first answer again, with `Idempotency-Replayed: true`.","security":[{"oauth2":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/fhir+json":{"schema":{"type":"object"},"examples":{"covered":{"summary":"Covered, with an approval code and the benefit left","value":{"resourceType":"CoverageEligibilityResponse","request":{"reference":"CoverageEligibilityRequest/0193f6a2-9e10-7a55-8c02-3b7d1e6f9a20"},"outcome":"complete","preAuthRef":"CRH-A-88214","insurance":[{"inforce":true,"coverage":{"display":"Gold Family"},"item":[{"benefit":[{"allowedMoney":{"value":85000,"currency":"NGN"}}]}]}]}},"notCovered":{"summary":"Not covered, with why","value":{"resourceType":"CoverageEligibilityResponse","request":{"reference":"CoverageEligibilityRequest/0193f6a2-9e10-7a55-8c02-3b7d1e6f9a20"},"outcome":"complete","disposition":"Membership lapsed on 31 Oct","insurance":[{"inforce":false}]}}}}}},"responses":{"201":{"description":"Recorded.","content":{"application/fhir+json":{"schema":{"type":"object"},"example":{"resourceType":"CoverageEligibilityResponse","id":"0193f6b4-5e6f-7a8b-9c0d-1e2f3a4b5c6d","status":"active","outcome":"complete","insurance":[{"inforce":true}],"preAuthRef":["CRH-A-88214"]}}}},"400":{"description":"outcome is complete, partial, queued (a question) or error (rejected).","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"validation_failed"}],"text":"outcome is complete, partial, queued (a question) or error (rejected)."},"diagnostics":"outcome is complete, partial, queued (a question) or error (rejected)."}]}}}},"404":{"description":"Claim not found.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"not_found"}],"text":"Claim not found."},"diagnostics":"Claim not found."}]}}}},"409":{"description":"This claim is already paid.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"conflict","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"conflict"}],"text":"This claim is already paid."},"diagnostics":"This claim is already paid."}]}}}},"429":{"description":"More than 120 calls in a minute. Wait a minute, then go on.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"throttled","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"rate_limited"}],"text":"More than 120 calls in a minute. Wait a minute, then go on."},"diagnostics":"More than 120 calls in a minute. Wait a minute, then go on."}]}}}}}}},"/events":{"get":{"tags":["Events"],"operationId":"listEvents","summary":"What you may have missed","description":"Your events after `since`, oldest first, up to 100 (`_count`). Ask again with `since` the `last` you got; `more` says there are more now.","parameters":[{"name":"since","in":"query","description":"An event ID, not a time: the `last` from your previous call.","schema":{"type":"string","example":"evt_7720"}},{"name":"_count","in":"query","schema":{"type":"integer","maximum":100}}],"responses":{"200":{"description":"Events.","content":{"application/json":{"example":{"data":[{"id":"evt_7731","type":"claim.submitted","createdAt":"2026-11-05T09:12:40.000Z","resource":{"type":"Claim","id":"0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11","url":"https://api.inventory.scepter360.com/fhir/Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"}}],"last":"evt_7731","more":false}}}},"400":{"description":"since is an event ID, e.g. evt_7720.","content":{"application/fhir+json":{"schema":{"$ref":"#/components/schemas/OperationOutcome"},"example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"invalid","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"validation_failed"}],"text":"since is an event ID, e.g. evt_7720."},"diagnostics":"since is an event ID, e.g. evt_7720."}]}}}}}}}},"webhooks":{"notice":{"post":{"summary":"A notice to your webhook","description":"Types: `claim.submitted`, `claim.query_answered`, `claim.withdrawn`, `authorisation.requested` (a cover check waits on you). Answer 200 within 5 s; refuse a bad signature with 401.","parameters":[{"name":"X-Scepter-Event-Id","in":"header","schema":{"type":"string","example":"evt_7731"}},{"name":"X-Scepter-Timestamp","in":"header","schema":{"type":"integer","example":1793865160}},{"name":"X-Scepter-Signature","in":"header","schema":{"type":"string","example":"t=1793865160,v1=5f2b…"}}],"requestBody":{"content":{"application/json":{"example":{"id":"evt_7731","type":"claim.submitted","createdAt":"2026-11-05T09:12:40.000Z","resource":{"type":"Claim","id":"0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11","url":"https://api.inventory.scepter360.com/fhir/Claim/0193f6a2-7c41-7d1e-9b3a-5e2f8c0d4a11"}}}}},"responses":{"200":{"description":"Taken (or seen before)."},"401":{"description":"Signature doesn’t match."}}}},"liveCoverCheck":{"post":{"summary":"A live cover check to your eligibility endpoint","description":"Asked at the pharmacy counter, signed like a notice, with the check’s id as `X-Scepter-Request-Id`. Answer with a CoverageEligibilityResponse within 15 s.","requestBody":{"content":{"application/fhir+json":{"example":{"resourceType":"CoverageEligibilityRequest","id":"0193f6a2-9e10-7a55-8c02-3b7d1e6f9a20","status":"active","purpose":["validation","benefits"],"patient":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"}},"created":"2026-11-05T09:10:02.000Z","insurer":{"display":"Crestline HMO"},"provider":{"display":"Grace Pharmacy, Utako Branch","identifier":{"system":"https://fhir.scepter360.com/sid/hmo-accreditation","value":"CRH-PH-0042"}},"insurance":[{"focal":true,"coverage":{"identifier":{"system":"https://fhir.scepter360.com/sid/hmo-enrollee","value":"CRH/0045/2291-A"},"display":"Gold Family"}}]}}}},"responses":{"200":{"description":"Your answer.","content":{"application/fhir+json":{"examples":{"covered":{"summary":"Covered, with an approval code and the benefit left","value":{"resourceType":"CoverageEligibilityResponse","request":{"reference":"CoverageEligibilityRequest/0193f6a2-9e10-7a55-8c02-3b7d1e6f9a20"},"outcome":"complete","preAuthRef":"CRH-A-88214","insurance":[{"inforce":true,"coverage":{"display":"Gold Family"},"item":[{"benefit":[{"allowedMoney":{"value":85000,"currency":"NGN"}}]}]}]}},"notCovered":{"summary":"Not covered, with why","value":{"resourceType":"CoverageEligibilityResponse","request":{"reference":"CoverageEligibilityRequest/0193f6a2-9e10-7a55-8c02-3b7d1e6f9a20"},"outcome":"complete","disposition":"Membership lapsed on 31 Oct","insurance":[{"inforce":false}]}}}}}}}}}},"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.inventory.scepter360.com/oauth/token","scopes":{}}}}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","format":"uuid"}}},"schemas":{"OperationOutcome":{"type":"object","description":"Every error. `issue[0].details.coding[0].code` is one of `x-error-codes`.","example":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"not-found","details":{"coding":[{"system":"https://fhir.scepter360.com/CodeSystem/error","code":"not_found"}],"text":"Claim not found."},"diagnostics":"Claim not found."}]}}}}}