Muhammad Zubair Posted June 12 Posted June 12 We need to develop Odoo-Sage module to sync the following: Invoices Bills Sales/Purchase transactions Tax how can i get all the above fields which api end points will be used.
Steel, Mark Posted June 13 Posted June 13 Hi @Muhammad Zubair, Thank you for your post. Can you confirm which Sage product you are looking to integrate with please? Thanks Mark 1
Steel, Mark Posted June 13 Posted June 13 Thanks @Muhammad Zubair, If you use the forums in https://developer-community.sage.com/forum/4-sage-business-cloud-accounting/ there'll be no further confusion over the product in question. For Sage Business Cloud Accounting in CA, IE and UK you would need to use the API's referenced below for the requirements you mention: https://developer.sage.com/accounting/reference/invoicing-sales/ https://developer.sage.com/accounting/reference/invoicing-purchases/ https://developer.sage.com/accounting/reference/payments/ https://developer.sage.com/accounting/reference/taxes/ If you're unfamiliar with the product and API's our Quick Start guide is a good place to start. Thanks Mark 1
Muhammad Zubair Posted June 13 Author Posted June 13 is it possible that if i have set my country UK in my account but i want to access the USA endpoints for the above fields. And one thing more is the above endpoints are for US indiana too.
Steel, Mark Posted June 13 Posted June 13 @Muhammad Zubair, Have you signed up for a UK Trial Account https://developer.sage.com/accounting/quick-start/set-up-the-basics/? The businesses are provisioned legislatively based on the region of the business. You cannot use a UK business for US legislation. The API's will work for Sage Business Cloud Accounting Businesses in the US but please note the product is no longer offered for sale in the US and we cannot provide trial accounts for this region. Thanks Mark 1
Muhammad Zubair Posted June 24 Author Posted June 24 i have a question. i'm creating the sales invoice in sage accounting but when i test the endpoint of sales invoice on postman it gives me message forbidden. how can i resolve the access rights issue in my account i have tried searching many resources but still void.
Steel, Mark Posted June 24 Posted June 24 Hi @Muhammad Zubair, Can you provide the error number and the message in the error response together with the business_id of the business you are trying to post the sales_invoice to please. Thanks Mark
Ahsam Yousaf Posted June 25 Posted June 25 in the above images the sales invoices are created on the sage account but when it comes to API response the above message "Forbidden" is displayed
Steel, Mark Posted June 25 Posted June 25 Thanks @Ahsam Yousaf It looks as if the user does not have the correct access to create a sales_invoice in this business. What is the requested_by_id in the access_token stored in POSTMAN and the business id please? Thanks Mark 1
Steel, Mark Posted June 26 Posted June 26 Hi @Ahsam Yousaf, I've been able to find your client_id and from that the business id you are testing with. From our logs it would appear that the 403 error response is due to the access_token being invalid. The access_token lasts only for 5 minutes before expiration and requiring a refresh. There's a small POSTMAN collection and environment available from the below link which uses a script to exchange access_tokens stored in the environment. https://drive.google.com/file/d/1cxvieOD6tVFXqssbYQmM4qLp9_6a0BRN/view?usp=drive_link. You can follow the guide at https://developer.sage.com/accounting/quick-start/preparing-to-create-test-data/ as far as the authentication and storing of tokens is concerned. Once you've authenticated you'll be able build out the collection by duplicating requests and renaming to ensure you are using the script to exchange tokens. Thanks Mark 1
Ahsam Yousaf Posted June 27 Posted June 27 We need to develop Odoo-Sage module to sync the following: Bills Sales/Purchase Invoices Tax. i'm done with the sales/ purchase invoices but don't know what are the bills and tax and in sage where we can find the Bills and Taxes.
Steel, Mark Posted June 27 Posted June 27 @Ahsam Yousaf - Bills is terminology usually associated with Canadian Supplier/Vendor invoices. "We need to develop Odoo-Sage module to sync the following" - What are the user stories and requirements you're working to for the integration please? It seems to be very high level. Do you have screenshots of how/where the income and expenditure needs to appear in the Sage Business Cloud Accounting UI? In Sage Business Cloud Accounting there are different transactions that can record income and expenditure you needs to understand how they need to be recorded. Thanks Mark
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now