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

# Resolve bundle

> Evaluates fulfillability for a bundle using the person's shipping country, the same order-time rules used when placing an order. Returns 403 when bundles are not enabled for your organization.



## OpenAPI

````yaml /openapi.json get /api/v1/bundles/{productGroupId}/resolve
openapi: 3.1.0
info:
  title: Firstbase API Specification
  description: Integration endpoints for Firstbase
  version: 0.1.0
servers:
  - url: https://apipub.firstbasehq.com
    description: Production
security:
  - ApiKey: []
tags:
  - name: Bundles
    description: Manage product-group bundles
  - name: Catalog
    description: Browse SKUs, brands, and categories
  - name: Inventory
    description: Query and manage inventory items and assets
  - name: Inventory Levels
    description: Configure inventory levels by SKU and warehouse
  - name: Inventory Orders
    description: Create and manage inventory orders
  - name: ITAD
    description: IT asset disposition requests
  - name: New Joiners
    description: Track and remind new joiners
  - name: Offices
    description: Manage office locations
  - name: Orders
    description: Create and track equipment orders
  - name: Packages
    description: Manage equipment packages
  - name: People
    description: Provision and manage users
  - name: Regions
    description: Query regions
  - name: Replacements
    description: Create and manage equipment replacements
  - name: Returns
    description: Create and manage returns
  - name: Shipment
    description: Look up shipments and carriers
  - name: Shipment Notices
    description: Create and manage shipment notices
  - name: Warehouses
    description: Query warehouses
paths:
  /api/v1/bundles/{productGroupId}/resolve:
    get:
      tags:
        - Bundles
      summary: Resolve bundle
      description: >-
        Evaluates fulfillability for a bundle using the person's shipping
        country, the same order-time rules used when placing an order. Returns
        403 when bundles are not enabled for your organization.
      operationId: resolveBundleV1
      parameters:
        - name: productGroupId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID of the bundle (product group).
        - name: personId
          in: query
          required: true
          schema:
            type: string
            format: uuid
            example: d7d0d906-425f-402f-bde1-39031c67c40b
          description: >-
            UUID of the person whose shipping country is used to evaluate
            fulfillability. The person must have a shipping country.
      responses:
        '200':
          description: Fulfillability of the bundle for the person
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BundleResolve'
              example:
                productGroupId: 9d1f0b32-5a4c-4e6d-8f70-1a2b3c4d5e6f
                regionId: 3a68a467-8733-4c8d-a942-16ed7ec33018
                status: PARTIAL
                previewCopy: Available with optional items dropped
                components:
                  - componentId: 3c90c3cc-0d44-4b50-8888-8dd25736052a
                    skuId: 7b21c8e0-1a2b-4c3d-9e5f-0123456789ab
                    quantity: 1
                    required: true
                    fulfillmentMode: WAREHOUSE_FIRST_THEN_PROCURE
                    warehouseCondition: NEW_FIRST
                    sortOrder: 0
                    status: FULFILLABLE
                    source: MIXED
                    warehouseQuantity: 1
                    procurementQuantity: 0
                    unfulfillableReason: null
                    previewCopy: Partial warehouse, remainder procured
                  - componentId: 5e8d1a44-2f3b-4c6a-9b7d-8e9f0a1b2c3d
                    skuId: 1f2e3d4c-5b6a-4798-8a9b-0c1d2e3f4a5b
                    quantity: 1
                    required: false
                    fulfillmentMode: WAREHOUSE_ONLY
                    warehouseCondition: NEW_ONLY
                    sortOrder: 1
                    status: DROPPED
                    source: NONE
                    warehouseQuantity: 0
                    procurementQuantity: 0
                    unfulfillableReason: INSUFFICIENT_WAREHOUSE_STOCK
                    previewCopy: Dropped — not fulfillable
        '400':
          description: Person has no shipping country for resolve
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
        '403':
          description: Endpoint not available for this organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
        '404':
          description: Active bundle or person not found for the authenticated organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
        '409':
          description: Conflict
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -sS -X GET
            'https://apipub.firstbasehq.com/api/v1/bundles/{productGroupId}/resolve?personId=d7d0d906-425f-402f-bde1-39031c67c40b'
            \
              -H 'Authorization: ApiKey YOUR_API_KEY' \
              -H 'Accept: application/json'
