Jump to content

Ben Smith

Administrators
  • Content Count

    58
  • Joined

  • Last visited

  • Days Won

    1

Ben Smith last won the day on March 5

Ben Smith had the most liked content!

Community Reputation

12 Good

5 Followers

Personal Information

  • Job Title
    Sage Technical Enablement Manager

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This is interesting, I'll see what I can find out and let you know! Ben
  2. Hi Reginald, Apologies for the delay in getting back to you. The only way at present I can see this working is if your customer's user is only going to be using your application, if authentication is handled during initial setup by the admin, then subsequently you maintain the connection via the refresh token - anyone that uses your app after that should be able to do so without ever knowing the credentials required to log in and access the Sage Business Cloud Accounting (SBCA) business. Obviously this depends upon how you are handling multiple users of your app and if they are requ
  3. Hi Aladin, This is most likely because you are passing the attributes and values as query params. You need to ensure you build a JSON body as per our API reference, passing the values accordingly, along with a header of Accept: application/json: Purchase Transactions | Sage Developer { "purchase_invoice": { "contact_id": "string", "date": "2019-08-24", "due_date": "2019-08-24", "reference": "string", "total_quantity": 0, "net_amount": 0, "tax_amount": 0, "total_amount": 0, "invoice_lines": [ ... ], "tax_analysis": [] } } Once you've had a loo
  4. Hi Dave, Hope you are well. I've done some testing and can see that you can do exactly what you are asking within the UI but not via the API. I will be reporting this to be investigated. In my tests is seems that regardless what you do via the API the logic appears to only take note of the net amount, the tax id and then calculate the tax amount. I'll see what I can do about this and let you know once I have more, or if I end up raising it as a bug. Ben
  5. Hi Reginald, I will do some checking to see if this is something a) we have and b) we can publish - as it would be really helpful to have further detail on these error messages and even recommendations on how to fix them available. I'll update this post with more if I have anything to share. Ben
  6. Glad you've got this working ok Sylvain 🙂 Yes as a rule the first time someone with the available permissions to authenticates with an app they will be asked to authorize that the application can access the business, once that is allowed the connection is present in the apps section of the UI settings. Ben
  7. Hi Andrew, That is not one I've seen before! How did you enter the invoices? Via the API? If so can you provide me with the JSON body you used to make the POST request? I can then do some testing. Ben
  8. Hi Reginald, The country hasn't any publicly exposed details available at present. Ben
  9. Hi Reginald, Thank you for the very detailed response, this makes sense now. As you are currently logged into the SolutionJ business, when you go to connect via your application to the Aardvark business, the cached session is used, authentication is already completed and the tokens returned are for the currently authenticated user logged into that business. Have you have found that there are circumstances where a user of your application will also need to be logged into Accounting in a separate business with different credentials? I'll investigate the business ids and se
  10. Hi Daniel, I'll reach out via a private message - I'll need some further details in order to check our logs. Ben
  11. Hi Reginald, I see now from this post you are correctly using the X-Business header, so disregard my reply in the other forum. It would be best to try and keep this thread in one place though, so if you can do that going forward that would be great. Can you advise further on how you have been simulating the refresh token expiry? Removing the connected app from inside the Web app UI will revoke the grant on all active tokens. Ben
  12. Hi Reginald, Unfortunately we don't have the analysis types available via the API yet. It is something we have provided a lot of feedback to the engineering teams about, and hope that we can offer it in the future. I don't as yet have an ETA on its availability though, please accept my apologies. Ben
  13. Hi Reginald, Authentication with Accounting is a little different to how others do it. When you authenticate, you are authenticating as a specific user, and will subsequently be granted a token that is valid for use in all businesses that user has been granted access to. It is therefore vital that you are using the /businesses endpoint to obtain the id of the business you are interested in, and pass that as a value with the X-Business header. That header routes any requests to that specific business. Depending on the email address used in your scenarios if its the email addres
  14. Hi Robert, Sorry for the delay in getting back to you - can you confirm which region the account is in? This could well be a legacy sub, and isn't to my knowledge one that you can get anymore. Ben
  15. Thanks for letting me know, if you decide to revisit this please get in touch. Ben
×
×
  • Create New...