Apidog Docs
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
HomeLearning CenterSupport CenterAPI References
HomeLearning CenterSupport CenterAPI References
Discord Community
Slack Community
X / Twitter
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
  1. Learning Center
  • Back to home
  • Dynamic values Modules
  • Airline
  • Animal
  • Color
  • Commerce
  • Company
  • Database
  • Datatype
  • Date
  • Finance
  • Food
  • Git
  • Hacker
  • Helpers
  • Image
  • Internet
  • Location
  • Lorem
  • Music
  • Number
  • Person
  • Phone
  • Science
  • String
  • System
  • Vehicle
  • Word
  1. Learning Center

Commerce

Module to generate commerce and product related entries.
Overview
For a long product name like 'Incredible Soft Gloves', use productName(). The product names are generated from a list of adjectives, materials, and products, which can each be accessed separately using productAdjective(), productMaterial(), and product(). You can also create a description using productDescription().
For a department in a shop or product category, use department().
You can also create a price using price().

department#

Returns a department inside a shop.
Returns: string
Examples

isbn#

Returns a random ISBN identifier.
Parameters
NameTypeDefaultDescription
separatorstring'-'The separator to use in the format.
variant101313
Returns: string
Examples

price#

Generates a price between min and max (inclusive).
To better represent real-world prices, when options.dec is greater than 0, the final decimal digit in the returned string will be generated as follows:
50% of the time: 9
30% of the time: 5
10% of the time: 0
10% of the time: a random digit from 0 to 9
Parameters
NameTypeDefaultDescription
decnumber2The number of decimal places.
maxnumber1000The maximum price.
minnumber1The minimum price.
symbolstringβ€˜β€™The currency value to use.
Returns: string
Examples

product#

Returns a short product name.
Returns: string
Examples

productAdjective#

Returns an adjective describing a product.
Returns: string
Examples

productDescription#

Returns a product description.
Returns: string
Examples

productMaterial#

Returns a material of a product.
Returns: string
Examples

productName#

Generates a random descriptive product name.
Returns: string
Examples
Previous
Color
Next
Company
Built with