Jump to content

Need sample JSON to create a journal entry


 Share

Recommended Posts

Hi,

 

I am using the lock step C# API to create journal entries. My code returns a 500 server error. Is my JSON correct? 

https://developer.sage.com/sage-network-api/reference/production/#tag/JournalEntries

[{"Source":0,"PostingDate":"2024-06-05T09:07:50.7738748-04:00","Status":0,"Description":"Joe","Comment":"Joe","ReferenceNumber":"Reference","SourcePostingDate":"0001-01-01T00:00:00","Created":"0001-01-01T00:00:00","CreatedUserId":"7f2c51b9-18c0-46af-9bcf-ad6d47d47c1a","Modified":"0001-01-01T00:00:00","SourceModifiedDate":"0001-01-01T00:00:00","Lines":[{"AccountNumber":"5010","AccountName":"Cost of Goods Sold - Inventory \u0026 Materials","Debit":0,"Credit":100,"CurrencyCode":"USD","BaseDebit":0,"BaseCredit":100,"BaseCurrencyCode":"USD","Memo":"Test","SourceObjectType":0,"Created":"0001-01-01T00:00:00","Modified":"0001-01-01T00:00:00","SourceModifiedDate":"0001-01-01T00:00:00"},{"AccountNumber":"1205","AccountName":"Inventory","Debit":100,"Credit":0,"CurrencyCode":"USD","BaseDebit":100,"BaseCredit":0,"BaseCurrencyCode":"USD","Memo":"Test","SourceObjectType":0,"Created":"0001-01-01T00:00:00","Modified":"0001-01-01T00:00:00","SourceModifiedDate":"0001-01-01T00:00:00"}]}]

I know it is a problem with the lines element.

Link to comment
Share on other sites

  • Administrators

Hi Joseph,

The Lockstep API will be relaunched as Sage Network API in the coming months, so we'd advise waiting for this before investing in an integration. We have documented some initial details you can read here, and you can also sign up to the waiting list to be informed when we launch.

 

Regards,

Ben

Link to comment
Share on other sites

Thanks for the heads up. I see no docs on journal entries. Will that be included in the API? Also, will there be updated to the Lockstep API for C#? My customer uses Sage 50 Desktop Edition U.S. Will this API work?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...