Get Offer
Returns one product from the merchant's ecom platform by its platform ID.
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.
Violet ID of the merchant.
12345ID of the product on the merchant's platform. This is the external_id of the offer.
7469837175852Comma-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.
categories,metadataViolet auth token. It must belong to the developer that owns the app in X-Violet-App-Id.
Secret of the app in X-Violet-App-Id.
ID of the Violet app making the request. The app must be connected to the merchant.
20001The offer.
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).
Unique ID of the Offer.
The parent/container product ID. Note: this is a legacy property and is now considered deprecated.
The ID of the product in the merchants external store.
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.
Name of the offer as defined by the source merchant.
Blue Running SneakersDescription of the offer. Note: this value may contain HTML elements.
Commerce platform the offer was sourced from.
Name of the merchant selling product.
Foot LockerName of the source vendor or brand.
NikeID of the merchant who sourced this Offer.
Is the product currently available for purchase in the merchants system.
Is the product visible or hidden in the merchants storefront. Note: a product can be hidden while still being available for purchase.
Minimum price the Offer sells for in cents. This is the lowest of the SKU sale prices (e.g. 2999 = $29.99).
2999Maximum price the Offer sells for in cents. This is the highest of the SKU sale prices (e.g. 5999 = $59.99).
5999ISO 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.
USDISO 4217 currency code representing the merchants default currency in their external commerce platform.
USDOriginal category name from the merchants external commerce platform.
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.
Current status of the Offer.
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.
Date of offer creation in ISO 8601 format.
Date of last offer update in ISO 8601 format.
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.
Is the product 3D Enabled
false3D Resource Object
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%).
15Symbol representing the desired currency
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.
USDThe 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.
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.
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.
The platform is not supported by this endpoint, or the product is excluded by the merchant's tag or vendor settings (Shopify).
A parameter is invalid (invalid_parameter), a filter that is not supported yet was used (operation_not_supported_exception), or the merchant's platform rejected Violet's stored connection (invalid_merchant_credentials, on platforms that detect it).
The app is not connected to the merchant (merchant_not_connected).
The token does not belong to the developer that owns the app, or the app is not subscribed to the Relay plan (insufficient_permissions).
The request failed in Violet or while reading from the merchant's platform.
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?