CoverMyMeds
Save prior authorization
Save prior authorization in CoverMyMeds
POSThttps://api.ontross.com/api/integrations/covermymeds/save-prior-authorization
Request Fields
input.request_key
string
requiredThe provider-issued identifier for the prior authorization request.
Example
"TEST7K2M"input.expected_lock_version
integer
requiredThe revision from the most recent authorization response.
Example
3input.idempotency_key
string
requiredA caller-generated UUID reused when retrying the same operation.
Example
"3f2504e0-4f89-11d3-9a0c-0305e82c3301"input.answer_updates
array
The answer changes to apply to the authorization request.
input.answer_updates[].question_name
string
Question name from the latest get-prior-authorization response.
Example
"patient_first_name"input.answer_updates[].section_name
string
Containing group identifier from the latest authorization detail response.
Example
"patient"input.answer_updates[].section_index
integer
Zero-based position of the containing question group.
Example
0input.answer_updates[].row_index
integer
Zero-based position of the containing question row.
Example
2input.answer_updates[].value
string
Text, one choice key, or a list of choice keys.
Example
"string"input.answer_updates[].display_text
string
Required when a dropdown has no embedded choices.
Example
"Massachusetts"auth_id
string
requiredSaved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"Output Fields
request_key
string
The provider-issued identifier for the prior authorization request.
Example
"TEST7K2M"lock_version
integer
The resulting revision to use for subsequent changes.
Example
4workflow_status
string
The authorization's processing state after saving the changes.
Example
"draft"replayed
boolean
Whether this response repeats a previously completed operation.
Example
falseCode
curl curl %s %s POST \
--url https://api.ontross.com/api/integrations/covermymeds/save-prior-authorization \
%s %s 'X-API-Key: REPLACE_KEY_VALUE' \
%s %s 'content-type: application/json' \
%s %s '{"input":{"request_key":"TEST7K2M","expected_lock_version":3,"idempotency_key":"3f2504e0-4f89-11d3-9a0c-0305e82c3301","answer_updates":[]},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"request_key": "TEST7K2M",
"expected_lock_version": 3,
"idempotency_key": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
"answer_updates": []
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"request_key": "TEST7K2M",
"lock_version": 4,
"workflow_status": "draft",
"replayed": false
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}