Skip to content
Navigation

Create an appointment

Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that search_booking_slots or list_booking_slots offered in an availability flow. Send what a person at the desk chooses: confirm true; the slot's flowId and slotId; the patient's documentType and documentNumber; the payer's planId and subplanId (list_payer_plans, list_payer_subplans); and in classification the patient's regime and affiliateType (list_regimes, list_affiliate_types) and, for copayments, salaryRange (list_salary_ranges). Leave the rest out: the service resolves it as the provider's own booking screen does. The payer, program and attention type are the flow's; the purpose is the form's default, 10; the contract is the payer's only active one, or none when it has none; billing takes its flags from the payer's row, its copayment rate, cap and moderator fee from the salary range's row, and its tariff from the payer's tariff matrix for the flow's service under the plan and subplan. A value the caller does send is used as given, and a billing object is sent unchanged with nothing resolved. BOOKING_VALUE_UNRESOLVED means a needed value could not be resolved from the provider's own data and nothing was written; send it and repeat: contractId when the payer has several active contracts; classification.relationship when the affiliate type is neither C nor N; classification.listStatus when the payer uses an attention list; a classification.salaryRange the regime lists; or billing when the payer's tariff grid has no positive tariff for the service. Before anything is written, the patient is resolved by citizenship card; the source must still count exactly one unit for the program and attention type; the regime, affiliate type, relationship and salary range, and the payer, plan, subplan and contract, must be listed by the provider; the service must be configured for the slot's professional; and a fresh read must still show the slot. The intent and a fence on the slot are recorded before the single provider request, which is never resent. Success means the provider answered a strictly positive appointment number, the source's own creation signal (verification provider_acknowledgement). OUTCOME_UNKNOWN means the appointment may exist: do not book again; check lookup_appointments with status assigned and ask staff. WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's ledger refused a new write and nothing was sent. Repeating the identical request answers the recorded outcome; no idempotency key is needed. One-slot, one-unit bookings only. agentMode true answers concise Spanish text instead.

  • Scope: oficlinic:appointments:write
  • Credentials: an API key, a client-credentials token or a person's access token
  • Effect: writes; not idempotent: check the outcome before you retry
  • Limits: request body up to 8 KB, response up to 64 KB
  • CLI: arbol oficlinic appointments create · MCP tool: oficlinic_appointments_create
POST
https://api.getarbol.com/v1/oficlinic/appointments

Authorization

  • Authorization
    string
    required
    Bearer <token>, where the token is an API key, a client-credentials token or a person's access token with the scope oficlinic:appointments:write. Get an API key.

