Use Fiber to load the following resources from the Shopify API.
By default, Shopify resources are pulled via API version 2022-10.
You need the following data to create a Shopify source.
Key | Type | Comments |
---|---|---|
apiKey | string | |
apiSecret | string |
You need the following data to register a Shopify account.
Key | Type | Comments |
---|---|---|
myShopifyDomain | string | Must follow format 'example.myshopify.com' Required |
accessToken | string | Required |
scopes | string[] | Array of scopes of this access token, separated by comma. Optional. E.g: 'read_orders,read_products'. https://shopify.dev/docs/api/usage/access-scopes#authenticated-access-scopes Optional |
Example:
{
myShopifyDomain: "hahvaleu.myshopify.com",
accessToken: "shpat_9e305la91b13749501-851"
scopes: ["read_orders", "read_customers", "read_products", "write_products"]
}
Click to learn more about credentials.
The ID of the Shopify Store is used as the external ID for the account.