- Generate variants
- Production sever for Ordercloudhttps://api.ordercloud.io/v1/products/{productID}/variants/generate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.ordercloud.io/v1/products/{productID}/variants/generate?overwriteExisting=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Active": false
}'ID of the organization that owns the product. Only the marketplace owner can override the OwnerID on create.
When provided, no explicit price schedule assignment is required. When a price schedule assignment exists, it will override any default provided.
If true, when this product is ordered by a buyer, it will automatically be added to a new order from the marketplace owner to the default supplier and submitted. Requires a valid DefaultSupplierID.
If true, ParentID must be null, as a parent product cannot have a parent itself.
If true, IsParent must be false, as a parent product cannot be a bundle.
For reference only, does not influence any OrderCloud behavior. Used to indicate an amount per Quantity.
If false, product is not visible or purchasable from a buyer's perspective.
Count of variants generated from the product/spec combinations.
Marketplace owner or supplier AddressID where the product will be shipped from. Can be used to calculate shipping costs.
{ "Enabled": false, "NotificationPoint": 0, "VariantLevelTracking": false, "OrderCanExceed": false, "QuantityAvailable": 0, "LastUpdated": "2018-01-01T00:00:00-06:00" }
If true, all suppliers are eligible to opt into selling this product.
{ "OwnerID": "", "DefaultPriceScheduleID": "", "AutoForward": false, "ID": "", "ParentID": "", "IsParent": false, "IsBundle": false, "Name": "", "Description": "", "QuantityMultiplier": 0, "ShipWeight": 0, "ShipHeight": 0, "ShipWidth": 0, "ShipLength": 0, "Active": false, "SpecCount": 0, "VariantCount": 0, "ShipFromAddressID": "", "Inventory": { "Enabled": false, "NotificationPoint": 0, "VariantLevelTracking": false, "OrderCanExceed": false, "QuantityAvailable": 0, "LastUpdated": "2018-01-01T00:00:00-06:00" }, "DefaultSupplierID": "", "AllSuppliersCanSell": false, "Returnable": false, "DateCreated": "2018-01-01T00:00:00-06:00", "xp": {} }