Skip to content

Part of HMO patients and claims

Your sandbox dashboard ​

In short

Once Arrowhead approves you, signing in opens your dashboard: Go live in four steps. Make a client secret and a signing secret, set your webhook, then press Run All Tests. Live credentials come from Arrowhead after every test passes, on a run that is not out of date.

Who: Approved developers.

The developer dashboard

The menu on the left names your organisation, says whether you signed up as an HMO or a software vendor and when you were approved, and has the dashboard's parts: Overview (everything on one page), API Keys, Webhooks, Conformance Tests (with how many pass, "1/9"), API Calls and Go Live. On a phone the menu is a row across the top. The top bar shows Sandbox and your initials: press them for Sign Out.

Everything in the sandbox is made-up: enrollees, claims and cover checks. Nothing you do here reaches a real pharmacy or patient.

Where you are on the way to live ​

Under Go live in four steps, one bar in four parts shows where you are: green for a step done, orange for the one you are on.

  1. Approved, with the date Arrowhead approved you.
  2. Set up your sandbox, with how many of its 4 items are done.
  3. Pass the 9 tests: "not run yet", "running · 4 of 9", "new run required" (the last run is out of date), a failed run's score, or "9 of 9" and the date it passed.
  4. Live credentials, from Arrowhead once the tests pass.

Request Live Credentials, at the top, stays off until all 9 tests pass on a run that is not out of date. Then it opens an email to Arrowhead, who issues them.

Set up your sandbox ​

Beside the tests are two cards, API keys and Webhook. The 4 items the second step counts are the client ID, a client secret, a signing secret and a webhook. The eligibility endpoint is optional and is not counted.

  1. Client ID is fixed. Press Copy to copy it. Your system sends it with the client secret to get a token.
  2. Beside Client secret, press Generate… (or Roll Secret… once you have one), then Generate Client Secret. The secret is shown once: press Copy, store it, then press Done. Generating a new one stops the old one, and tokens got with it, at once. The secret Arrowhead's approval made is one nobody knows, so this reads "Not generated" until you generate your own.
  3. On the Webhook card, press Set Webhook…, type the https address where your system receives notices, and press Save. Once set, the card shows the address with Copy and Change…, when a notice was last delivered and how many failed this week. Stop Notices, in Change…, clears it. Three tests need a webhook.
  4. Beside Signing secret, press Generate… (or Roll Secret…). Scepter360 signs every notice it sends you with this secret, so your system can tell a real notice from a forged one. It is also shown once.
  5. Eligibility endpoint · optional: if your system answers cover checks itself, press Set… and type its https address. The counter then asks it directly instead of sending you a cover-check notice. Press Test to send it a demo cover check and see what it answered; Stop Using Endpoint clears it.

Nobody at Arrowhead can read your secrets back to you. If you lose one, make a new one.

Check your webhook ​

Press Send Test Notice. Scepter360 sends one signed notice about a demo claim and tells you what came back:

  • "Delivered: your webhook responded 200 in 212 ms": it works.
  • "Not delivered: …": the reason follows, for example no answer within 5 seconds, or the status your webhook returned. Fix it and send again.

The button is off until a webhook is set ("Set a webhook first.") and a signing secret is made.

Run the conformance tests ​

Before the first run, the Conformance tests card reads "Tests not run · Up to 30 minutes · set up your sandbox first".

  1. Press Run All Tests. Scepter360 makes fresh demo items in your sandbox and sends their notices to your webhook, including one signed with the wrong secret and one sent twice.
  2. An orange box on the card reads "Tests running · 4 of 9 passing so far" and "Ends 09:44 · make the call each pending test shows", with a clock counting down the time left. Have your system do its work against the sandbox: get a token, fetch and decide the claim, record the payment, answer the cover check. Results update every 10 seconds.
  3. Watch the tests. They are grouped by what they need: Calls to the API (5), Cover checks (1) and Notices to your webhook (3, which need a webhook). Under each test's name, in monospace, is the call it waits for, with the claim or cover check this run made, for example GET /fhir/Claim/01a2…. On the right each reads Passed, Failed or Waiting for your call.
  4. Press a failed test to open it. It shows why it failed, in red; the refused call, if your system made one during the run (its status, method and path); the request the endpoint expects; and a link to the endpoint in the API reference.

A call counts only if it is made after the run starts. A token your system got before you pressed Run All Tests still works, but Get a token with your client credentials waits for a new one.

A run is judged for 30 minutes, or ends sooner when all pass. Starting a new run ends the one before. When all 9 pass, a green banner reads "All 9 tests pass · ready to go live" and "Ready for live credentials from Arrowhead".

The two tests developers most often fail are Reject a webhook with a bad signature (answer 401, not 200, when the signature doesn't match your signing secret) and Ignore a repeated event ID (keep the event IDs you have seen, and do nothing the second time).

When the results are out of date ​

A run's results describe your set-up as it was when the run started. If after that you make a client or signing secret, or set, change or stop your webhook or eligibility endpoint, an amber banner reads These results are out of date. It names the run and what you changed, for example "Run 12 Nov 19:02 · since then: new secrets, webhook stopped." The 3 notice tests read Out of date, with what they ran against ("Passed with the webhook you’ve since stopped."); so does the cover check when you changed the eligibility endpoint.

Press Run All Tests on the banner to run them again. Arrowhead can't turn you live on an out-of-date run, even one where every test passed.

Recent calls ​

Press API Calls in the menu. Recent calls is a table of your system's last 10 calls to the sandbox, newest first: the time, the method, the path, the status and how long it took. A row tinted red (a status of 400 or above) is a call the sandbox refused; the response body your system got says why. Press Errors to see only those, and All to see every call again.

If something goes wrong ​

  • "Generate your sandbox client secret first." Press Generate… beside Client secret, then run the tests.
  • "Use an https address on the public internet." A webhook or eligibility endpoint must be https, and reachable from outside your network: not localhost, and not a private address.
  • "That address can’t be found." The host name doesn't resolve. Check the spelling, and that the address is published.
  • "Set a webhook address and a signing secret, then run the tests again." under a notice test: three of the nine tests are about notices, so they fail until both are set.
  • You are sent back to sign-in: your 8 hours are up, or Arrowhead has withdrawn your approval. Sign in again.

Can’t find what you need? Ask your branch manager, or Arrowhead support.