For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Offer

Returns one product from the merchant's ecom platform by its platform ID.

Relay - Get Offer

get

Returns one product from the merchant's ecom platform by its platform ID.

Supported platforms: Shopify, BigCommerce, WooCommerce, Magento, Wix, Square, Swell, commercetools, Oracle Commerce Cloud, Medusa, Squarespace, Spree, Vendo, Big Cartel, and custom integrations that provide a catalog. On any other platform the response is 204 No Content. Shopify also returns 204 for a product the merchant has excluded from Violet by tag or vendor.

Path parameters
merchant_idinteger · int32Required

Violet ID of the merchant.

Example: 12345
product_idstringRequired

ID of the product on the merchant's platform. This is the external_id of the offer.

Example: 7469837175852
Query parameters
includestringOptional

Comma-separated extras to include. Supported values are categories and metadata. Either one can require extra calls to the merchant's platform. Applied by Shopify only; other platforms ignore it. Any other value is rejected with 400 invalid_parameter, on every platform.

Example: categories,metadata
Header parameters
X-Violet-TokenstringRequired

Violet auth token. It must belong to the developer that owns the app in X-Violet-App-Id.

X-Violet-App-SecretstringRequired

Secret of the app in X-Violet-App-Id.

X-Violet-App-Idinteger · int32Required

ID of the Violet app making the request. The app must be connected to the merchant.

Example: 20001
Responses
200

The offer.

application/json

A merchant's product listing synced from an external commerce platform. An Offer is the top-level catalog entity and contains one or more SKUs (purchasable variations), Variants (product option dimensions like Size or Color), and Albums (grouped media/images). Hierarchy: Offer → SKU → VariantValues. Use the SKU ID when placing orders. All monetary values are in the smallest currency unit (e.g. cents for USD).

idinteger · int64Read-onlyRequired

Unique ID of the Offer.

product_idstringOptionalDeprecated

The parent/container product ID. Note: this is a legacy property and is now considered deprecated.

external_idstringRequired

The ID of the product in the merchants external store.

external_urlstring · nullableOptional

The URL to the product page in the merchants store. Note: if the value for visible is false this URL will likely result in a 404.

namestringRequired

Name of the offer as defined by the source merchant.

Example: Blue Running Sneakers
descriptionstring · max: 65000 · nullableOptional

Description of the offer. Note: this value may contain HTML elements.

sourcestring · enumRead-onlyRequired

Commerce platform the offer was sourced from.

Possible values:
sellerstring · nullableRead-onlyRequired

Name of the merchant selling product.

Example: Foot Locker
vendorstring · nullableRead-onlyOptional

Name of the source vendor or brand.

Example: Nike
merchant_idinteger · int32Required

ID of the merchant who sourced this Offer.

availablebooleanRead-onlyRequired

Is the product currently available for purchase in the merchants system.

visiblebooleanRead-onlyRequired

Is the product visible or hidden in the merchants storefront. Note: a product can be hidden while still being available for purchase.

min_priceinteger · int32Read-onlyRequired

Minimum price the Offer sells for in cents. This is the lowest of the SKU sale prices (e.g. 2999 = $29.99).

Example: 2999
max_priceinteger · int32Read-onlyRequired

Maximum price the Offer sells for in cents. This is the highest of the SKU sale prices (e.g. 5999 = $59.99).

Example: 5999
currencystring · min: 3 · max: 3Required

ISO 4217 currency code for the Offer. By default this value will be the merchants currency but can be changed by the API user using a base_currency parameter.

Example: USD
external_currencystring · min: 3 · max: 3 · nullableRead-onlyOptional

ISO 4217 currency code representing the merchants default currency in their external commerce platform.

Example: USD
source_category_namestring · nullableRead-onlyOptional

Original category name from the merchants external commerce platform.

typestring · enumRead-onlyRequired

