Custom fields let you collect additional information from vendors when they submit an invoice. You define the fields, their types, and any conditions that control when each field is shown. Vendors see your custom fields as part of the invoice submission form. Common uses include capturing a purchase order number, a cost center code, a project name, or any internal reference your accounts payable team needs for routing and approval.Documentation Index
Fetch the complete documentation index at: https://docs.cleo-pay.com/llms.txt
Use this file to discover all available pages before exploring further.
Field types
| Type | Description |
|---|---|
TEXT | Free-form text input |
DROPDOWN | Single-select from a predefined list of options |
MULTIPLE_CHOICE | Multi-select from a predefined list of options |
DATE | Date picker |
NUMERIC | Numeric input |
NUMERIC_GROUP | A group of numeric fields with a calculated result (for example, quantity × rate = total) |
Create a custom field
Define the field
Call the create endpoint with a name, type, and whether the field is required. For The response includes the new field’s
DROPDOWN and MULTIPLE_CHOICE fields, include an options array.The example below creates a required text field for a purchase order number:id, which you need for subsequent update, delete, and reorder operations.Add visibility conditions (optional)
You can configure a field so it only appears when another field has a specific value. For example, show a “Project code” text field only when a “Department” dropdown is set to “Engineering”.Pass a The field is hidden from vendors unless the parent field has the specified value.
visibilityCondition object when creating or updating a field:Manage existing fields
List all fields:View active fields
To see exactly which fields vendors will encounter during invoice submission, retrieve the active fields list:API reference
| Method | Endpoint | Description |
|---|---|---|
POST | /api/businesses/{businessId}/payable-custom-fields | Create a custom field |
GET | /api/businesses/{businessId}/payable-custom-fields | List all custom fields |
PUT | /api/businesses/{businessId}/payable-custom-fields/{id} | Update a custom field |
DELETE | /api/businesses/{businessId}/payable-custom-fields/{id} | Delete a custom field (soft delete) |
GET | /api/businesses/{businessId}/payable-custom-fields/active | Get active fields |
PUT | /api/businesses/{businessId}/payable-custom-fields/reorder | Reorder fields |