Function: GetCustomFields
The GetCustomFields function returns the payer's defined custom fields.
- EAT Encryption Additional Terms parameter: None
 - API version: V13
 
The following is a sample SOAP 1.2 request and response. In the request, you need to replace the data types in yellow with actual values.
SOAP 1.2: Request
POST /v13/payerfunctions.asmx HTTP/1.1
Host: api.tipalti.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetCustomFields xmlns="http://Tipalti.org/">
<payerName>string</payerName>
<timestamp>double</timestamp>
<key>string</key>
</GetCustomFields>
</soap12:Body>
</soap12:Envelope>
SOAP 1.2: Response
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetCustomFieldsResponse xmlns="http://Tipalti.org/">
<GetCustomFieldsResult>
<errorMessage>string</errorMessage>
<errorCode>string</errorCode>
<CustomFields>
<CustomFieldInfo>
<Entity>
<CustomFieldEntity>string</CustomFieldEntity>
<CustomFieldEntity>string</CustomFieldEntity>
</Entity>
<Title>string</Title>
<Description>string</Description>
<ValueType>string</ValueType>
<SubEntity>string</SubEntity>
<Values>
<CustomFieldValue>
<Value>string</Value>
<Code>string</Code>
<LimitedToPayerEntities>
<string>string</string>
<string>string</string>
</LimitedToPayerEntities>
<IsActive>boolean</IsActive>
</CustomFieldValue>
</Values>
<Category>string</Category>
</CustomFieldInfo>
<CustomFieldInfo>
<Entity>
<CustomFieldEntity>string</CustomFieldEntity>
<CustomFieldEntity>string</CustomFieldEntity>
</Entity>
<Title>string</Title>
<Description>string</Description>
<ValueType>string</ValueType>
<SubEntity>string</SubEntity>
<Values>
<CustomFieldValue>
<Value>string</Value>
<Code>string</Code>
<LimitedToPayerEntities>
<string>string</string>
<string>string</string>
</LimitedToPayerEntities>
<IsActive>boolean</IsActive>
</CustomFieldValue>
</Values>
<Category>string</Category>
</CustomFieldInfo>
</CustomFields>
</GetCustomFieldsResult>
</GetCustomFieldsResponse>
</soap12:Body>
</soap12:Envelope>
Request parameters
| 
                                                                 element  | 
                                                            
                                                                 Description  | 
                                                            
                                                                 Limitation  | 
                                                            
                                                                 Mandatory?  | 
                                                            
                                                                 Data Type  | 
                                                        
|---|---|---|---|---|
| payerName | The name of the payer, as assigned by Tipalti | 
                                                                
  | 
                                                            Mandatory | string | 
| timestamp | 
                                                                 Current time (UTC) when the request is sent  | 
                                                            Unix time | Mandatory | double | 
| key | Encryption key | Mandatory | string | 
Response parameters
| 
                                                                 element  | 
                                                            
                                                                 description  | 
                                                            
                                                                 data type  | 
                                                        
|---|---|---|
| GetCustomFieldsResult | Contains the response parameters | TipaltiGetCustomFieldsResponse | 
TipaltiGetCustomFieldsResponse
| 
                                                                 element  | 
                                                            
                                                                 description  | 
                                                            
                                                                 Limitation  | 
                                                            
                                                                 data type  | 
                                                        
|---|---|---|---|
| errorMessage | A description of the error | See API error codes. | string | 
| errorCode | The status of the error | See API error codes. | string | 
| CustomFields | 
                                                                
  | 
                                                            Array of CustomFieldInfo | 
CustomFieldInfo
| 
                                                                 element  | 
                                                            
                                                                 Description  | 
                                                            
                                                                 Limitation  | 
                                                            
                                                                 Data Type  | 
                                                        
|---|---|---|---|
| Entity | 
                                                                
  | 
                                                            
                                                                 Valid values: 
 Note: The entity type of the custom field cannot be changed.  | 
                                                            Array of CustomFieldEntity | 
| Title | The name of the custom field | 
                                                                
  | 
                                                            string | 
| Description | Description of the custom field | Max. length = 50 | string | 
| ValueType | 
                                                                
  | 
                                                            
                                                                 Valid values: 
  | 
                                                            string | 
| SubEntity | Type of invoice entity | 
                                                                 Valid values: 
  | 
                                                            string | 
| Values | List of values available for the custom field | 
                                                                 Mandatory, if type = MultipleValues or type = ListOfValues  | 
                                                            Array of CustomFieldValue | 
| Category | 
                                                                
  | 
                                                            
                                                                 Valid values: 
  | 
                                                            string | 
CustomFieldEntity
| 
                                                                 Element  | 
                                                            
                                                                 Description  | 
                                                            
                                                                 Limitation  | 
                                                            
                                                                 Data Type  | 
                                                        
|---|---|---|---|
| CustomFieldEntity | 
                                                                
  | 
                                                            
                                                                 Valid values: 
 Note: The entity type of the custom field cannot be changed.  | 
                                                            string | 
CustomFieldValue
| 
                                                                 Element  | 
                                                            
                                                                 Description  | 
                                                            
                                                                 Limitation  | 
                                                            
                                                                 Data Type  | 
                                                        
|---|---|---|---|
| Value | The list item name you want displayed for payers (in the Tipalti Hub and reports) and payees (onboarding process) | 
                                                                
  | 
                                                            string | 
| Code | The unique ID of the list item | 
                                                                
  | 
                                                            string | 
| LimitedToPayerEntities element | A list of names of the Payer Entities linked to the Custom Field Value | 
                                                                
  | 
                                                            Array of string | 
| IsActive | 
                                                                
  | 
                                                            
                                                                 Valid values: 
  | 
                                                            Optional | 
string
| 
                                                                 element  | 
                                                            
                                                                 description  | 
                                                            
                                                                 limitation  | 
                                                            
                                                                 data type  | 
                                                        
|---|---|---|---|
| string | Array of strings each representing a Payer Entity name | 
                                                                
  | 
                                                            string |