Type of product. PHYSICAL products require shipping; DIGITAL products do not. Offers with a type of BUNDLED cannot be purchased through the API at this time due to ecom platform limitations.

Possible values:
statusstring · enumRead-onlyRequired

Current status of the Offer.

Possible values:
publishing_statusstring · enumRead-onlyRequired

Whether this Offer has been published to the Violet catalog and is discoverable via the Search API. An Offer can be NOT_PUBLISHED if the merchant has not yet completed onboarding or has chosen to hide it from the catalog.

Possible values:
date_createdstring · date-timeRead-onlyRequired

Date of offer creation in ISO 8601 format.

date_last_modifiedstring · date-timeRead-onlyRequired

Date of last offer update in ISO 8601 format.

date_last_consolidatedstring · date-time · nullableRead-onlyOptional

Date of last consolidation in ISO 8601 format. Consolidation is the process of querying the merchants store to see if this product still exists. This date is jittered for performance reasons and can be in the future.

three_d_enabledboolean · nullableOptional

Is the product 3D Enabled

Default: false
three_d_resourcestring · nullableOptional

3D Resource Object

commission_ratenumber · double · nullableRead-onlyOptional

The commission rate the merchant has agreed to share with the app on sales of this Offer, expressed as a percentage (e.g. 15.0 = 15%).

Example: 15
currency_symbolstring · nullableOptional

Symbol representing the desired currency

presented_currencystring · min: 3 · max: 3 · nullableRead-onlyOptional

ISO 4217 currency code representing the currency that prices are displayed in to the end user. May differ from currency if currency conversion is active.

Example: USD
default_image_urlstring · nullableOptional

The default image for this Offer. Only present on responses from the Search API. In other cases this value will be on the album's primary media object.

subscription_statusstring · enum · nullableRead-onlyOptional

Indicates whether the current app is subscribed to this Offer. Subscribed offers can be purchased through the API and will appear in the app's catalog.

Possible values:
external_dataobject · nullableOptional

The raw external product data from the external commerce platform. This data is not pre-processed by Violet and is only provided for reference when using using the Violet Relay API.

tagsstring[]Optional
get/relay/merchants/{merchant_id}/offers/{product_id}
GET /v1/relay/merchants/{merchant_id}/offers/{product_id} HTTP/1.1
Host: sandbox-api.violet.io
X-Violet-Token: text
X-Violet-App-Secret: text
X-Violet-App-Id: 1
Accept: */*
{
  "external_id": "7469837175852",
  "name": "Canvas Weekender Bag",
  "description": "Durable cotton canvas weekender with leather handles.",
  "source": "SHOPIFY",
  "seller": "Example Goods",
  "vendor": "Example Goods",
  "merchant_id": 12345,
  "available": true,
  "visible": true,
  "min_price": 12900,
  "max_price": 12900,
  "currency": "USD",
  "type": "PHYSICAL",
  "status": "AVAILABLE",
  "publishing_status": "NOT_PUBLISHED",
  "external_url": "https://shop.example.com/products/canvas-weekender-bag",
  "variants": [
    {
      "name": "Color",
      "values": [
        {
          "name": "Natural"
        }
      ]
    }
  ],
  "skus": [
    {
      "external_id": "42001965334700",
      "name": "Canvas Weekender Bag - Natural",
      "in_stock": true,
      "qty_available": 14,
      "retail_price": 15900,
      "sale_price": 12900,
      "currency": "USD",
      "taxable": true,
      "type": "PHYSICAL",
      "variant_values": [
        {
          "variant": "Color",
          "value": "Natural"
        }
      ]
    }
  ],
  "albums": [
    {
      "type": "OFFER",
      "name": "Canvas Weekender Bag",
      "media": [
        {
          "external_id": "34567890123",
          "source_url": "https://cdn.example.com/files/weekender-natural.jpg",
          "type": "IMAGE",
          "display_order": 1,
          "primary": true
        }
      ]
    }
  ]
}

Last updated

Was this helpful?