• COMUser and COMPassword

    Where can you reset the COM UserID and COM Password?

    What is the difference between the COM UserID and the Admin user?

    SDK documentation does not really explain what it is looking for in the call to GetApplication.


                    ptApp = (IApplication)ptLogin…

  • Read Only message when attempting to SAVE a new PurchaseOrder or PurchaseInvoice

    I need to know if  the SDK will allow you to SAVE a PurchaseOrder or PurchaseInvoice

    So far no success.

    Getting error that the entity is READ-ONLY.

    Also, I do not see a "CREATE" method for purchase order lines or purchase invoice lines.

    I need…

  • Sage 50 SDK (API 2023)

    Hello all,

    I'm attempting to get a basic C# application off the ground in order to import sales invoice data.  I have received an Application Id for the app, and have called my session begin and am successfully viewing the company data. 


  • How to check if SalesInvoice is printed and get the Invoice No.

    Hello.  Is there a way using the SDK/API in .NET, to determine if a SalesInvoice has been printed and assigned an Invoice No.?  And where in the API can I find the Invoice No.?

    These seem like common questions, so I feel sure I must be overlooking something…

  • Read Only Error - General Journal

    I wrote an integration between a retail system and SAGE 50 using the SDK.  It was working fine a few weeks ago and now that I'm going back to add a few more things I am getting a READ-ONLY error message when attempting to post a general journal.


  • After random days have to re-authorize application?

    We have an exe that is NOT getting updated, but after a random (1-5) amount of days, quits working and needs to be re-authorized.  

    First error is:

    Sage.Peachtree.API.Exceptions.SageDriveAccessException: This company needs to be opened with Sage 50 in order…

  • How can I get the sales filtered by KEY?

    I am using the SDK, but I can't find how to filter by KEY use ID and/or KEY and it tells me that it is not possible

    Dim m_salesList = oCompanyContext.Factories.SalesInvoiceFactory.List()

    oFilterFact = FilterExpression.Equal(FilterExpression.Property…

  • .NET 5, 6 Support

    Hello.  Do we know when it might be possible to interface a .NET 5+ project with Sage 50?  Any idea of ETA or direction would be greatly appreciated.

    It looks like .NET Framework 4.8 was release just over 3 years ago (April 2019).

    If you're reading this and…

  • Can you create and save a Purchase Invoice using the SAGE 50 2022 SDK?

    I'm getting a "read-only" error when attempting to save a Purchase Invoice in SAGE 50 using the 2022 SDK.  I need to to know if this is supported or if I might be missing something that is causing this error.

  • Sage50 integration

    Hi I’m in the process of getting software integrated with sage50 , however they have some questions: Connection to your Sage50 instance
    Is there a public API available (Sage50 cloud?) If yes:
    what are the specific connection details? XML? JSON? Authentication…

  • Setting shipping/mailing addresses in Sales Orders and Purchase Orders

    I feel like there's something I'm missing.

    I can successfully create a Sales Order and a Purchase Order with line items in Sage50 using the .NET API (not ODBC). The issue I'm having is that while the correct vendor/customer are set, the address…

  • Integration With Sage 50 US . SDK .NET vs COM


    What are the options for integrating with the Non -Cloud , Desktop Version of Sage 50   ( US Edition ) ? 
    I was able to download the  Sage SDK which has  .NET and COM samples. 

    The .NET version  does not support a number of transactions/ entities. 
    The COM…

  • The entity is read-only

    I am currently developing an app with the .net sdk and am trying to input a sales invoice. All seems well until I call the .Save() method on my invoice. I get the error that the entity is read only. Based on a previous search through the forum, If I go…

  • VendorReceiptFactory filtering

    I would like to filter the List with a customer ID.  The VB code looks like this:

         Dim p As Sage.Peachtree.API.VendorReceiptList = Me.company.Factories.VendorReceiptFactory.List()
         Dim vendorFilter = PropertyFilterExpression.Equal(PropertyFilterExpression…

  • ETA on .NET 5+ Compatibility with Sage 50 SDK/API?


    I was wondering if there is a rough timeline for compatibility with .NET 5+ (formerly known as .NET Core) with the Sage 50 SDK/API?

    Apologies if I'm missed a similar question on the forums; I made a best-effort to check before asking.  As far…

  • Sage.Peachtree.API v2021.1.1.176 - SalesInvoice.Save() Issue

    Has anyone seen/resolved the following error when trying to save a sales invoice using SalesInvoice.Save()?

    Error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

    It worked fine before we switched…

  • Application Id

    We are an ISV looking to provide integrations to a number of clients.  If we obtain a developer's license and application id, how does that work with customer installs?  Also, will a single application Id be valid for any Sage desktop applications?

  • Is there a way to receive qty on a Purchase Order?

    Is there a way to receive qty on a Purchase Order Line?  These are non inventory items.  Using .Net SDK or COM SDK.

  • Using SDK can I add Telephone 1 for a Vendor which comes under General Tab in Sage 50 US

    Using SDK can I add Telephone 1 for a Vendor which comes under General Tab in Sage 50 US. Please assist.

  • Integrating Objets100cLib (Sage dll) to third party c# application

    Hi ,

    Greetings of the day !!!

    I need help integrating Objets100cLib (Sage dll) to third party c# application , can any one help with this ? i want to access data like suppliers/articles etc.

    Thanks in advance

  • How can we support multiple versions of Sage50

    We are a POS system using the COM component to integrate to Sage50.  We have some stores that use Sage50 2020 (which is the version of our COM component) and this works fine.  We have some that just installed the Sage50 2021 version, and our integration…

  • COM based GetApplication not allowing login?

    We have a client that has used our COM API based interface application with Sage since 2011.  They have just upgraded to Sage 50 2021, we have recompiled our application against this PAWLegacy.dll to maintain binary compatibility, but at the Login.GetApplication…
  • Sage 50 SDK Com - GetApplication returns null

    I am using the SDK Com interface.  Below when I call the GetApplication with the com username and password I get back a null value.  Under Sage Partners in Sage 50 the setting is medium.


    Login _peachtreeLogin = _peachtreeLoginSelector.GetCurrentLoginObject…

  • 'Non-zero amount must be rounded to whole currency' Sage 50 SDK

    When trying to save a sales order using the Sage 50 SDK, I get the error:

    ``` 'Non-zero amount must be rounded to whole currency'...```

    I've been able to save them using something like `_.Amount = _.CalculateAmount(_.Quantity, _.UnitPrice);` which…

  • Does Windows Service Connecting to Sage 50 US Via SDK Count As A User

    Our client has a five user license installation. We noticed that our windows service shows up as a user in login manager. Does this mean that a we need a new license for the windows service connecting to Sage 50 via the SDK?