| Name | Type | Options | Opt/Req | Description |
| stateName | 50A | Value Varying | Req | The state name to convert. |
| format | 5A | Const | Opt | Specifies the format of the return string: 'upper' for all upper case; 'lower' for all lower case; 'mixed' for mixed case. 'upper' is the default if not sent. |
| Returns: | 2A | n/a | n/a | The state code of the state name. |