Skip to main content
Question

Unable to set Subaccount on AP Bill details via Rest API when it is defaulting from a vendor and doesn't match

  • January 16, 2026
  • 1 reply
  • 8 views

KurtBauer
Jr Varsity III
Forum|alt.badge.img

I’m trying to create a simple AP Bill via the Rest API, but am running into an issue where it appears Acumatica is validating the Subaccount field and producing an error even though I have valid accounts in the account and subaccount.  

Below in the UI screenshot when I enter line 1, the account and sub default from the vendor record.  In line 2 I have manually entered the account and subaccount from the payload that are valid.  In line 3 shows as I first update the account, the subaccount is showing an error just like the API payload response.  I can’t use PATCH because this is the initial PUT to create the bill.  I have also tried creating a non-stock item with no expense account or sub to see if that helps, but it does not.

Right now, the only solution I can see is to delete the account and subaccount from the vendor so it doesn’t default into the line.  One thought is to turn off the commit on the Account field in a customization, but that doesn’t feel right.

Are there any other solutions? 

Note: This is 2025 R2, not SP1

 

1 reply

KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • January 16, 2026

Adding a quick note after some additional research.  It appears the client may have previously enabled row level security, added some security and then disabled the feature without deactivating some of the security.   I’m looking to see if this can be cleaned up to potentially fix the issue.