Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this Article

...

Info
titleKey Steps
  1. Create a Customer
  2. Create a Product and Product Variant
  3. Join Customer and Product data
  4. Create an Order for the Customer
  5. Create An Order Fulfillment

Prerequisites

  • Create an app and store in your Shopify application.
  • Set the required scopes for the app. In this Use Case we set the scopes to perform the following actions:
    • Add read customers, read orders, and read products.
    • Add write orders.
    • Read fulfillment orders.

Create a Customer

Initially we configure the Pipeline to add customer data, transform the customer data to get specific customer details, and then create a new customer.
Image Modified

We configure the JSON Generator Snap to pass customer data. The Snap generates the following output in its preview.

...

Next, we configure the Create Customer Snap to create a customer.

Image RemovedImage Added

On validation, we see the following customer details in the output preview.

...

Next, we configure the Create Product Snap to create the product with the output from the downstream Mapper Snap.

Image RemovedImage Added

Upon validation, we see the product data in the output preview of the Snap.

...

We configure the Create Product Variant Snap to create a new product variant.

Image RemovedImage Added

Upon validation, we see the product variant details in the output preview of the Snap.

Image RemovedImage Added

Join customer and product data

In step three, we configure the Pipeline using the Join Snap to combine the customer data and product data. 

Image Modified

We configure the Join Snap to combine the data coming from the upstream (Create Customer and Create Product Variant) Snaps to create customized product data for the customer we have just created.

Image RemovedImage Added

Upon validation, we see the customer ID and the product variant details in the output preview.

Image RemovedImage Added

Create an order for the customer

In this part of the Pipeline, we create an order for the customer using the Create Order Snap.

Image RemovedImage Added

Upon validation, we see that an order is created on the product variant for the customer.

Image RemovedImage Added

Create An Order Fulfillment

...

Now we configure the Create Fulfillment Snap to create an order fulfillment.

Image RemovedImage Added

Upon validation, the order fulfillment details are displayed in the output preview of the Snap. The status key displays success which indicates that an order fulfillment is created. The tracking _number in the output is used to track the order shipment.

...