Skip to end of banner
Go to start of banner

Get Product Variants

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

In this article

Overview

You can use this Snap to fetch a list of product variants, such as different sizes, colors, and prices.

Prerequisites

  • Valid client ID.
  • A valid account with the required permissions.

None.

Support for Ultra Pipelines

Works in Ultra Pipelines


Limitations

Calculate Order Refund
  • API versions: Shopify releases new API versions every quarter. Each stable version is supported only for a minimum of 12 months. Part of a Shopify API is deprecated if it becomes unnecessary, unsafe, or outdated. The API’s are marked as deprecated when they are removed in a newer version of the API. The deprecation is then retroactively applied to previous stable versions of the API.
  • API Rate Limit: All Shopify APIs are rate-limited. Shopify uses various strategies to enforce rate limits, such as Calculated query cost, Request-based limit, and Time-based limit. 
    Shopify Snap Pack uses admin APIs, which are applicable for Request-based limit. If the APIs cross the rate limit, the Snap fails.

    API

    Rate-limiting method

    Standard limit

    Shopify Plus limit

    Admin API

    (GraphQL)

    Calculated query cost

    50 points/second

    100 points/second

    Admin API

     (REST)

    Request-based limit

    2 requests/second

    4 requests/second

Known Issues

None.

Snap Input and Output


Input/OutputType of ViewNumber of ViewsExamples of Upstream and Downstream SnapsDescription
Input 

Binary



  • Min:0
  • Max:1
  • Mapper Snap
  • Copy Snap
  • ..
Requires the EDI data and internal ID as a JSON document.
Output


Binary


  • Min:1
  • Max:1
  • ..
  • ..

The EDI transaction ID and order confirmation.

Snap Settings

Parameter
Data Type
Description
Default Value
Example
LabelStringRequired. The name for the Snap. You can modify the default name to be specific and meaningful, especially if you have more than one of the same Snaps in your pipeline.Get ProductsOrd_300
VersionString/Expression
Required. Specify the Shopify API version. Alternatively, click the Suggestion  icon to fetch the list of Shopify API versions. 
2021-042021-04
Product IDString/ExpressionRequired. Specify a unique identifier for the product.N/ACMS0119
Resource IDString/ExpressionSpecify a unique identifier for the resource.N/A$resid
Parameters

Use this field set to define object parameters ad their values. This field set contains the following fields:

  • Parameter
  • Parameter value
ParametersString/Expression/SuggestionSpecify a query parameter.N/A
Parameter valueString/ExpressionSpecify a value for the parameter.N/A
Number Of RetriesInteger/ExpressionSpecify an integer value to set the maximum number of reconnection attempts that the Snap must perform, in case of connection failure or timeout.12
Retry Interval (Seconds)Integer/ExpressionSpecify the duration in seconds for which the Snap must wait between two reconnection attempts, until the number of retries is reached.15
Snap ExecutionDrop-down list

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.
  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Validate & Execute

Execute only

Troubleshooting


ErrorReasonResolution

Batch execution failed

The Pipeline ended before the batch could complete execution due to a connection error.


Verify that the Batch size field is configured to handle the inputs properly. If you are not sure when the input data is available, configure this field as zero to keep the connection always open.




Examples

Getting Product Variants


We can exclude the unrequired fields from the input data stream by omitting them in the Input schema field set. This example demonstrates how we can use the <Snap Name> to achieve this result:

<screenshot of Pipeline/Snap and description>

Download this Pipeline. 


Downloads

Important Steps to Successfully Reuse Pipelines

  1. Download and import the Pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide Pipeline parameters as applicable.

  File Modified
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
No files shared here yet.
  • Drag and drop to upload or browse for files


  • Snap Pack History

     Click here to expand...
    Snap Pack Version 

    Release

    Date

    Type

    Updates

    May 2024

    main26341

     

    Stable

    Updated and certified against the current SnapLogic Platform release.

    February 2024main25112 StableUpdated and certified against the current SnapLogic Platform release.
    November 2023main23721 StableUpdated and certified against the current SnapLogic Platform release.
    August 2023main22460 StableUpdated and certified against the current SnapLogic Platform release.

    May 2023

    main21015 

    Stable

    Upgraded with the latest SnapLogic Platform release.

    February 2023main19844 StableUpgraded with the latest SnapLogic Platform release.
    November 2022main18944 StableUpgraded with the latest SnapLogic Platform release.
    August 2022main17386 StableUpgraded with the latest SnapLogic Platform release.
    4.29main15993 StableUpgraded with the latest SnapLogic Platform release.
    4.28main14627 StableUpgraded with the latest SnapLogic Platform release.
    4.27main12833 StableUpgraded with the latest SnapLogic Platform release.
    4.26 

    main11181

    Latest

    Introduced the Shopify Snap Pack that enables businesses to set up an online store and sell their products online with ease. You can use this Snap Pack to create orders, products, customers, and run automated workflows. This Snap Pack offers the following Snaps:


    See Also

    • No labels