Specs
Specs are used to capture user input when adding a Product to an Order. At its simplest, a spec is a name/value pair. A spec value may have a price markup or markdown associated with it. In more advanced scenarios, specs can drive the product SKU. For example, a product may be available in 3 colors and 3 sizes and therefore have a total of 9 SKUs. **The OrderCloud platform will choose the correct SKU based on the user-selected color and size specs**.
Specs.List
List specs
v1/specs
Specs.Create
Create a spec
v1/specs
Specs.ListProductAssignments
List spec product assignments
v1/specs/productassignments
Specs.SaveProductAssignment
Create or update a spec product assignment
v1/specs/productassignments
Specs.Get
Retrieve a spec
v1/specs/{specID}
Specs.Save
Create or update a spec
v1/specs/{specID}
Specs.Delete
Delete a spec
v1/specs/{specID}
Specs.Patch
Partially update a spec
v1/specs/{specID}
Specs.ListOptions
List spec options
v1/specs/{specID}/options
Specs.CreateOption
Create a spec option
v1/specs/{specID}/options
Specs.GetOption
Retrieve a spec option
v1/specs/{specID}/options/{optionID}
Specs.SaveOption
Create or update a spec option
v1/specs/{specID}/options/{optionID}
Specs.DeleteOption
Delete a spec option
v1/specs/{specID}/options/{optionID}
Specs.PatchOption
Partially update a spec option
v1/specs/{specID}/options/{optionID}
Specs.DeleteProductAssignment
Delete a spec product assignment
v1/specs/{specID}/productassignments/{productID}