Another Shopify Connector

SF unlocked package

Example URL is IMPORTANT

https://e2830bf848c84f0147e801c9ef16ff67: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@bluejayclub-dev.myshopify.com/admin/api/2021-04/orders.json

{ “webhooks”: [ { “id”: 1024452853960, “address”: “https://bluejayclub-developer-edition.na156.force.com/bluejayfc/services/apexrest/GUIJEShopifyWS”, “topic”: “customers/create”, “created_at”: “2021-04-12T21:02:04+07:00”, “updated_at”: “2021-04-12T21:02:04+07:00”, “format”: “json”, “fields”: [], “metafield_namespaces”: [], “api_version”: “2021-04”, “private_metafield_namespaces”: [] }, { “id”: 1024452886728, “address”: “https://bluejayclub-developer-edition.na156.force.com/bluejayfc/services/apexrest/GUIJEShopifyWS”, “topic”: “customers/update”, “created_at”: “2021-04-12T21:02:04+07:00”, “updated_at”: “2021-04-12T21:02:04+07:00”, “format”: “json”, “fields”: [], “metafield_namespaces”: [], “api_version”: “2021-04”, “private_metafield_namespaces”: [] }, { “id”: 1024452919496, “address”: “https://bluejayclub-developer-edition.na156.force.com/bluejayfc/services/apexrest/GUIJEShopifyWS”, “topic”: “orders/create”, “created_at”: “2021-04-12T21:02:04+07:00”, “updated_at”: “2021-04-12T21:02:04+07:00”, “format”: “json”, “fields”: [], “metafield_namespaces”: [], “api_version”: “2021-04”, “private_metafield_namespaces”: [] }, { “id”: 1024452952264, “address”: “https://bluejayclub-developer-edition.na156.force.com/bluejayfc/services/apexrest/GUIJEShopifyWS”, “topic”: “orders/updated”, “created_at”: “2021-04-12T21:02:05+07:00”, “updated_at”: “2021-04-12T21:02:05+07:00”, “format”: “json”, “fields”: [], “metafield_namespaces”: [], “api_version”: “2021-04”, “private_metafield_namespaces”: [] } ]}

Tiger, Dragon and a gang of merchants

Ingredients:

  • (1) A Shopify store front
  • (2) A Shopify Partner Account aka developer account
  • (3) Create a private app and get API key and secret

1 – STORE FRONT

https://bluejayclub-dev.myshopify.com

3 – PRIVATE APP

Token: e2830bf848c84f0147e801c9ef16ff67

Secret: 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

Salesforce

To do: create a private app for token generation, add the URL into the remote site settings in Salesforce and make Salesforce as a trusted site for Shopify

1 – Create Remote Site Setting
2 – Create Self-Signed certificate

Shopify

Create some sample products
Get product json data

https://bluejayclub-dev.myshopify.com/admin/api/2021-01/products.json

Raw data

Json Beautifier