In this article

Overview

You can use this Snap to create a new customer record in the online Shopify store.

Prerequisites

None.

Support for Ultra Pipelines

Works in Ultra Pipelines

Limitations

Known Issues

None.

Snap Input and Output

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

Document



  • Min:1
  • Max:1
  • Mapper
  • Copy

The customer details, such as first name, last name, email, and phone number to create a new customer.

Output

Document

  • Min:1
  • Max:1
  • Mapper

The created customer object.

Snap Settings


Field Name
Field Dependency
Description
Label*N/A
Specify 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 Snap in your Pipeline.
Default Value: Create Customer
ExampleCreate Customer
Version*N/A

Specify the Shopify API version that you want to use. Alternatively, click the Suggestion  icon to fetch the list of supported Shopify API versions and select a version. 

Default Value: 2021-07
Example2021-04

Number Of RetriesN/A

Specify an integer value to set the maximum number of reconnection attempts the Snap must perform in case of connection failure or timeout.

Default Value: 1
Example: 2

Retry Interval (Seconds)N/A

Specify the duration in seconds for which the Snap must wait between two reconnection attempts, until the number of retries is reached.

Default Value: 1
Example: 2

Snap Execution

N/A


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.

Default Value: Execute only
Example: Validate & Execute


Example

Creating A Customer

The following example Pipeline demonstrates how we can create a customer record in the Shopify store using the Create Customer Snap.

Initially, we configure the JSON Generator Snap to pass customer details in JSON format. Upon validation we see the following customer details in the output preview of the Snap.

JSON Generator Snap ConfigurationOutput

Next, we configure the Mapper Snap to get specific customer details and map them to the target columns.

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

Next, we configure the Create Customer Snap to create a customer with the output from the upstream Snap.

Upon validation, the Snap creates the customer and we can view the customer data in the output preview of the Snap.

You can extend this Pipeline further to create orders for the created customers.

Download this Pipeline.




See Also