---
updatedAt: 2026-11-12T22:13:08.000Z
agentTools:
  projectIndex: https://developer.fastspring.com/llms.txt
---

# Create or update products

Creates products or updates existing products.

If you are creating products in bulk, you can add up to 300 at a time.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The Products API manages your product catalog including pricing, descriptions,\nand fulfillment configuration. Products can be one-time purchases or subscriptions.\n\n## Authentication\nAll endpoints require HTTP Basic Auth using your API credentials.\n\n\n**Rate Limiting:** All API endpoints are rate limited to 250 requests per IP address per minute. When exceeded, the API returns HTTP 429 with a `Retry-After` header.\n",
    "version": "v1.1.0-kgi27",
    "title": "FastSpring API - Products",
    "contact": {
      "name": "FastSpring Developer Support",
      "url": "https://developer.fastspring.com/support",
      "email": "devsupport@fastspring.com"
    }
  },
  "servers": [
    {
      "url": "https://api.fastspring.com"
    }
  ],
  "security": [
    {
      "auth": []
    }
  ],
  "tags": [
    {
      "name": "Products",
      "description": "Create, list, retrieve, preview, and delete products.\n"
    }
  ],
  "paths": {
    "/products": {
      "post": {
        "summary": "Create or update products",
        "tags": [
          "Products"
        ],
        "description": "Creates products or updates existing products.\n\nIf you are creating products in bulk, you can add up to 300 at a time.\n",
        "operationId": "Createoneormorenewproducts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateoneormorenewproductsRequest"
              },
              "examples": {
                "createProduct": {
                  "summary": "Create a new product",
                  "description": "Request body example for creating a new product with basic details.",
                  "value": {
                    "products": [
                      {
                        "product": "new-laptop",
                        "display": {
                          "en": "New Laptop"
                        },
                        "pricing": {
                          "price": {
                            "USD": 444.99,
                            "EUR": 899.99
                          },
                          "paymentCollected": true,
                          "paidTrial": false,
                          "quantityDiscounts": {
                            "10": 25
                          },
                          "discountReason": {
                            "en": "Seasonal Promotion"
                          },
                          "trial": 14,
                          "interval": "month",
                          "intervalLength": 1,
                          "quantityBehavior": "allow",
                          "discountDuration": 1,
                          "reminderNotification": {
                            "enabled": true,
                            "interval": "day",
                            "intervalLength": 3
                          },
                          "overdueNotification": {
                            "enabled": true,
                            "interval": "day",
                            "intervalLength": 3,
                            "amount": 10
                          },
                          "cancellation": {
                            "interval": "month",
                            "intervalLength": 2
                          }
                        },
                        "description": {
                          "summary": {
                            "en": "A lightweight, high-performance laptop."
                          },
                          "action": {
                            "en": "Buy now to experience unparalleled portability."
                          },
                          "full": {
                            "en": "The New Laptop is designed for students and professionals on the go."
                          }
                        },
                        "fulfillment": {
                          "instructions": {
                            "en": "Ships within 2-3 business days.",
                            "es": "Se envía en 2-3 días hábiles."
                          }
                        },
                        "attributes": {
                          "color": "Silver",
                          "storage": "512GB SSD"
                        },
                        "image": "https://example.com/images/new-laptop.jpg",
                        "format": "digital",
                        "sku": "sku-98765",
                        "badge": {
                          "en": "Best Value"
                        },
                        "rank": 1
                      }
                    ]
                  }
                },
                "updateProduct": {
                  "summary": "Update an existing product",
                  "description": "Request body example for updating product details such as price and display information.",
                  "value": {
                    "products": [
                      {
                        "product": "existing-laptop",
                        "display": {
                          "en": "Updated Laptop Name"
                        },
                        "pricing": {
                          "price": {
                            "USD": 899.99,
                            "EUR": 799.99
                          }
                        }
                      }
                    ]
                  }
                },
                "createTrialWithoutPayment": {
                  "summary": "Create a trial subscription without requiring a payment method",
                  "description": "Request body example demonstrating how to create a trial subscription with a trial period and optional payment requirements.\n- `paymentCollected`: If `true`, payment is collected upfront. Defaults to `true` if not specified.\n- `paidTrial`: If `true`, a payment method is required for the trial. If `false`, the trial is free.\n- `trialPrice`: Required if `paidTrial` is `true`. Ignored if `paidTrial` is `false`.\n",
                  "value": {
                    "products": [
                      {
                        "product": "trial-plan-premium",
                        "display": {
                          "en": "Premium Plan Trial - No Payment Required"
                        },
                        "description": {
                          "summary": {
                            "en": "Start your free trial of the Premium Plan today. No payment method needed."
                          }
                        },
                        "pricing": {
                          "quantityDefault": 1,
                          "interval": "month",
                          "intervalLength": 1,
                          "trial": 30,
                          "paymentCollected": false,
                          "paidTrial": false,
                          "trialPrice": {
                            "USD": 0,
                            "EUR": 0
                          },
                          "price": {
                            "USD": 19.99,
                            "EUR": 17.99
                          }
                        }
                      }
                    ]
                  }
                },
                "setBadgeAndRank": {
                  "summary": "Set badge and rank for products",
                  "description": "Request body example for setting badge and rank attributes to highlight certain products.",
                  "value": {
                    "products": [
                      {
                        "product": "basic",
                        "badge": {
                          "en": "Basic"
                        },
                        "rank": 2
                      },
                      {
                        "product": "premium",
                        "badge": {
                          "en": "Best Value"
                        },
                        "rank": 1
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CreateProductsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/UpdateProductsResponse"
                    }
                  ]
                },
                "examples": {
                  "CreateProductsResponseExample": {
                    "summary": "Create Products Response",
                    "value": {
                      "products": [
                        {
                          "product": "new-laptop",
                          "action": "product.create",
                          "created.id": "kyCJS3ovQ4qhfjA-PPzv_g",
                          "result": "success"
                        }
                      ]
                    }
                  },
                  "UpdateProductsResponseExample": {
                    "summary": "Update Products Response",
                    "value": {
                      "products": [
                        {
                          "product": "existing-laptop",
                          "action": "product.update",
                          "updated.id": "kyCJS3ovQ4qhfjA-PPzv_g",
                          "result": "success"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication credentials are missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseV2"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Retry after the number of seconds specified in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Number of seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseV2"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseV2"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "auth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "CreateoneormorenewproductsRequest": {
        "type": "object",
        "required": [
          "products"
        ],
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "product",
                "display",
                "pricing"
              ],
              "properties": {
                "product": {
                  "type": "string",
                  "description": "The product path ID.",
                  "example": "premium-laptop"
                },
                "display": {
                  "type": "object",
                  "description": "Display information for the product in different languages.",
                  "properties": {
                    "en": {
                      "type": "string",
                      "description": "The product's name in English.",
                      "example": "Premium Laptop"
                    }
                  }
                },
                "pricing": {
                  "type": "object",
                  "description": "Pricing details for the product.",
                  "required": [
                    "price"
                  ],
                  "properties": {
                    "price": {
                      "type": "object",
                      "description": "The price for the product in different currencies.",
                      "required": [
                        "USD"
                      ],
                      "properties": {
                        "USD": {
                          "type": "number",
                          "description": "Price in USD.",
                          "example": 1999.99
                        },
                        "EUR": {
                          "type": "number",
                          "description": "Price in EUR.",
                          "example": 1799.99
                        }
                      }
                    },
                    "trial": {
                      "type": "integer",
                      "description": "The trial period for the product, in days. Only needed if you are creating a subscription.",
                      "example": 14
                    },
                    "interval": {
                      "type": "string",
                      "description": "The billing interval for the product.",
                      "enum": [
                        "week",
                        "month",
                        "year"
                      ],
                      "example": "month"
                    },
                    "intervalLength": {
                      "type": "integer",
                      "description": "Length of the billing interval.",
                      "example": 1
                    },
                    "quantityBehavior": {
                      "type": "string",
                      "description": "Defines the behavior for the quantity of the product, such as whether it's allowed to be purchased in different quantities.",
                      "enum": [
                        "allow",
                        "lock",
                        "hide"
                      ],
                      "example": "allow"
                    },
                    "quantityDefault": {
                      "type": "integer",
                      "description": "The default quantity for the product, such as 1 if no other quantity is specified.",
                      "example": 1
                    },
                    "paymentCollected": {
                      "type": "boolean",
                      "description": "Whether the payment for the product is collected upfront. This field is optional and defaults to `true` if not specified.",
                      "example": true,
                      "default": true
                    },
                    "paidTrial": {
                      "type": "boolean",
                      "description": "Whether the trial is paid. This field is optional and defaults to `false` if not specified.",
                      "example": false,
                      "default": false
                    },
                    "trialPrice": {
                      "type": "object",
                      "description": "The price for the trial period in different currencies. This is mandatory if `paidTrial` is true.",
                      "properties": {
                        "USD": {
                          "type": "number",
                          "description": "Trial price in USD.",
                          "example": 14.95
                        },
                        "EUR": {
                          "type": "number",
                          "description": "Trial price in EUR.",
                          "example": 12.99
                        }
                      }
                    },
                    "quantityDiscounts": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "number",
                        "format": "double"
                      },
                      "description": "Defines the discount applied when a minimum order quantity is reached, either as a percentage off or a fixed amount off.\n\n| Input Format                                 | Description                                                                                                                                | Example                             |\n|----------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------|\n| `<quantity>: <discount>`                     | Percentage discount. If `<quantity>` units are purchased, a `<discount>`% discount is applied.                                             | `10: 25`                            |\n| `<quantity>: {<currency>: <amount>, ...}`    | Fixed amount discount. If `<quantity>` units are purchased, the discount is a fixed `<amount>` off in the specified currency.               | `10: {USD: 25.00, EUR: 15}`          |\n\n**Note:** Mixed discount types (combining percentage and fixed amounts for the same quantity) are not supported.\n",
                      "example": {
                        "30": {
                          "USD": 25,
                          "EUR": 15
                        }
                      }
                    },
                    "discountReason": {
                      "type": "object",
                      "description": "Reason for the discount in various languages.",
                      "properties": {
                        "en": {
                          "type": "string",
                          "description": "Discount reason in English.",
                          "example": "Seasonal Promotion"
                        }
                      }
                    },
                    "discountDuration": {
                      "type": "integer",
                      "description": "Duration (in billing intervals) for which the discount applies.",
                      "example": 1
                    }
                  }
                },
                "badge": {
                  "type": "object",
                  "description": "A term used to highlight the product's special status or importance, such as its ranking or recognition (e.g., \"Best Value\", \"Editor's Choice\").",
                  "properties": {
                    "en": {
                      "type": "string",
                      "description": "A label or designation for the product in English to spotlight its special status.",
                      "example": "Editor's Choice"
                    }
                  }
                },
                "rank": {
                  "type": "integer",
                  "description": "The rank or position of the product in a display or list, representing its relative importance or display priority.",
                  "example": 1
                },
                "description": {
                  "type": "object",
                  "properties": {
                    "summary": {
                      "type": "object",
                      "description": "A brief summary of the product.",
                      "properties": {
                        "en": {
                          "type": "string",
                          "description": "The summary of the product in English.",
                          "example": "The Premium Laptop is equipped with the latest hardware and software for superior performance."
                        }
                      }
                    },
                    "action": {
                      "type": "object",
                      "description": "A call to action related to the product, prompting the customer to take an action (e.g., purchase, learn more).",
                      "properties": {
                        "en": {
                          "type": "string",
                          "description": "The action text in English.",
                          "example": "Order now and experience cutting-edge technology."
                        }
                      }
                    },
                    "full": {
                      "type": "object",
                      "description": "A full detailed description of the product, often used for more in-depth product information.",
                      "properties": {
                        "en": {
                          "type": "string",
                          "description": "The full description of the product in English.",
                          "example": "The Premium Laptop is designed for power users who demand speed and efficiency in a sleek, portable package."
                        }
                      }
                    }
                  }
                },
                "fulfillment": {
                  "type": "object",
                  "properties": {
                    "instructions": {
                      "type": "object",
                      "description": "Post-order instructions for the fulfillment, in different languages.",
                      "properties": {
                        "en": {
                          "type": "string",
                          "description": "Fulfillment instructions in English, such as shipping or handling information.",
                          "example": "Please allow 3-5 business days for shipping and handling."
                        },
                        "es": {
                          "type": "string",
                          "description": "Fulfillment instructions in Spanish.",
                          "example": "Por favor permita de 3 a 5 días hábiles para el envío y manejo."
                        }
                      }
                    }
                  }
                },
                "image": {
                  "type": "string",
                  "description": "URL to the product image, which will be displayed on the product page.",
                  "example": "https://example.com/images/premium-laptop.jpg"
                },
                "format": {
                  "type": "string",
                  "description": "The format of the product.",
                  "enum": [
                    "digital",
                    "physical",
                    "digital-and-physical"
                  ],
                  "example": "digital"
                },
                "sku": {
                  "type": "string",
                  "description": "Stock Keeping Unit, a unique identifier for the product in the inventory system.",
                  "example": "sku-12345"
                },
                "attributes": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string",
                    "format": "double"
                  },
                  "description": "Additional custom attributes for the product, represented as key-value pairs.",
                  "properties": {
                    "color": {
                      "type": "string",
                      "description": "The color of the product.",
                      "example": "Space Gray"
                    },
                    "storage": {
                      "type": "string",
                      "description": "The storage capacity of the product (e.g., \"256GB\", \"1TB\").",
                      "example": "1TB SSD"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "CreateProductsResponse": {
        "title": "Create Products Response",
        "type": "object",
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "product": {
                  "type": "string",
                  "description": "The product identifier.",
                  "example": "premium-laptop"
                },
                "action": {
                  "type": "string",
                  "description": "The action performed on the product.",
                  "example": "product.create"
                },
                "created.id": {
                  "type": "string",
                  "description": "The unique identifier for the created product.",
                  "example": "kyCJS3ovQ4qhfjA-PPzv_g"
                },
                "result": {
                  "type": "string",
                  "description": "The result of the action (e.g., success or error).",
                  "example": "success"
                }
              }
            }
          }
        }
      },
      "UpdateProductsResponse": {
        "title": "Update Products Response",
        "type": "object",
        "properties": {
          "products": {
            "type": "array",
            "description": "List of products with their update status.",
            "items": {
              "type": "object",
              "properties": {
                "product": {
                  "type": "string",
                  "description": "The product identifier.",
                  "example": "premium-laptop"
                },
                "action": {
                  "type": "string",
                  "description": "The action performed on the product.",
                  "example": "product.update"
                },
                "updated.id": {
                  "type": "string",
                  "description": "The unique identifier for the updated product.",
                  "example": "kyCJS3ovQ4qhfjA-PPzv_g"
                },
                "result": {
                  "type": "string",
                  "description": "The result of the action (e.g., success or error).",
                  "example": "success"
                }
              }
            }
          }
        }
      },
      "ErrorResponseV2": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Machine-readable error code",
            "example": "VALIDATION_ERROR"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error description",
            "example": "Invalid request parameters"
          }
        }
      }
    }
  }
}
```