Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding Business Unit - Purchase Orders #485

Open
guilhermeblima opened this issue Sep 18, 2023 · 2 comments
Open

Error when adding Business Unit - Purchase Orders #485

guilhermeblima opened this issue Sep 18, 2023 · 2 comments

Comments

@guilhermeblima
Copy link

SDK you're using (please complete the following information):

  • Xero.NetStandard.OAuth2 3.33.0

Describe the bug
When attempting to create a Purchase Order via the API, I consistently encounter the following validation error:

"Unknown tracking details. A Tracking Category did not match a known Active TrackingCategory."

  1. I can confidently confirm that the tracking category used is valid, as it is successfully used for invoices within the system.

  2. This error persists when using the API Explorer, which suggests that it's not an isolated issue on my end.

To Reproduce
Steps to reproduce the behavior:

  1. Make a call to CreatePurchaseOrdersAsync with a LineItem containing a valid LineItemTracking
  2. API returns the following error: "Unknown tracking details. A Tracking Category did not match a known Active TrackingCategory"

Expected behavior
The API should accept the valid tracking (Business Unit) details without triggering a validation error.

Additional context
I've noticed a similar issue here
Example payload:
{ "PurchaseOrders": [ { "Contact": { "ContactID": ContactID }, "LineItems": [ { "Description": "Purchase Order - Terms and Conditions, "UnitAmount": 1.0000, "TaxType": "INPUT2", "TaxAmount": 0.15, "LineAmount": 1.00, "AccountCode": "811", "Tracking": [ { "TrackingCategoryID": TrackingCategoryID, "TrackingOptionID": TrackingOptionID "Options": [], "ValidationErrors": [] } ], "Quantity": 1.0000, "ValidationErrors": [] } ], "Date": "2023-09-18" } ] }

@github-actions
Copy link

PETOSS-348

@github-actions
Copy link

Thanks for raising an issue, a ticket has been created to track your request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant