> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NameValuePair.fetchNameValueTypes

`fetchNameValueTypes` takes no input parameters and returns a *types* list, which is an array of strings. Each string represents the name of a client-accessible type that supports name/value pairs.

Object *types* may include: `Account`, `AutoBill`, `BillingPlan`, `CurrencyAmount`, `PaymentMethod`, `Product`, `TimeInterval`, `Transaction`, `WebSession`.

## Input

This method accepts no input parameters.

## Output

*return*: an object of type `Return` that indicates the success or failure of the call.

*types*: an array of strings representing the types of objects that support name-value pairs.

## Returns

This method returns the codes listed in [The Return Object](The_Return_Object).

## Example

```

$nvp = new NameValuePair();
$response = $nvp->fetchNameValueTypes();

if ($response['returnCode'] == 200) {
   $names = $response['types];
   foreach ($types as $type) {
      print "$type\n";
   }
}
else {
   print "Error: " . $response['returnString'] . "\n";
}
```

**Parent topic:**[NameValuePair Methods](../topics/NameValuePair_Methods)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.