v1

latestOpenAPI 3.0.02026-07-2664192238.8 KB
Products

Replace product

Replace product by ID

Scopes: products.write <br><a href="https://www.postman.com/omnisend-api/workspace/omnisend/overview" target="_blank">Open Postman collection</a>

put/products/{productID}

Path parameters

productIDstring required

Product ID

Headers

Omnisend-Versionstring required

API version that specifies the response format and behaviour

Request body

categoryIDsstring[]
createdAtstring
currencystring required
defaultImageUrlstring

DefaultImageUrl is recommended if more than one image is needed. Other product images should be added to the Images array.

descriptionstring

Description is a short description of the product. It can be used in the email body.

idstring required
imagesstring[]
status'inStock' | 'outOfStock' | 'notAvailable' required

Status can be inStock, outOfStock, or notAvailable. We recommended to keep it in sync with your shop product to ensure that Omnisend can avoid sending out-of-stock products to your customers.

tagsstring[]

Tags can be used to categorize products.

titlestring required
typestring

Product type can be used to categorize products.

updatedAtstring
urlstring required

Url should point to the product page on the website.

vendorstring

Vendor is the manufacturer or the brand of the product.

Example request

{
  "categoryIDs": [
    "1234567890",
    "99934567890"
  ],
  "createdAt": "2021-01-01T00:00:00Z",
  "currency": "USD",
  "defaultImageUrl": "https://example.com/image.jpg",
  "description": "My product description",
  "id": "1234567890",
  "images": [
    "https://example.com/image.jpg",
    "https://example.com/image2.jpg"
  ],
  "status": "inStock",
  "tags": [
    "tag1",
    "tag2",
    "tag3"
  ],
  "title": "My Product",
  "type": "Super Product",
  "updatedAt": "2021-01-01T00:00:00Z",
  "url": "https://example.com/product",
  "variants": [
    {
      "defaultImageUrl": "https://example.com/variantImage.jpg",
      "description": "My variant description",
      "id": "1234567890",
      "images": [
        "https://example.com/variant/image.jpg",
        "https://example.com/variant/image2.jpg"
      ],
      "price": 9.99,
      "sku": "SKU1234567890",
      "status": "inStock",
      "strikeThroughPrice": 19.99,
      "title": "My Variant",
      "url": "https://example.com/variant"
    }
  ],
  "vendor": "My Vendor"
}

Response

Product replaced successfully with the given ID

idstring

Example response

{
  "id": "shoes-blue-123"
}