Request body JSON required

  • confirm
    boolean
    required

    Must be true: the patient or staff confirmed this exact booking. Without it nothing is written.

  • flowId
    string
    required

    The availability flow id every booking list item carries (flowId). It expires 30 minutes after the first list.

    pattern: ^bf_[a-z2-7]{16}$
  • slotId
    string
    required

    A slot id from search_booking_slots or list_booking_slots in the same flow.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • documentType
    string
    required

    Colombian citizenship card. Other document types are not verified against the provider yet.

  • documentNumber
    string
    required

    The document number, digits only.

    pattern: ^[0-9]{3,15}$
  • planId
    string
    required

    A plan of the payer, from list_payer_plans.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • subplanId
    string
    required

    A subplan of the plan, from list_payer_subplans.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • classification
    object
    required

    Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.

    • affiliateType
      string
      required

      Sent as pTipoAfiliacion (the screen's affiliate type, strTafiliado). Required: one list_affiliate_types answers for the regime.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • regime
      string
      required

      Sent as pTipoAfiliado (the screen's regime, strRegimen). Required: one list_regimes answers.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • relationship
      optional
      string | null

      Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.

      pattern: ^[0-9A-Za-z._-]{1,32}$ · default: null
    • salaryRange
      optional
      string | null

      Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.

      pattern: ^[0-9A-Za-z._-]{1,32}$ · default: null
    • listStatus
      optional
      string | null

      Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.

      pattern: ^[0-9A-Za-z._-]{1,32}$ · default: null
    • programId
      optional
      string

      Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • attentionTypeId
      optional
      string

      The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • purposeId
      optional
      string

      Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.

      pattern: ^[0-9A-Za-z._-]{1,32}$ · default: "10"
  • connectionId
    optional
    string

    An Account connection id of the caller's organization.

    pattern: ^con_[0-9A-Za-z]{26}$
  • idempotencyKey
    optional
    string

    Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.

    maxLength: 64 · minLength: 8 · pattern: ^[A-Za-z0-9_-]+$
  • payerId
    optional
    string

    The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • contractId
    optional
    string | null

    A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).

    pattern: ^[0-9A-Za-z._-]{1,32}$
  • billing
    optional
    object

    Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.

    • tariff
      string
      required

      Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.

      pattern: ^(0|[1-9][0-9]{0,9})(\.[0-9]{1,2})?$
    • billPrivately
      string | null
      required

      Sent as pFacturarParticular.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • billCopayments
      string | null
      required

      Sent as pFacturarCopagos.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • enteredCopayment
      string | null
      required

      Sent as pCopagoDigitado.

      pattern: ^(0|[1-9][0-9]{0,9})(\.[0-9]{1,2})?$
    • copaymentPercentage
      string | null
      required

      Sent unchanged as pPorCopagos, preserving the source rate's precision.

      pattern: ^(0|[1-9][0-9]{0,9})(\.[0-9]{1,6})?$
    • maxCopayment
      string | null
      required

      Sent as pMaxCopago.

      pattern: ^(0|[1-9][0-9]{0,9})(\.[0-9]{1,2})?$
    • indicatedModeratorFee
      string | null
      required

      Sent as pvlrCuotaModeradoraIndicada.

      pattern: ^(0|[1-9][0-9]{0,9})(\.[0-9]{1,2})?$
    • exempt
      string | null
      required

      Sent as pExento.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • courtOrder
      string | null
      required

      Sent as pTutela.

      pattern: ^[0-9A-Za-z._-]{1,32}$
    • markExempt
      boolean
      required

      Sent as pMarcaExento, true or false as the screen's checkbox.

  • referral
    optional
    object

    Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.

    • requestingProfessionalId
      optional
      string | null

      Sent as pProfeSol; empty when null.

      pattern: ^[0-9A-Za-z._-]{1,32}$ · default: null
    • authorizationNumber
      optional
      string | null

      Sent as pAutorizacion: the payer's authorization number; empty when null. A payer that requires authorization (requiresAuthorization in list_payers) is still booked without one, as the clinic's staff do; they complete it before the visit.

      pattern: ^[0-9A-Za-z-]{1,30}$ · default: null
    • requestedByUser
      optional
      boolean

      Sent as pSolicitudUsuario, 1 or 0: the booking screen's user-request checkbox, unchecked by default.

      default: false
  • observations
    optional
    string | null

    Observations sent as pObservaciones, accents removed and uppercased; null (the default) sends none.

    maxLength: 250 · minLength: 1 · pattern: ^[0-9A-Za-zÁÉÍÓÚÜÑáéíóúüñ ,.;:()/#-]*$ · default: null
  • agentMode
    optional
    boolean

    true answers { text }: concise Spanish facts for a messaging or voice agent, with the short ids and the cursor needed to continue. false, the default, answers the structured object.

    default: false

Returns

201

Successful operation.

JSON
  • success
    true
    required
  • data
    required

    One of the following:

    • OficlinicAppointmentBooking
      • idempotencyKey
        string
        required
      • status
        string
        required

        The provider answered a strictly positive appointment number, which its own booking screen treats as created.

      • verification
        string
        required

        The only evidence is the provider's acknowledgement, mapped from its source; use appointment lookup to independently verify the saved appointment.

      • providerReference
        string
        required

        The appointment number the provider answered. Its relation to the CAS that appointment history shows is not verified.

        pattern: ^[1-9][0-9]{0,11}$
      • date
        string | null
        required
        pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
      • slotId
        string
        required
      • slotLabel
        string | null
        required
      • professional
        object
        required
        • id
          string
          required
        • name
          string
          required
      • room
        object
        required
        • id
          string
          required
        • name
          string
          required
      • service
        object
        required
        • id
          string
          required
        • code
          string
          required
        • name
          string
          required
      • payer
        object
        required
        • id
          string
          required
        • name
          string
          required
      • planId
        string
        required
      • subplanId
        string
        required
      • contractId
        string | null
        required
      • programId
        string
        required
      • attentionTypeId
        string
        required
      • acknowledgedAt
        string
        required
        format: date-time
    • OficlinicAgentText
      • text
        string
        required

        Concise Spanish facts of the answer, with the ids and cursor to continue. Pending or unknown outcomes are stated as such.

  • error
    unknown
    required
  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

400

INVALID_INPUT: The request does not match the published schema.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The request does not match the published schema.

    • code
      INVALID_INPUT
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required
      • issues
        optional
        array of
        object
        • path
          string
          required

          RFC 6901 JSON Pointer to the refused field; empty for the whole input.

          maxLength: 256
        • message
          string
          required
          maxLength: 256
  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

401

UNAUTHORIZED: A valid access token is required.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    A valid access token is required.

    • code
      UNAUTHORIZED
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

403

FORBIDDEN: The token does not authorize this operation.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The token does not authorize this operation.

    • code
      FORBIDDEN
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

404

  • CONNECTION_NOT_FOUND: The connection does not exist in this organization.
  • PATIENT_NOT_FOUND: The provider explicitly reported no patient with the document.
  • PAYER_NOT_FOUND: The payer is not configured for the connection's company and IPS.
  • PAYER_OPTION_NOT_FOUND: The plan, subplan or contract is not one the provider lists for the payer, or the contract is inactive.
  • BOOKING_OPTION_NOT_FOUND: The program, attention type, regime, affiliate type, relationship or cancellation reason is not one the provider lists.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • OficlinicConnectionNotFoundFailure
      CONNECTION_NOT_FOUND
      • code
        CONNECTION_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicPatientNotFoundFailure
      PATIENT_NOT_FOUND
      • code
        PATIENT_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicPayerNotFoundFailure
      PAYER_NOT_FOUND
      • code
        PAYER_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicPayerOptionNotFoundFailure
      PAYER_OPTION_NOT_FOUND
      • code
        PAYER_OPTION_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicBookingOptionNotFoundFailure
      BOOKING_OPTION_NOT_FOUND
      • code
        BOOKING_OPTION_NOT_FOUND
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

409

  • CONNECTION_REQUIRED: The organization has several active connections: select one.
  • CONNECTION_NOT_ACTIVE: The connection is not active.
  • CONNECTION_BUSY: Another operation is using this connection or signing in for the organization.
  • REAUTHENTICATION_REQUIRED: Provider sign-in is stopped for this connection. Verify the connection again.
  • SERVICE_NOT_AVAILABLE: The service is not configured for the selected professional.
  • SELECTION_NOT_AVAILABLE: The professional, room, day or slot is not offered in this availability flow, or is no longer offered.
  • IDEMPOTENCY_KEY_REUSED: The idempotency key was already used for a different request.
  • WRITE_TARGET_UNRESOLVED: An earlier write to this slot or appointment has no final outcome, so no other write to it is sent. Staff must check the provider's appointments.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • OficlinicConnectionRequiredFailure
      CONNECTION_REQUIRED
      • code
        CONNECTION_REQUIRED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicConnectionNotActiveFailure
      CONNECTION_NOT_ACTIVE
      • code
        CONNECTION_NOT_ACTIVE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicConnectionBusyFailure
      CONNECTION_BUSY
      • code
        CONNECTION_BUSY
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicReauthenticationRequiredFailure
      REAUTHENTICATION_REQUIRED
      • code
        REAUTHENTICATION_REQUIRED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicServiceNotAvailableFailure
      SERVICE_NOT_AVAILABLE
      • code
        SERVICE_NOT_AVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicSelectionNotAvailableFailure
      SELECTION_NOT_AVAILABLE
      • code
        SELECTION_NOT_AVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicIdempotencyKeyReusedFailure
      IDEMPOTENCY_KEY_REUSED
      • code
        IDEMPOTENCY_KEY_REUSED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicWriteTargetUnresolvedFailure
      WRITE_TARGET_UNRESOLVED
      • code
        WRITE_TARGET_UNRESOLVED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

410

SELECTION_EXPIRED: The availability flow expired or does not exist. List booking professionals again.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The availability flow expired or does not exist. List booking professionals again.

    • code
      SELECTION_EXPIRED
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

413

REQUEST_TOO_LARGE: The request exceeds the allowed size.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The request exceeds the allowed size.

    • code
      REQUEST_TOO_LARGE
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

415

UNSUPPORTED_MEDIA_TYPE: The request content type is not supported.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The request content type is not supported.

    • code
      UNSUPPORTED_MEDIA_TYPE
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

422

  • CREDENTIALS_REJECTED: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
  • CONTEXT_NOT_AVAILABLE: The selected company, site or IPS is not available to the provider account.
  • PROVIDER_IDENTITY_MISMATCH: The provider session does not belong to the connection's user and selected context.
  • BOOKING_VALUE_UNRESOLVED: A value the booking needs could not be resolved from the provider's own data, so the caller must supply it: a contract, a relationship, a list status, an authorization number, a salary range the regime lists, or the billing values. Nothing was written.
  • PROGRAM_UNITS_NOT_SUPPORTED: The attention type's source unit count is not exactly one, and this service books one-unit programs only.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • CredentialsRejectedFailure
      CREDENTIALS_REJECTED
      • code
        CREDENTIALS_REJECTED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

    • OficlinicContextNotAvailableFailure
      CONTEXT_NOT_AVAILABLE
      • code
        CONTEXT_NOT_AVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicProviderIdentityMismatchFailure
      PROVIDER_IDENTITY_MISMATCH
      • code
        PROVIDER_IDENTITY_MISMATCH
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicBookingValueUnresolvedFailure
      BOOKING_VALUE_UNRESOLVED
      • code
        BOOKING_VALUE_UNRESOLVED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicProgramUnitsNotSupportedFailure
      PROGRAM_UNITS_NOT_SUPPORTED
      • code
        PROGRAM_UNITS_NOT_SUPPORTED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

429

  • RATE_LIMITED: The request rate limit was exceeded. Try again later.
  • LOGIN_COOLING_DOWN: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • RateLimitedFailure
      RATE_LIMITED
      • code
        RATE_LIMITED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicLoginCoolingDownFailure
      LOGIN_COOLING_DOWN
      • code
        LOGIN_COOLING_DOWN
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

500

INTERNAL_ERROR: The service could not complete the operation.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The service could not complete the operation.

    • code
      INTERNAL_ERROR
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      false
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

502

  • OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
  • SIGN_IN_OUTCOME_UNKNOWN: The provider did not confirm a sign-in. It is not repeated automatically.
  • PROVIDER_PROTOCOL_CHANGED: The provider returned an unrecognized response.
  • PATIENT_RECORD_MISMATCH: The provider answered a record that does not match the request.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • OutcomeUnknownFailure
      OUTCOME_UNKNOWN
      • code
        OUTCOME_UNKNOWN
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicSignInOutcomeUnknownFailure
      SIGN_IN_OUTCOME_UNKNOWN
      • code
        SIGN_IN_OUTCOME_UNKNOWN
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • ProviderProtocolChangedFailure
      PROVIDER_PROTOCOL_CHANGED
      • code
        PROVIDER_PROTOCOL_CHANGED
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicPatientRecordMismatchFailure
      PATIENT_RECORD_MISMATCH
      • code
        PATIENT_RECORD_MISMATCH
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

503

  • UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.
  • PROVIDER_UNAVAILABLE: The provider could not complete the request.
  • WRITE_LEDGER_FULL: The connection's write ledger is at capacity, so no new write was sent. Recorded writes stay answerable; staff must look.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    required

    One of the following:

    • UpstreamUnavailableFailure
      UPSTREAM_UNAVAILABLE
      • code
        UPSTREAM_UNAVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • ProviderUnavailableFailure
      PROVIDER_UNAVAILABLE
      • code
        PROVIDER_UNAVAILABLE
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        true
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

    • OficlinicWriteLedgerFullFailure
      WRITE_LEDGER_FULL
      • code
        WRITE_LEDGER_FULL
        required

        The failure code, stable across releases.

      • message
        string
        required

        What went wrong, for people; it never contains input values.

      • retryable
        false
        required

        Whether repeating the same request may succeed.

      • data
        object
        required

        No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

504

UPSTREAM_TIMEOUT: The upstream service did not respond before its deadline.
JSON
  • success
    false
    required
  • data
    unknown
    required
  • error
    object
    required

    The upstream service did not respond before its deadline.

    • code
      UPSTREAM_TIMEOUT
      required

      The failure code, stable across releases.

    • message
      string
      required

      What went wrong, for people; it never contains input values.

    • retryable
      true
      required

      Whether repeating the same request may succeed.

    • data
      object
      required

      No fields.

  • metadata
    object
    required

    What every answer carries besides its data or error.

    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

Escribe para buscar…

↑↓ navegar↵ seleccionarEsc cerrar