CreateProduct
Creates a product in Shopify
Last updated
Was this helpful?
Creates a product in Shopify
Task version: 1.1.0
Required Frends version: 5.7+
Required .NET version: 8.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.Shopify/tree/main/Frends.Shopify.CreateProduct
ProductData : JObject
A JSON object containing the product details to create.
Default: -
Example: Example test product with variants: new JObject { ["title"] = "Test Product", ["body_html"] = "Test description", ["vendor"] = "Test Vendor", ["product_type"] = "Test Type", ["variants"] = new JArray { new JObject { ["option1"] = "Size", ["price"] = "10.99", ["sku"] = "TEST-SIZE" } } }
ShopName : String
The Shopify store subdomain (e.g., myshop for myshop.myshopify.com).
Default: -
Example: myshop
🗝AccessToken : String
Shopify Admin API access token (private or custom app token).
Default: -
Example: Private: shpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx OAuth: shpca_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ApiVersion : String
Shopify Admin API version to use.
Default: -
Example: 2025-07
ThrowErrorOnFailure : Boolean
Whether to throw an error on failure. True by default.
Default: True
Example: false
ErrorMessageOnFailure : String
Overrides the error message on failure.
Default: -
Example: Failed to create product.
Success : Boolean
Indicates whether the retrieval was successful.
Example: true
CreatedProduct : JObject
The created product object returned by Shopify.
Example: { "id": 1234567890123, "title": "Example Product", "body_html": "Example Description", "vendor": "Example Vendor", "product_type": "Example Type", "status": "active", "variants": [ { "id": 987654321, "title": "Default Title", "price": "19.99", "sku": "EX-001" } ], "options": [ { "name": "Title", "values": ["Default Title"] } ] }
Error : Error
Error that occurred during task execution.
Example: object { string Message, object { Exception Exception } AdditionalInfo }
Changelog for Task Frends.Shopify.CreateProduct.
Refactored to use real API in tests rather than mocks
Initial implementation
Last updated
Was this helpful?
Was this helpful?

