Create
Creates a new product.
Examples
$saved = new SureCart\Models\Product([
'name' => 'Product 1',
'description' => 'Product 1 description',
])->save();
Model Attributes
Whether or not this product is archived.
The product’s description, meant to be displayable to the customer.
Whether or not licensing is enabled for this product.
The max number of activations allowed per license. If set to `null` then unlimited activations are allowed.
The product’s name, meant to be displayable to the customer.
Whether the product is for a one-time purchase or a recurring (subscription) purchase.
If set to `true` checkouts with this product will require a full shipping address.
The tax category/code that matches this product – one of `digital`, `tangible`, `service`, or `saas`.
If set to `true` this product is considered taxable.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
The UUID of the current release download.
The UUID of the media.
A list of this product's prices. (This can only be set when creating a new product.)
The UUID of the product group.
Response Attributes
The UUID of the specific object.
A string describing the object type returned.
Whether or not this product is archived.
The product’s description, meant to be displayable to the customer.
Whether or not licensing is enabled for this product.
The max number of activations allowed per license. If set to `null` then unlimited activations are allowed.
The product’s name, meant to be displayable to the customer.
Whether the product is for a one-time purchase or a recurring (subscription) purchase.
If set to `true` checkouts with this product will require a full shipping address.
The tax category/code that matches this product – one of `digital`, `tangible`, `service`, or `saas`.
If set to `true` this product is considered taxable.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Time at which the object was archived. Measured in seconds since the Unix epoch.
The associated current release download.
The associated media.
A list of associated downloads.
A list of associated prices.
The associated product group.
Time at which the object was created. Measured in seconds since the Unix epoch.
Time at which the object was last updated. Measured in seconds since the Unix epoch.