Skip to main content
Solved

Wrong post period when adding a bill through api

  • May 7, 2025
  • 4 replies
  • 166 views

Hello, I’m currently trying to add a bill where the post period differs from the bill date. But it seems the system keeps taking the default post period based on date in case when my user profile don’t have a default branch.
When a default branch is assigned to the user profile, it appears to work correctly only for bills associated with that same branch.
For example, if the bill is in the BRANCH1 branch and the user's default branch is also BRANCH1, the Post Period is correctly populated based on the financial period of that branch.
However, when processing bills that belong to other branches such as BRANCH2 or BRANCH3 the Post Period instead defaults based on the document date rather than following the logic of the branch-specific period.

The endpoint we've tried:

/entity/Default/22.200.001/Bill

/entity/Default/24.200.001/Bill

Request Method: @PUT

Request Body:
 

{
...
"Date": {
"value": "2025-02-11T05:00:00.000+0000"
},
"BranchID": {
"value": "BRANCH1"
},
"PostPeriod": {
"value": "032025"
},
"Type": {
"value": "Bill"
},
...
"Details": [
{
...

"Branch": {
"value": "BRANCH1"
},
...
}
]
...
}

Is there a way to have the system consistently use the financial period of the bill, regardless of the user's default branch and bill date?

Best answer by mjjoachim

This seems to be resolved in Acumatica 2025 R2 SP1.

4 replies

  • Freshman II
  • September 23, 2025

We are running into this same issue. Has anyone gotten any updates on it or found a resolution?


  • Freshman II
  • Answer
  • January 12, 2026

This seems to be resolved in Acumatica 2025 R2 SP1.


Forum|alt.badge.img
  • Freshman I
  • January 20, 2026

BranchID should be passed first (Header level)

 

In Acumatica REST API, the Branch context must be established early, otherwise the system may default values (like Post Period) based on the wrong branch or only based on the Document Date.

 

 Since you are already passing BranchID at the header, that part is correct.

 

Use BranchID in the Details section (not Branch)

 

In the Bill Details (line level), Acumatica usually expects the field name as BranchID.

 

 If the payload uses "Branch" instead of "BranchID", the system may not correctly apply the line branch context, and this can cause the Post Period to default incorrectly.

 

 Recommended format:

 

"Details": [

{

"BranchID": { "value": "BRANCH1" },

...

}

]


WillH
Semi-Pro I
Forum|alt.badge.img+4
  • Semi-Pro I
  • January 23, 2026

Amazing note, thanks ​@FarhanaM60 

For the record, what worked for my testing just now (in a 2025R1 build) was:
Header:
 

"PX-CbApiBranch": "BRANCH1"

Body:

{
...
"Date": {
"value": "2025-02-11T05:00:00.000+0000"
},
"BranchID": {
"value": "BRANCH1"
},
"PostPeriod": {
"value": "032025"
},
"Type": {
"value": "Bill"
},
...
"Details": [
{
...
}
]
...
}



Actual presence in the “Details” section didn’t make a difference, appending the header (so enforcing the user context via Header) did.