Apicat Docs
  1. Dynamic values Modules
Apicat Docs
  • What is Apicat?
  • Send requests
    • Create requests
      • Request basics
      • Parameters and body
      • Request headers
      • Request settings
      • Dynamic values
      • HTTP/2
      • SOAP/WebService
    • Authentication and authorization
      • Overview
      • CA and client certificates
      • Authorization types supported by Apidog
      • Digest Auth
      • OAuth 1.0
      • OAuth 2.0
      • Hawk Authentication
      • Kerberos
      • NTLM
      • Akamai EdgeGrid
    • Response and cookies
      • Overview
      • API response in Apidog
      • Create and send cookies
      • Debug requests
    • 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
  • Environments & variables
    • Overview
    • Using variables
    • Environments & services
  • Pre/Post processors
    • Overview
    • Assertion
    • Extract variable
    • Wait
    • Database operations
      • Overview
      • MySQL
      • MongoDB
      • Redis
      • Oracle Client
    • Using scripts
      • Overview
      • Pre processor scripts
      • Post processor scripts
      • Public scripts
      • Postman scripts reference
      • Calling other programming languages
      • Using JS libraries
      • Visualizing responses
      • Script examples
        • Assertion scripts
        • Using variables in scripts
        • Using scripts to modify request messages
        • Other examples
  • Best practices
    • How to handle API signatures
    • How to access OAuth 2.0 protected APIs
    • Apidog collaboration workflow
    • Managing authentication state in Apidog
  • Account & preferences
    • Account settings
    • Generate OpenAPI access token
    • Language settings
    • Hot keys
    • Network proxy configuration
    • Data backup
    • Updating Apidog
    • Deleting account
    • Experimental Features
  • References
    • API-Design First Approach
    • Apidog OpenAPI/Swagger Specificaiton Extensions
    • JSONPath
    • XPath
    • Regular Expressions
    • JSON Schema
    • CSV File Format
    • Install Java Environment
    • Runner deployment environment
    • Apidog flavored Markdown
  1. Dynamic values Modules

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
Modified at 2025-06-25 07:57:16
Previous
Color
Next
Company
Built with