components:
  schemas:
    BundleResolve:
      type: object
      description: Order-time fulfillability of a bundle for a person
      properties:
        productGroupId:
          type: string
          format: uuid
          description: Bundle UUID
        regionId:
          type: string
          format: uuid
          description: Region used for fulfillability
        status:
          type: string
          enum:
            - FULFILLABLE
            - PARTIAL
            - BLOCKED
          description: Current status of the resource.
        previewCopy:
          type: string
          description: Short human-readable summary of the outcome for the whole bundle.
        components:
          type: array
          items:
            $ref: '#/components/schemas/BundleComponentResolve'
          description: Per-line fulfillability for the person's shipping country.
      required:
        - components
        - previewCopy
        - regionId
        - status
    PublicApiHttpErrors:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/PublicApiError'
          description: List of error details.
      required:
        - errors
    BundleComponentResolve:
      type: object
      description: What a bundle member would order
      properties:
        componentId:
          type: string
          format: uuid
          description: Component UUID
        skuId:
          type: string
          format: uuid
          description: SKU UUID
        quantity:
          type: integer
          format: int32
          description: Number of units for this item or rule.
        required:
          type: boolean
          description: >-
            When true, an unfulfillable line blocks the whole bundle; when
            false, it is dropped instead.
        fulfillmentMode:
          type: string
          enum:
            - WAREHOUSE_ONLY
            - WAREHOUSE_FIRST_THEN_PROCURE
            - ALWAYS_PROCURE_NEW
          description: >-
            Configured fulfillment mode of the line: `WAREHOUSE_ONLY`,
            `WAREHOUSE_FIRST_THEN_PROCURE`, or `ALWAYS_PROCURE_NEW`.
        warehouseCondition:
          type: string
          enum:
            - NEW_ONLY
            - NEW_FIRST
            - USED_FIRST
          description: >-
            Configured warehouse stock preference of the line: `NEW_ONLY`,
            `NEW_FIRST`, or `USED_FIRST`. Null when `fulfillmentMode` is
            `ALWAYS_PROCURE_NEW`.
        sortOrder:
          type: integer
          format: int32
          description: Sort order of this line within the bundle.
        status:
          type: string
          enum:
            - FULFILLABLE
            - DROPPED
            - BLOCKED
          description: Current status of the resource.
        source:
          type: string
          enum:
            - NONE
            - WAREHOUSE
            - PROCUREMENT
            - MIXED
          description: >-
            Where the line would be fulfilled from: `WAREHOUSE`, `PROCUREMENT`,
            `MIXED` (partly warehouse, remainder procured), or `NONE` when the
            line is not fulfillable.
        warehouseQuantity:
          type: integer
          format: int32
          description: Units that would be taken from warehouse stock.
        procurementQuantity:
          type: integer
          format: int32
          description: Units that would be procured.
        unfulfillableReason:
          type: string
          enum:
            - REGION_NOT_APPLICABLE
            - INSUFFICIENT_WAREHOUSE_STOCK
            - NOT_PROCURABLE
          description: >-
            Why the line cannot be fulfilled: `REGION_NOT_APPLICABLE`,
            `INSUFFICIENT_WAREHOUSE_STOCK`, or `NOT_PROCURABLE`. Null when the
            line is fulfillable.
        previewCopy:
          type: string
          description: Short human-readable summary of the outcome for this line.
      required:
        - fulfillmentMode
        - previewCopy
        - procurementQuantity
        - quantity
        - required
        - skuId
        - sortOrder
        - source
        - status
        - warehouseQuantity
    PublicApiError:
      type: object
      properties:
        detail:
          type: string
          description: Human-readable description of the error
          example: Invalid request
        source:
          type: string
          description: >-
            Entity or field path that caused the error (for example order,
            shipmentNotice, or person:email)
          example: request
      required:
        - detail
        - source
  securitySchemes:
    ApiKey:
      type: apiKey
      description: Prefix the value with "ApiKey" to indicate the custom authorization type
      name: Authorization
      in: header

````

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