Skip to main content
Skip table of contents

API Transactions Posting to Incorrect Branch or Period

Date: 5/11/2025

Status: Fixed in 2024R215, 2025R101, 2025R2RC

Reference: CE00064587

Issue

In some API scenarios, transactions (such as AP Bills or Payments) may not respect the intended branch or financial period provided in the request. This can result in documents being posted to the wrong branch or period.

For example, AP Bills may ignore the PostPeriod and default to the document date, or Payment References may be applied to an incorrect branch/location.

Workaround

To ensure transactions are processed in the correct branch and period, explicitly set the branch context in your API request:

  • Add the following HTTP header:

    • PX-CbApiBranch = <Target BranchID>

  • Ensure the BranchID is also correctly populated in the request payload

With this configuration:

  • The PostPeriod provided in the payload will be honoured

  • Transactions (including Payment References) will be applied to the correct branch/location

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.