Use this guide to set up and apply payment reference when you pay vendor journals with Xe in D365 Finance and Operations. This feature makes payment references more useful. Without it, long company names can push out invoice information.
Important: Do not use special characters in the payment reference. Use only letters, numbers, and spaces in your custom reference text. If you use special characters, the payment status may show as "Payment with issues".
What this feature does
When you enable this feature, you can choose how the payment reference is built. You can add custom reference text and preview the result before you save. Payment references have a 35-character limit. If your preview goes over this limit, the system shortens it.
Before you start
You need access to Xe settings in D365 Finance and Operations. The setup only applies after you click Save. If a batch already has a payment reference, the system keeps it when it creates a contract.
How to set it up
- Open Xe settings.
- Find the Custom payment reference toggle.
- Set the toggle to Enabled if you want to control how the reference is built.
- Select a payment reference format.
- Enter a value in Custom reference if your format uses custom text.
- Review the Preview field.
- Click Save.
If you set the toggle to Disabled, the system hides the controls. It then uses the standard payment reference logic.
Available payment reference formats
| Format | How the reference is built | When to use it |
|---|---|---|
| Invoice number first | The invoice number appears before your custom reference text. | Use when invoice visibility matters most. |
| Invoice number last | Your custom reference text appears before the invoice number. | Use when business context should appear first. |
| Invoice number only | The reference uses only the invoice number. | Use when you need a short, invoice-led reference. |
| Custom reference only | The reference uses only your custom text. | Use when invoice details should not appear. |
How the reference is generated
If Custom payment reference is disabled, the system builds the reference like this:
- No invoice attached: account name only
- One invoice attached: account name – invoice number
- Multiple invoices attached: account name – Multiple Invoices
If Custom payment reference is enabled, the system uses your saved format and custom reference settings.
If you create a contract without a linked invoice:
- If custom payment reference is off, the reference uses the account name only.
- If custom payment reference is on, the reference uses your custom text only.
- If custom payment reference is on and the custom field is blank, the reference is blank.
Note: The preview shows the expected format before you save. The final value still follows the 35-character limit.
Rules to follow
- The maximum length is 35 characters.
- Changes only apply after you click Save.
- Do not use special characters in custom reference text.
- Use only letters, numbers, and spaces.
- If you use special characters, the payment status may show as "Payment with issues".
- If a batch already has a payment reference, the system keeps it during contract creation.
Avoid symbols such as ! @ # $ % ^ & * ( ) - _ + = / \ | : ; " ' , . ? < > [ ] { }
How to use it during payment processing
- Create or open a vendor payment journal in D365 Finance and Operations.
- Attach the required invoice, if you need one.
- Use Pay with Xe.
- Review the payment reference, which is based on your saved settings.
- Update the payment reference by hand before you confirm the contract, if your process allows it.
Example scenarios
| Scenario | Setting | Result |
|---|---|---|
| One invoice attached, custom setting off | Disabled | Account name – invoice number |
| No invoice attached, custom setting off | Disabled | Account name only |
| Multiple invoices attached, custom setting off | Disabled | Account name – Multiple Invoices |
| One invoice attached, Invoice number first | Enabled | Invoice number before custom text |
| One invoice attached, Invoice number last | Enabled | Custom text before invoice number |
| One invoice attached, Invoice number only | Enabled | Invoice number only |
| No invoice attached, Custom reference only | Enabled | Custom text only |
| No invoice attached, custom reference blank | Enabled | Blank payment reference |