Social Security Number (%SSN) Macro

Applies to ReadyAPI 3.51, last modified on March 21, 2024

The Social Security Number macro is used to insert social security numbers numbers into the strings generated by a data source using the Custom String data generator.

The macro is an analog of the Social Security Number data generator.


The macro has the following syntax:




Specifies the name of the country, for which social security numbers will be generated. Currently, there is only one possible value – US that corresponds to the United States. It is also the default value of the parameter. You cannot change it.

The parameter is case-insensitive.


The following example demonstrates the usage of the Social Security Number macro:

Social Security Number: %SSN(US)

Example: Social Security Number macro in Data Generator

Click the image to enlarge it.

Generates a string containing a social security number used in the United States.


For more information on adding macros to custom strings, see About Custom String Generator.

For more information on general rules used for specifying macro parameters, see Custom String Generator Rules.

See Also

Social Security Number Generator
Custom String Generator
Macro Reference

Highlight search results