Acknowledge, dismiss or turn an alert into a case
Decides one alert: acknowledge records that it was seen and keeps it in the inbox for a later decision (only from open); dismiss closes it with a reason (not_clinically_relevant, already_managed, data_error); create_case closes it into a case whose purpose follows the finding (a critical result's follow-up, a trend's review, an overdue control, adherence, no-shows, the follow-up of a hospitalization or of a missed red flag) and whose priority is the alert's severity. A closed alert never changes and its finding never alerts again; a later finding about the same subject opens a new alert. The note (what the physician asks for, or why it is dismissed) is kept sealed.
Use it from the inbox after reading the alert with getAlert, with its version. dryRun: true checks and keeps nothing.
Returns the alert with its case, its note and quoted words opened, and the requestKey. Identical retries under the same key return the original decision receipt, after current authority is checked, even when a later decision exists. Reusing a key for different semantic input returns IDEMPOTENCY_CONFLICT. A dry run consumes neither the key nor its receipt. Current reviewed-source status is reported separately from that original result.
Requires the ambar:patients:read and ambar:patients:write scopes, a person (not an agent's service account), and the patient's write grant for care operations.
INVALID_INPUT: malformed body, a reason without dismiss or missing with it, a note with acknowledge, or a note blank or longer than 2,000 characters; fix it. NOT_FOUND: no such alert, or the caller may not change it. CONFLICT: the version is stale (a newer finding refreshed it, or someone decided it), or the alert is closed or already acknowledged; read it again with getAlert. BODY_TOO_LARGE: the note does not fit once sealed; shorten it. ACCESS_DENIED: missing scope or grant, an agent deciding, or clinical privacy not configured for a note or for an alert with quoted words; do not retry.
https://api-ambar.getarbol.com/v1/alerts/decideAuthorization
Request body JSON required
Returns
200
- dataobjectrequired
An alert after a decision.
- alertobjectrequired
The alert as decided (or as it would be, for a dry run).
- alertobjectrequired
The alert.
- findingobjectrequired
What was found about the patient: its kind with the details a physician reads, its severity, its key and references to the facts behind it.
- kindrequired
What was found.
}One of the following:
- object
- codestringrequired
LOINC (or the organization's) code of the result.
- flagnormalorloworhighorcritical_loworcritical_highrequired
critical_loworcritical_high. - typecritical_valuerequired
- object
- codestringrequired
LOINC code of the measurement.
- directionrisingorfallingrequired
The worsening direction.
- firstValuenumberrequired
The first value of the run, in the rule's unit.
format: double - lastValuenumberrequired
The latest value, in the rule's unit.
format: double - measurementsintegerrequired
Results in the run.
format: int32 · minimum: 0 - typetrendrequired
- object
- criticalbooleanrequired
Whether the route marks the requirement as critical.
- labelstringrequired
The requirement's label, as the route writes it.
- requirementintegerrequired
Position of the requirement in the route.
format: int32 · minimum: 0 - routeIdstringrequired
The care route.
- typeoverdue_controlrequired
- daysOverdueoptionalinteger | null
Days since the due date, when known.
format: int32 · minimum: 0 - dueOnoptionalstring | null
The due date, when known.
format: date
- object
- daysWithoutCoverageintegerrequired
Days without coverage, counted from the prescription when nothing was dispensed.
format: int32 · minimum: 0 - medicationobjectrequired
The medication.
- codestringrequired
The code in that system.
- systemCUMorIUMorATCorORGrequired
The code system.
- typerefill_overduerequired
- lastCoveredOnoptionalstring | null
The last day a dispensation covered; absent when nothing was dispensed.
format: date
- object
- daysPendingintegerrequired
Days it has been pending.
format: int32 · minimum: 0 - medicationobjectrequired
The medication.
- codestringrequired
The code in that system.
- systemCUMorIUMorATCorORGrequired
The code system.
- pendingSincestringrequired
When the pharmacy reported it pending.
format: date - typedispensation_pendingrequired
- object
- medicationobjectrequired
The medication.
- codestringrequired
The code in that system.
- systemCUMorIUMorATCorORGrequired
The code system.
- reportedOnstringrequired
When the pharmacy reported it.
format: date - typeout_of_stockrequired
- object
- appointmentIdstringrequired
The missed appointment.
- serviceCodestringrequired
Its service.
- typeno_show_not_rebookedrequired
- object
- countintegerrequired
How many.
format: int32 · minimum: 0 - typerepeated_no_showsrequired
- object
- appointmentIdstringrequired
The missed appointment.
- encounterIdstringrequired
The encounter that explains it.
- typeno_show_hospitalizedrequired
- object
- labelstringrequired
What it means, in Spanish, as the list labels it.
- levelemergencyorurgentornormalrequired
How fast it must reach a person.
- liststringrequired
The signed list, for example
red-flag-lists/cardiovascular.v2. - rolenurseorphysicianorcoordinatorrequired
Who follows it up, as the program's escalation says.
- sourcephraseormodeloragentrequired
How it was heard: a phrase of the list or the model's reading.
- typemissed_red_flagrequired
- findingsarray ofobjectrequired
Every finding admitted into the alert, oldest first; the last is the current one.
- kindrequired
What was found.
}One of the following:
- object
- codestringrequired
LOINC (or the organization's) code of the result.
- flagnormalorloworhighorcritical_loworcritical_highrequired
critical_loworcritical_high. - typecritical_valuerequired
- object
- codestringrequired
LOINC code of the measurement.
- directionrisingorfallingrequired
The worsening direction.
- firstValuenumberrequired
The first value of the run, in the rule's unit.
format: double - lastValuenumberrequired
The latest value, in the rule's unit.
format: double - measurementsintegerrequired
Results in the run.
format: int32 · minimum: 0 - typetrendrequired
- object
- criticalbooleanrequired
Whether the route marks the requirement as critical.
- labelstringrequired
The requirement's label, as the route writes it.
- requirementintegerrequired
Position of the requirement in the route.
format: int32 · minimum: 0 - routeIdstringrequired
The care route.
- typeoverdue_controlrequired
- daysOverdueoptionalinteger | null
Days since the due date, when known.
format: int32 · minimum: 0 - dueOnoptionalstring | null
The due date, when known.
format: date
- object
- daysWithoutCoverageintegerrequired
Days without coverage, counted from the prescription when nothing was dispensed.
format: int32 · minimum: 0 - medicationobjectrequired
The medication.
- codestringrequired
The code in that system.
- systemCUMorIUMorATCorORGrequired
The code system.
- typerefill_overduerequired
- lastCoveredOnoptionalstring | null
The last day a dispensation covered; absent when nothing was dispensed.
format: date
- object
- daysPendingintegerrequired
Days it has been pending.
format: int32 · minimum: 0 - medicationobjectrequired
The medication.
- codestringrequired
The code in that system.
- systemCUMorIUMorATCorORGrequired
The code system.
- pendingSincestringrequired
When the pharmacy reported it pending.
format: date - typedispensation_pendingrequired
- object
- medicationobjectrequired
The medication.
- codestringrequired
The code in that system.
- systemCUMorIUMorATCorORGrequired
The code system.
- reportedOnstringrequired
When the pharmacy reported it.
format: date - typeout_of_stockrequired
- object
- appointmentIdstringrequired
The missed appointment.
- serviceCodestringrequired
Its service.
- typeno_show_not_rebookedrequired
- object
- countintegerrequired
How many.
format: int32 · minimum: 0 - typerepeated_no_showsrequired
- object
- appointmentIdstringrequired
The missed appointment.
- encounterIdstringrequired
The encounter that explains it.
- typeno_show_hospitalizedrequired
- object
- labelstringrequired
What it means, in Spanish, as the list labels it.
- levelemergencyorurgentornormalrequired
How fast it must reach a person.
- liststringrequired
The signed list, for example
red-flag-lists/cardiovascular.v2. - rolenurseorphysicianorcoordinatorrequired
Who follows it up, as the program's escalation says.
- sourcephraseormodeloragentrequired
How it was heard: a phrase of the list or the model's reading.
- typemissed_red_flagrequired
- reviewedSourceCurrentboolean | nullrequired
Live currency of the returned finding's reviewed clinical source, independently of the original decision receipt:
falsewhen withdrawn, expired, changed or no longer readable;truewhen its exact reviewed basis is current;nullfor canonical ingestion findings or before this source capability is installed. This annotation may change on receipt replay; it never changes the original effect or creates one. - caseoptional}
One of the following:
- AlertCaseItem
- caseIdstringrequired
The case's id, a decimal string.
- createdAtstringrequired
When.
format: date-time - createdBystringrequired
The physician who created it.
- evidencearray ofobjectrequired
References to the facts behind the finding.
- kindstringrequired
What kind of evidence:
diagnosis,observation,medication,procedure,encounter,institutional_roster,patient_profile,note_mention,payer_flagorprior_report. - referencestringrequired
The patient event or fact it points to, for example
event:1842.
- priorityfollow_uporpriorityorimmediaterequired
Its priority: the alert's severity.
- purposecritical_value_follow_uportrend_revieworoverdue_controloradherence_follow_uporno_show_follow_uporevent_follow_up+1 morerequired
What the case is for, from the finding.
- sourceobjectrequired
The finding it comes from.
- findingTypecritical_valueortrendoroverdue_controlorrefill_overdueordispensation_pendingorout_of_stock+4 morerequired
What the finding is about.
- occurrencestringrequired
The evidence that produced it.
- subjectstringrequired
The subject within the patient's record.
- null
400
Failure. The error.code is one of:
INVALID_INPUT: Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED: Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY: Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED: Rewrite the query as one read-only statement over the published catalog.MINOR_UNIT_SCALE_MISMATCH: Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
401
Failure. The error.code is one of:
UNAUTHORIZED: Obtain a fresh access token and repeat the request.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
403
Failure. The error.code is one of:
ACCESS_DENIED: Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED: Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
404
Failure. The error.code is one of:
NOT_FOUND: Check the identifier. The record may not exist or may not be visible to this actor.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
409
Failure. The error.code is one of:
CONFLICT: Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT: The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED: Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT: Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED: Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED: Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED: Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE: Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION: Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED: Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED: Read the current state with the matching get operation, then decide again.INVOICE_COMPONENT_AMBIGUOUS: Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED: Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
413
Failure. The error.code is one of:
BODY_TOO_LARGE: Send a smaller body, or split the content into several requests.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
422
Failure. The error.code is one of:
RESOURCE_LIMIT_EXCEEDED: Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED: Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING: Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED: Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY: Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE: Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT: Narrow the query (filters, columns or range) and retry.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
500
Failure. The error.code is one of:
INVALID_CONFIGURATION: Retry once later; if it persists, report the requestId to support.INTERNAL: Retry once later; if it persists, report the requestId to support.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
503
Failure. The error.code is one of:
AUTHENTICATION_UNAVAILABLE: Retry later with backoff; for a write, reuse the same requestKey.COMMIT_UNCERTAIN: The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE: Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE: The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE: Do not retry. The capability is not enabled for this organization.SERVICE_BUSY: Retry later with backoff; for a write, reuse the same requestKey.
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).
default
- errorobjectrequired
The stable failure code, its message and optional details.
- codeUNAUTHORIZEDorAUTHENTICATION_UNAVAILABLEorACCESS_DENIEDorMODULE_DISABLEDorINVALID_INPUTorUSER_PAYMENT_REFUSED+33 morerequired
Stable failure code. Branch on this value, never on
message.UNAUTHORIZED(HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request.AUTHENTICATION_UNAVAILABLE(HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey.ACCESS_DENIED(HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.MODULE_DISABLED(HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.INVALID_INPUT(HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema.USER_PAYMENT_REFUSED(HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment.INVALID_INVENTORY(HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema.ANALYTICS_QUERY_REJECTED(HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog.BODY_TOO_LARGE(HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests.NOT_FOUND(HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor.METHOD_NOT_ALLOWED(HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path.CONFLICT(HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again.IDEMPOTENCY_CONFLICT(HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action.TRANSACTION_ABORTED(HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request.INVENTORY_INTEGRITY_CONFLICT(HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator.TEAM_PRIOR_UNRESOLVED(HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change.COHORT_ACTIVE_REQUIRED(HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again.COHORT_CUT_CHANGED(HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page.COHORT_READ_REQUIRES_ACTIVE(HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again.COHORT_CUT_NEEDS_RECONCILIATION(HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again.PROGRAM_NEW_ASSESSMENT_REQUIRED(HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again.CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED(HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again.MINOR_UNIT_SCALE_MISMATCH(HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.INVOICE_COMPONENT_AMBIGUOUS(HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.SITE_SUBSTITUTION_REFUSED(HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.RESOURCE_LIMIT_EXCEEDED(HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first.MODULE_NOT_CONTRACTED(HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.MODULE_REQUIREMENT_MISSING(HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).CAPABILITY_NOT_CONFIGURED(HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization.INSTALLATION_NOT_READY(HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.EVIDENCE_NOT_READABLE(HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable.ANALYTICS_QUERY_LIMIT(HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry.COMMIT_UNCERTAIN(HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first.DATABASE_UNAVAILABLE(HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey.PIPELINE_UNAVAILABLE(HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first.ASSISTANT_UNAVAILABLE(HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization.SERVICE_BUSY(HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey.INVALID_CONFIGURATION(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.INTERNAL(HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
- detailsoptionalobject
Extra data for the codes that need it; absent for every other code.
- reasonoptionalnot_contractedornot_a_substituteorpatient_acceptance_missingorpayer_authorization_missing
Why the booking's site was refused:
not_contracted(the contracted site is not one of the contract that day),not_a_substitute(no substitution in force that day lets the site serve for it),patient_acceptance_missingorpayer_authorization_missing(the substitution asks for them).