HomeProduct DocsAPI ReferenceChangelog
RecurlyAPI GuidesRecurly.jsWebhooksAPI ReferenceSupportBook demo
Product Docs

Custom fields

Create and manage custom fields on accounts, charges, subscriptions, plans, and invoices to capture additional data tailored to your business needs.

Custom fields let you capture and store additional information on Recurly objects — accounts, charges, items, plans, and subscriptions. Define fields in the Admin Console and set or query their values through the UI or API to enrich your data with business-specific context.
Plan availability varies — see details below

Prerequisites

  • Users must have the Configuration permission within their role to create and edit custom field definitions.

Definition

Custom fields in Recurly are user-defined attributes you can add to accounts, charges, items, plans, and subscriptions to capture information that isn't part of Recurly's standard data model. You define custom fields in the Admin Console, then assign, edit, or query their values through the UI or the API. Use them to track subscriber IDs from external systems, sales rep names, acquisition channels, partner IDs, or any other data that helps you understand and operate your business.

Plan availability

PlanCustom field limit
Sandbox and Developer modesUp to 5 custom fields — for testing custom field behavior and verifying integrations.
StarterNot supported. If you enabled custom fields in Sandbox mode, you must remove them before transitioning to the Starter plan.
ProUp to 5 custom fields.
EliteUp to 10 custom fields.

Key details

Creating and editing custom field definitions

To create a custom field definition, navigate to Configuration → Custom Fields → Create Custom Field.

The following fields are available when creating a custom field definition:

FieldDescription
API field nameThe ID used in the API to reference the custom field. No spaces — numbers, letters, dashes, and underscores only.
Recurly objectThe object the custom field is created on: account, charge, item, plan, or subscription.
Allow this field to show up on invoicesWhen enabled, the field appears in the invoice template editor's variable picker. The field name and value will display on invoices.
Allow this field to show up in exportsWhen enabled, the field is included in exports associated with its Recurly object.
Admin Console AccessControls field visibility and editability in the UI: Hidden (API only), Read-only (viewable in UI, editable via API), or Editable (viewable and editable in both UI and API).
Admin Console field nameRequired when the field is set to visible or editable in the Admin Console. This name also appears on invoices when Allow this field to show up on invoices is enabled.
Tooltip descriptionWhen populated, a question mark icon appears next to the Admin Console field name, providing additional context for users.

Custom field data types

All custom fields are text fields with a 255-character limit. You can populate them with any combination of letters and numbers — for example, xyz123, John Smith, or こんにちは.

NoteCustom fields do not currently support picklist, boolean, true/false, or radio button data types.

Deleting custom field definitions

To delete a custom field definition, navigate to Configuration → Custom Fields.

Permanent data lossDeleting a custom field definition permanently removes all associated data on every object where it has been populated. For example, deleting a "Sales Rep" custom field will erase that data from every account where it was set. This action is irreversible and takes effect immediately when you click Confirm.
1

Note the API field name

In the Custom Fields table, copy the value in the Field Name (API) column for the field you want to delete.

2

Select Delete

Hover over the row of the custom field and click Delete on the right side of the table.

3

Confirm the deletion

Enter the API field name value you noted in step 1. The Confirm button becomes enabled once the value matches. Review the consequences, then click Confirm to permanently delete the field and all associated data.

Custom fields on an account

Account custom fields let you capture subscriber-specific data alongside the Account object — such as subscriber IDs from external systems, sales representative names, channel partner names, subscriber segments, or regions.

When an account custom field is set to Editable in the Admin Console, you can set its value when creating or editing an account. The field and its value appear within Account Information once the account is saved.

Custom fields on charges

Charge custom fields let you attach custom values to non-subscription line item charges or credits. This adds context to individual charges and enables conditional customization of email communications based on those values.

When a charge custom field is set to Able to be set in the Admin Console, you can populate it from the Add Charge page. The field and its value can be queried via the API.

Custom fields on a subscription

Subscription custom fields let you capture subscription-level data such as customer device ID, acquisition channel, customer segment, subscription ID from an external system, or partner ID.

When a subscription custom field is set to Editable in the Admin Console, you can set its value when creating or editing a subscription from the subscription details page.

Custom fields on a plan

Plan custom fields let you attach metadata to plans for integration rules, grouping, or display purposes — for example, flagging available upgrade or downgrade paths, defining rules for external systems such as NetSuite, grouping plans, or surfacing exclusive offers like professional support.

When a plan custom field is set to Editable in the Admin Console, you can set its value when creating or editing a plan.

Custom fields on invoices

Any custom field can be made available on invoices by enabling Allow this field to show up on invoices when creating the field definition. Once enabled, the field becomes selectable in the invoice template editor.

After the field is added to an invoice template, it will appear on any invoice where that custom field is populated:

  • Account custom fields display at the bottom of the "Bill to" section.
  • All other custom field types (plan, subscription, item, and charge) display within the invoice line item they're associated with.
Removing a field from a templateWhen a custom field is removed from an invoice template, it won't appear on any new invoices going forward — but existing invoices will continue to display it.

When account hierarchy is enabled and both the parent and child accounts have custom fields, the child account's custom fields are displayed on the invoice.

Custom fields are also returned through the invoices API (GET /invoices/{invoice_number}).


Did this page help you?