> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsolum.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview a verification of benefits

> Checks a request as `POST /v1/verification-of-benefits` would and answers it as it would be stored, every specialty field filled in, without creating anything. Use it to prefill a request form. It takes the create's body without the fields a preview doesn't read: `priority`, `vob_type`, `network_scope` and `validate_only` are refused with 422. Every check of the create applies, with the same errors, except that a request without `servicing_location_id` is answered even where the create needs one, so a form can preview before the clinic picks the address.



## OpenAPI

````yaml https://api.getsolum.com/openapi.json post /v1/verification-of-benefits/preview
openapi: 3.1.0
info:
  title: Solum Health API
  description: '## Solum Health Backend API '
  version: 1.0.0
servers: []
security: []
paths:
  /v1/verification-of-benefits/preview:
    post:
      tags:
        - Verification of Benefits
      summary: Preview a verification of benefits
      description: >-
        Checks a request as `POST /v1/verification-of-benefits` would and
        answers it as it would be stored, every specialty field filled in,
        without creating anything. Use it to prefill a request form. It takes
        the create's body without the fields a preview doesn't read: `priority`,
        `vob_type`, `network_scope` and `validate_only` are refused with 422.
        Every check of the create applies, with the same errors, except that a
        request without `servicing_location_id` is answered even where the
        create needs one, so a form can preview before the clinic picks the
        address.
      operationId: PreviewVob
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VobPreview'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VobRequestPreview'
        '404':
          description: No such VOB (or patient) in your company.
        '409':
          description: The policy already has an open VOB; `details.open_vob_id` names it.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: validation_error
                  code:
                    type: string
                    example: invalid_parameter
                  message:
                    type: string
                    example: Field validation failed
                  param:
                    type: string
                    example: phone_number
                required:
                  - type
                  - code
                  - message
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    VobPreview:
      properties:
        patient_id:
          type: string
          title: Patient Id
          description: The patient the policy belongs to.
        patient_policy_id:
          type: string
          title: Patient Policy Id
          description: The active policy to verify.
        servicing_location_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Servicing Location Id
          description: >-
            The location the care is given at: an active location of your
            company. Omitted: the patient's location while it is active, else
            your company's location when it has only one, else its only location
            in the patient's state; with none of these, a company with several
            locations must send it (422, `code` `missing_parameter`). A company
            with no active location can't request a VOB until it adds one (the
            same 422, with `details.company_has_no_location` `true`). A preview
            (`PreviewVob`) answers without one even where a create needs it, so
            a form can preview the request before the clinic picks the address.
        specialties:
          anyOf:
            - items:
                $ref: '#/components/schemas/SpecialtyIn'
              type: array
              minItems: 1
            - type: 'null'
          title: Specialties
          description: >-
            The specialties to verify; each may appear once. Omitted: the ones
            Solum requests for this policy (your company's default specialties
            for the patient's state, else the specialties of the policy's latest
            result), each filled from your defaults. 422 naming `specialties`
            when there are none; `company_has_no_specialties` is then true on
            the error when your company has no specialties set up (Settings →
            General).
      additionalProperties: false
      type: object
      required:
        - patient_id
        - patient_policy_id
      title: VobPreview
      description: |-
        A VOB request to check (`PreviewVob`): what a create would store, every
        check applied, and nothing created. It is the create's body without the
        fields a preview doesn't read (`priority`, `vob_type`, `network_scope`,
        `validate_only`), which it refuses.
    VobRequestPreview:
      properties:
        patient_policy_id:
          type: string
          title: Patient Policy Id
        specialties:
          items:
            $ref: '#/components/schemas/RequestedSpecialty'
          type: array
          title: Specialties
      additionalProperties: false
      type: object
      required:
        - patient_policy_id
        - specialties
      title: VobRequestPreview
      description: |-
        A previewed create or edit: the request as it would be stored. Nothing
        was saved.
    SpecialtyIn:
      properties:
        specialty:
          $ref: '#/components/schemas/Specialty'
          description: The specialty to verify; one of your company's.
        credentialing_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Credentialing Id
          description: >-
            An active credentialing record of your company to bill under.
            Omitted: on an edit, the credential the VOB already requests this
            specialty under while it is active; otherwise the policy's billing
            credential, else the insurance's billing default, else the
            credential registered for this specialty.
        cpt_codes:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 50
            - type: 'null'
          title: Cpt Codes
          description: >-
            Up to 50 CPT/HCPCS codes, five letters or digits each (trimmed,
            upper-cased, de-duplicated). Omitted: the company's default CPT
            codes for this specialty. The eligibility check asks the payer about
            the first 8 when the payer answers per procedure, and asks without
            them when they don't come back active.
        service_locations:
          anyOf:
            - items:
                $ref: '#/components/schemas/ServiceLocation'
              type: array
            - type: 'null'
          title: Service Locations
          description: >-
            At least one place of service. Omitted: the company's places of
            service.
        icd_codes:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Icd Codes
          description: >-
            Diagnosis codes (may be empty). Omitted: the company's default ICD
            codes for this specialty.
      additionalProperties: false
      type: object
      required:
        - specialty
      title: SpecialtyIn
      description: |-
        One specialty the VOB asks Solum to verify.

        Only `specialty` is required, and it must be one of your company's
        specialties (Settings → General; `GET /v1/specialties` lists every
        value). Omit any other field to take the company's default for that
        specialty; a field that has no default is refused with 422 naming the
        specialty and the field (`param="specialties[0].cpt_codes"`). The NPI is
        always copied from the credential, never sent.
    RequestedSpecialty:
      properties:
        specialty:
          $ref: '#/components/schemas/Specialty'
        credentialing_id:
          type: string
          title: Credentialing Id
          description: >-
            The credentialing record of your company the specialty is billed
            under.
        npi:
          type: string
          title: Npi
          description: >-
            The NPI Solum verifies the specialty under: the credentialing
            record's NPI when the specialty was requested or last edited.
            Editing the credentialing record later doesn't change it.
        cpt_codes:
          items:
            type: string
          type: array
          title: Cpt Codes
        service_locations:
          items:
            $ref: '#/components/schemas/ServiceLocation'
          type: array
          title: Service Locations
        icd_codes:
          items:
            type: string
          type: array
          title: Icd Codes
      type: object
      required:
        - specialty
        - credentialing_id
        - npi
        - cpt_codes
        - service_locations
        - icd_codes
      title: RequestedSpecialty
      description: One requested specialty with every field resolved.
    Specialty:
      type: string
      enum:
        - aba
        - mental_behavioral_health
        - psychiatry
        - social_work
        - speech_therapy
        - occupational_therapy
        - physical_therapy
        - mri
        - mra
        - ct
        - ultrasound
        - x_ray
        - mammogram
        - dexa
      title: Specialty
      description: >-
        What a clinic asks Solum to verify on a verification of benefits or a

        prior authorization, such as ABA, Speech therapy or MRI. `GET
        /v1/specialties`

        lists every value with its label and group.
    ServiceLocation:
      type: string
      enum:
        - home
        - office
        - school
        - daycare
        - community
        - telehealth
        - on_campus_outpatient_hospital
      title: ServiceLocation
      description: Service location enum matching Prisma @@map("service_location").
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.