Function: CreateOrUpdateCustomFields
The CreateOrUpdateCustomFields function creates, updates or deletes custom fields of all custom field types.
- EAT Encryption Additional Terms parameter:None
- API version: V11
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 /v11/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>
<CreateOrUpdateCustomFields xmlns="http://Tipalti.org/">
<payerName>string</payerName>
<timestamp>double</timestamp>
<key>string</key>
<customFieldInfo>
<TipaltiCustomField>
<Title>string</Title>
<Description>string</Description>
<Action>string</Action>
<Entity>
<CustomFieldEntity>string</CustomFieldEntity>
<CustomFieldEntity>string</CustomFieldEntity>
</Entity>
<SubEntity>string</SubEntity>
<Type>string</Type>
<IframeDisplay>boolean</IframeDisplay>
<Values>
<CustomFieldValue>
<Value>string</Value>
<Code>string</Code>
<PayerEntityName>string</PayerEntityName>
<IsActive>boolean</IsActive>
</CustomFieldValue>
</Values>
</TipaltiCustomField>
<TipaltiCustomField>
<Title>string</Title>
<Description>string</Description>
<Action>string</Action>
<Entity>
<CustomFieldEntity>string</CustomFieldEntity>
<CustomFieldEntity>string</CustomFieldEntity>
</Entity>
<SubEntity>string</SubEntity>
<Type>string</Type>
<IframeDisplay>boolean</IframeDisplay>
<Values>
<CustomFieldValue>
<Value>string</Value>
<Code>string</Code>
<PayerEntityName>string</PayerEntityName>
<IsActive>boolean</IsActive>
</CustomFieldValue>
</Values>
</TipaltiCustomField>
</customFieldInfo>
</CreateOrUpdateCustomFields>
</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>
<CreateOrUpdateCustomFieldsResponse xmlns="http://Tipalti.org/">
<CreateOrUpdateCustomFieldsResult>
<errorMessage>string</errorMessage>
<errorCode>string</errorCode>
<b>boolean</b>
<i>integer</i>
<d>double</d>
<s>string</s>
<CustomFieldUpdateResult>
<TipaltiCustomFieldUpdateResponse>
<Result>string</Result>
<Message>string</Message>
<CustomField>
<TipaltiCustomField>
<Title>string</Title>
<Description>string</Description>
<Action>string</Action>
<Entity>
<CustomFieldEntity>string</CustomFieldEntity>
<CustomFieldEntity>string</CustomFieldEntity>
</Entity>
<SubEntity>string</SubEntity>
<Type>string</Type>
<IframeDisplay>boolean</IframeDisplay>
<Values>
<CustomFieldValue>
<Value>string</Value>
<Code>string</Code>
<PayerEntityName>string</PayerEntityName>
<IsActive>boolean</IsActive>
</CustomFieldValue>
</Values>
</TipaltiCustomField>
</CustomField>
</TipaltiCustomFieldUpdateResponse>
<TipaltiCustomFieldUpdateResponse>
<Result>string</Result>
<Message>string</Message>
<CustomField>
<TipaltiCustomField>
<Title>string</Title>
<Description>string</Description>
<Action>string</Action>
<Entity>
<CustomFieldEntity>string</CustomFieldEntity>
<CustomFieldEntity>string</CustomFieldEntity>
</Entity>
<SubEntity>string</SubEntity>
<Type>string</Type>
<IframeDisplay>boolean</IframeDisplay>
<Values>
<CustomFieldValue>
<Value>string</Value>
<Code>string</Code>
<PayerEntityName>string</PayerEntityName>
<IsActive>boolean</IsActive>
</CustomFieldValue>
</Values>
</TipaltiCustomField>
</CustomField>
</TipaltiCustomFieldUpdateResponse>
</CustomFieldUpdateResult>
</CreateOrUpdateCustomFieldsResult>
</CreateOrUpdateCustomFieldsResponse>
</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 | |
customFieldInfo |
|
Mandatory | Array of TipaltiCustomField |
TipaltiCustomField
element |
Description |
Limitation |
Mandatory? |
Data Type |
---|---|---|---|---|
Title |
|
|
Mandatory | string |
Description |
|
Max. length = 50 | Optional | string |
Action |
|
Valid values:
|
Mandatory | string |
Entity |
|
Valid values:
Note: The entity type of the custom field cannot be changed. |
Mandatory | Array of CustomFieldEntity |
SubEntity | Type of invoice entity | Valid values:
|
Optional | string |
Type |
|
Valid values:
Note: The value type of the custom field cannot be changed. |
Mandatory | string |
IframeDisplay | Indicates if the custom field is to display on the invoice PDF-generated template |
|
Optional | boolean |
Values | List of values available for the custom field |
Mandatory, if type = MultipleValues or type = ListOfValues |
Array of Custom FieldValue |
CustomFieldEntity
Element |
Description |
Limitation |
Mandatory? |
Data Type |
---|---|---|---|---|
CustomFieldEntity |
|
Valid values:
Note: The entity type of the custom field cannot be changed. |
Mandatory | string |
CustomFieldValue
Element |
Description |
Limitation |
Mandatory? |
Data Type |
---|---|---|---|---|
Value | The list item name you want displayed for payers (in the Tipalti Hub and reports) and payees (onboarding process) |
|
Optional | string |
Code | The unique ID of the list item |
|
Optional | string |
PayerEntityName | The name of the payer entity linked to the custom field |
|
Optional | string |
IsActive |
|
Valid values:
|
Optional | boolean |
Response parameters
Element |
Description |
Data Type |
---|---|---|
CreateOrUpdateCustomFieldsResult | Contains the response parameters | TipaltiCustomFieldsUpdateResponse (extension of type TipaltiResponse) |
TipaltiCustomFieldsUpdateResponse
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 |
b | If the return code is Boolean, this parameter will carry the value. | boolean | |
i | If the return code is integer, this parameter will carry the value. | integer | |
d | If the return code is double, this parameter will carry the value. | double | |
s | If the return code is string, this parameter will carry the value. | string | |
CustomFieldUpdateResult |
|
Array of TipaltiCustomField UpdateResponse |
TipaltiCustomFieldUpdateResponse
element |
description |
Limitation |
data type |
---|---|---|---|
Result | The result of your request to create, update or delete a custom field |
Valid values:
|
string |
Message | A description of the result | string | |
CustomField | Returns custom field details | TipaltiCustomField |
TipaltiCustomField
element |
Description |
Limitation |
Data Type |
---|---|---|---|
Title |
|
|
string |
Description |
|
Max. length = 50 | string |
Action |
|
Valid values:
|
string |
Entity |
|
Valid values:
Note: The entity type of the custom field cannot be changed. |
Array of CustomFieldEntity |
SubEntity | Type of invoice entity | Valid values:
|
string |
Type |
|
Valid values:
|
string |
IframeDisplay | Indicates if the custom field is to display on the invoice PDF-generated template |
|
boolean |
Values | List of values available for the custom field | Array of Custom FieldValue |
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 |
PayerEntityName | The name of the payer entity linked to the custom field |
|
string |
IsActive |
|
Valid values:
|
Optional |