> ## 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 an update to a verification of benefits

> Checks an edit as `PATCH /v1/verification-of-benefits/{vob_id}` would and answers the request as the edit would leave it, without changing anything. It takes the PATCH body without `validate_only`. Every check of the edit applies, with the same errors; `version` must be current.



## OpenAPI

````yaml https://api.getsolum.com/openapi.json post /v1/verification-of-benefits/{vob_id}/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/{vob_id}/preview:
    post:
      tags:
        - Verification of Benefits
      summary: Preview an update to a verification of benefits
      description: >-
        Checks an edit as `PATCH /v1/verification-of-benefits/{vob_id}` would
        and answers the request as the edit would leave it, without changing
        anything. It takes the PATCH body without `validate_only`. Every check
        of the edit applies, with the same errors; `version` must be current.
      operationId: PreviewVobUpdate
      parameters:
        - name: vob_id
          in: path
          required: true
          schema:
            type: string
            title: Vob Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VobEdit'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VobRequestPreview'
        '400':
          description: >-
            `version` is stale, or the edit changes the request of a VOB Solum
            is working or that is closed; `param` names the field.
        '403':
          description: The edit changes `status`, which is Solum's to move.
        '404':
          description: No such VOB (or patient) in your company.
        '409':
          description: >-
            A specialty's new credential would move what Solum verified for it,
            and that can't move now; `param` is `specialties`.
        '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:
    VobEdit:
      properties:
        status:
          $ref: '#/components/schemas/VobStatus'
          description: >-
            A VOB's status is Solum's to move: a request that changes it is
            refused with 403. Cancel a VOB with the cancel action.
        priority:
          type: boolean
          title: Priority
          description: Omit to keep the current priority.
        version:
          type: integer
          title: Version
          description: The VOB's current version; a stale one is refused.
        specialties:
          items:
            $ref: '#/components/schemas/SpecialtyIn'
          type: array
          minItems: 1
          title: Specialties
          description: >-
            Replaces the whole set of specialties, resolved like on create.
            Clinics can edit them while the VOB is pending or missing
            information.
        servicing_location_id:
          type: string
          title: Servicing Location Id
          description: >-
            Moves the VOB to another active location of your company, while it
            is pending or missing information. A specialty whose NPI Solum
            picked from the old location is picked again from the new one; an
            NPI you chose stays. It can be changed, not cleared.
      additionalProperties: false
      type: object
      required:
        - version
      title: VobEdit
      description: |-
        An edit of a VOB's request: what `PreviewVobUpdate` checks, and what
        the PATCH applies.
    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.
    VobStatus:
      type: string
      enum:
        - pending
        - in_progress
        - completed
        - missing_information
        - cancelled
      title: VobStatus
      description: VOB status enum matching Prisma exactly.
    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.