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

# Set your price for a product

> List a product in your store and set the price your customers pay. Send **one** of `price_cents`
(the exact price, never below VitaRelay's price), `markup_percent` or `markup_flat_cents`, and/or
`listed`. The difference between your price and VitaRelay's is yours. Needs `store:write`.




## OpenAPI

````yaml /partner-api/openapi.yaml put /store/products/{product_id}
openapi: 3.1.0
info:
  title: VitaRelay Partner API
  version: 1.0.0
  description: >-
    The Partner API is for rep organizations (a Vita Rep, or a dual Rep + Clinic
    account) that recruit clinics and other reps. Create the invite you would
    otherwise send from the "Refer a Tele Clinic" form, get the signup link
    back, track whether it was accepted, and revoke it.
servers:
  - url: https://vitarelay.com/api/public/partner/v1
security:
  - bearerAuth: []
tags:
  - name: Wholesale
    description: >-
      Order research-use products for your own customers at VitaRelay's
      wholesale price, charged to your card on file. You show your own prices
      and collect from your customer yourself. Rep accounts only.
  - name: Store
    description: >-
      Sell research-use products to your own customers from your own landing
      page, using VitaRelay for fulfillment and payment processing. Customers
      are not patients: no patient, intake or prescription is created. Rep
      accounts only. Needs `store:read` / `store:write`.
  - name: Invites
    description: Clinic and rep invites sent by your organization.
paths:
  /store/products/{product_id}:
    put:
      tags:
        - Store
      summary: Set your price for a product
      description: >
        List a product in your store and set the price your customers pay. Send
        **one** of `price_cents`

        (the exact price, never below VitaRelay's price), `markup_percent` or
        `markup_flat_cents`, and/or

        `listed`. The difference between your price and VitaRelay's is yours.
        Needs `store:write`.
      operationId: setStoreProduct
      parameters:
        - name: product_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                price_cents:
                  type: integer
                markup_percent:
                  type: number
                markup_flat_cents:
                  type: integer
                listed:
                  type: boolean
            example:
              price_cents: 1450
              listed: true
      responses:
        '200':
          description: The product with its new price.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/StoreProduct'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: '`product_not_found`: not a product you can sell.'
        '422':
          $ref: '#/components/responses/ValidationFailed'
components:
  schemas:
    StoreProduct:
      type: object
      properties:
        product_id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
          nullable: true
        image_url:
          type: string
          nullable: true
        category:
          type: string
          nullable: true
        base_price_cents:
          type: integer
          description: VitaRelay's price, the lowest you can charge.
        price_cents:
          type: integer
          description: What your customer pays.
        markup_type:
          type: string
          enum:
            - percent
            - flat
        markup_value:
          type: number
        listed:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  responses:
    Unauthorized:
      description: Missing, invalid or revoked API key (`unauthorized`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        `insufficient_scope` (the key lacks the scope) or `not_available` (your
        organization is not a rep or dual Rep + Clinic account).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationFailed:
      description: >-
        `validation_failed` — a field is missing or invalid; the message says
        which.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        VitaRelay API key (`vr_live_...` or `vr_test_...`) with the `invites:*`
        scopes.

````

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