Cart.com Product Variants API

The Product Variants API from Cart.com — 2 operation(s) for product variants.

Business capability
Product Configuration & Variant Management BC-820.40

Operations 4

GET /product_variants Get Product Variants #
POST /product_variants Create a Product Variant #
PUT /product_variants/{id} Update a Product Variant #
DELETE /product_variants/{id} Delete a Product Variant #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cart-com-product-variants-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cart-com-product-variants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Online Store Product Variants API
  version: '1.0'
  description: Online Store API
servers:
- url: https://www.yoursite.com/api/v1
  description: ''
security:
- X-AC-Auth-Token: []
tags:
- name: Product Variants
paths:
  /product_variants:
    get:
      summary: Get Product Variants
      tags:
      - Product Variants
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  total_count:
                    type: integer
                  product_variants:
                    type: array
                    items:
                      $ref: '#/components/schemas/product_variants'
      operationId: get-product_variants
      description: Gets an array of product variants.
    post:
      summary: Create a Product Variant
      operationId: post-product_variants
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/product_variants'
      tags:
      - Product Variants
      description: Creates a product variant.
      requestBody:
        content:
          application/json:
            schema:
              description: ''
              type: object
              x-examples:
                example-1:
                  product_id: 32
                  variant_group_id: 4
                  description: Cart.com Blue
                  price_adjustment: 0
                  price_adjustment_type: total
                  sort_order: 0
                  item_number_extension: '101520'
                  is_hidden: false
                  weight: 1.0
                  weight_type: +
                  is_default_selection: true
                  swatch_file: ''
                  swatch_thumbnail: /images/blue.jpg
                  swatch_thumbnail_color: ''
              properties:
                product_id:
                  type: integer
                variant_group_id:
                  type: integer
                description:
                  type: string
                price_adjustment:
                  type: number
                price_adjustment_type:
                  type: string
                sort_order:
                  type: integer
                item_number_extension:
                  type: string
                item_number_sort_order:
                  type: integer
                  default: 0
                  minimum: 0
                weight:
                  type: number
                weight_type:
                  type: string
                is_hidden:
                  type: boolean
                is_default_selection:
                  type: boolean
                swatch_file:
                  type: string
                swatch_thumbnail:
                  type: string
                swatch_thumbnail_color:
                  type: string
              required:
              - product_id
              - variant_group_id
            examples:
              Example:
                value:
                  product_id: 32
                  variant_group_id: 4
                  description: Cart.com Blue
                  price_adjustment: 0
                  price_adjustment_type: total
                  sort_order: 0
                  item_number_extension: '101520'
                  is_hidden: false
                  weight: 1.0
                  weight_type: +
                  is_default_selection: true
                  swatch_file: ''
                  swatch_thumbnail: /images/blue.jpg
                  swatch_thumbnail_color: ''
  /product_variants/{id}:
    parameters:
    - schema:
        type: integer
      name: id
      in: path
      required: true
      description: The ID of the `product_variant`
    put:
      summary: Update a Product Variant
      operationId: put-product_variants-id
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/product_variants'
      tags:
      - Product Variants
      description: Updates a product variant.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/product_variants'
    delete:
      summary: Delete a Product Variant
      operationId: delete-product_variants-id
      responses:
        '200':
          description: OK
        '404':
          $ref: '#/components/responses/404'
      tags:
      - Product Variants
      description: Deletes a product variant.
components:
  schemas:
    product_variants:
      type: object
      properties:
        id:
          type: integer
        product_id:
          type: integer
        variant_group_id:
          type: integer
        description:
          type: string
        price_adjustment:
          type: integer
        price_adjustment_type:
          type: string
        sort_order:
          type: integer
        item_number_extension:
          type: string
        item_number_sort_order:
          type: integer
          default: 0
        is_hidden:
          type: boolean
        weight:
          type: number
        weight_type:
          type: string
        updated_at:
          type: string
        created_at:
          type: string
        is_default_selection:
          type: boolean
        swatch_file:
          type: string
        swatch_thumbnail:
          type: string
        swatch_thumbnail_color:
          type: string
  responses:
    '404':
      description: Resource Not Found
      content:
        application/json:
          schema:
            description: Not Found
            type: object
            x-examples:
              example-1:
                status_code: 404
                message: Not Found
                details: No resource found
            properties:
              status_code:
                type: number
              message:
                type: string
              details:
                type: string
          examples: {}
      headers: {}
  securitySchemes:
    X-AC-Auth-Token:
      name: X-AC-Auth-Token
      type: apiKey
      in: header