Details
-
Technical Testing
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
Commerce Sprint 06 - Mar/2023, Commerce Sprint 07 - Apr/2023
Description
As a 3rd Party
I want to be able to create a virtual product via API
So that I can do in a headless scenario what I can do through the UI
Acceptance Criteria
- Additional optional parameters to create a virtual product using the create product Headless API:
- URL or attachment for virtual product
- Optional
- Activation status (pending / processing / completed)
- (optional, set to Completed if not passed)
- Duration (n. of days you can see the download button)
- Optional, set to unlimited if not passed)
- Max Number of Downloads
- (optional, set to unlimited if not passed)
- Enable sample attachment
- (optional)
- URL or attachment for the sample
- (optional)
- Enable Terms of Use ---> if yes you can add a text or select a web content
- (optional)
- URL or attachment for virtual product
- If any of these new parameters are passed with a value and the product type is not set as virtual, we return an error:
- "Product Type Must be Virtual if using this parameter"
- Backwards compatibility of the API should be maintained as all new parameters are optional.
Attachments
Issue Links
- relates
-
COMMERCE-11069 Virtual Product cannot be published if URL or File is missing
-
- Closed
-