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

# Create a product for partner brand

> Creates a new product for a specific partner brand.



## OpenAPI

````yaml api-reference/v1/openapi.yaml post /v1/admin/partners/brands/{id}/products
openapi: 3.1.0
info:
  title: Goods API
  version: 1.0.0
  description: >-
    API for Goods grocery operations - scanner app, admin dashboard, and
    customer features
  contact:
    name: Goods Team
    url: https://goods.app
servers:
  - url: http://localhost:3000
    description: Local development
  - url: https://dev.api.switchyard.run
    description: Development
  - url: https://api.switchyard.run
    description: Production
security: []
tags:
  - name: v1
    description: API v1 - unified domain-based endpoints
  - name: Scanner
    description: Scanner app endpoints for drivers and pickers
  - name: Sweeps
    description: Sweep management - retail store pickup operations
  - name: RFC Picks
    description: Ready-for-checkout picking operations
  - name: Inventory
    description: Inventory management and barcode lookup
  - name: Admin
    description: Admin dashboard endpoints
  - name: Orders
    description: Order management
  - name: Products
    description: Product catalog management
  - name: Notifications
    description: Push, email, SMS, and Slack notification management
paths:
  /v1/admin/partners/brands/{id}/products:
    post:
      tags:
        - Admin - Partners
      summary: Create a product for partner brand
      description: Creates a new product for a specific partner brand.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                scraped_product_id:
                  type: string
                  format: uuid
                sellable_product_id:
                  type: string
                  format: uuid
                name:
                  type: string
                  minLength: 1
                retail_price:
                  type: number
                  minimum: 0
                  exclusiveMinimum: true
                temperature_zone:
                  type: string
                  enum:
                    - ambient
                    - chilled
                    - frozen
                  default: ambient
                brand:
                  type: string
                description:
                  type: string
                barcode:
                  type: string
                size:
                  type: string
                size_value:
                  type: number
                size_uom:
                  type: string
                image_url:
                  type: string
                  format: uri
                image_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  maxItems: 7
                category_id:
                  type: string
                  format: uuid
                subcategory_id:
                  type: string
                  format: uuid
                is_for_human_consumption:
                  type: boolean
                  default: true
                nutrition_info:
                  type: object
                  properties:
                    servings_per_container:
                      type: number
                      nullable: true
                    serving_size_quantity:
                      type: number
                      nullable: true
                    serving_size_unit:
                      type: string
                      nullable: true
                    serving_size_weight:
                      type: number
                      nullable: true
                    serving_size_weight_unit:
                      type: string
                      nullable: true
                    calories:
                      type: number
                      nullable: true
                    total_fat:
                      type: number
                      nullable: true
                    saturated_fat:
                      type: number
                      nullable: true
                    trans_fat:
                      type: number
                      nullable: true
                    polyunsaturated_fat:
                      type: number
                      nullable: true
                    monounsaturated_fat:
                      type: number
                      nullable: true
                    cholesterol:
                      type: number
                      nullable: true
                    sodium:
                      type: number
                      nullable: true
                    total_carbohydrates:
                      type: number
                      nullable: true
                    dietary_fiber:
                      type: number
                      nullable: true
                    total_sugars:
                      type: number
                      nullable: true
                    added_sugars:
                      type: number
                      nullable: true
                    sugar_alcohol:
                      type: number
                      nullable: true
                    protein:
                      type: number
                      nullable: true
                    vitamins:
                      type: array
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                          value:
                            type: number
                          unit:
                            type: string
                        required:
                          - name
                          - value
                          - unit
                commission_rate:
                  type: number
                  minimum: 0
                  maximum: 1
                is_active:
                  type: boolean
                  default: false
                partner_wholesale_price:
                  type: number
                  minimum: 0
                  exclusiveMinimum: true
                partner_pricing_model:
                  type: string
                  enum:
                    - consignment
                    - wholesale
                  default: consignment
      responses:
        '201':
          description: Product created
          content:
            application/json:
              schema:
                type: object
                properties:
                  scraped_product:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      brand:
                        type: string
                        nullable: true
                      barcode:
                        type: string
                        nullable: true
                    required:
                      - id
                      - name
                      - brand
                      - barcode
                  sellable_product:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      taxonomy_id:
                        type: string
                        nullable: true
                      selling_price:
                        type: number
                      is_active:
                        type: boolean
                      commission_rate:
                        type: number
                        nullable: true
                    required:
                      - id
                      - taxonomy_id
                      - selling_price
                      - is_active
                      - commission_rate
                required:
                  - scraped_product
                  - sellable_product
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '404':
          description: Partner brand not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error

````