Jump to content

Recommended Posts

Posted

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.

Posted

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

  • Like 1
Posted

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.

Posted

@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

  • Thanks 1
  • 2 weeks later...
Posted

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.

Posted

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
image.thumb.png.d0647ad46e6a5a0aa919f06f03d0139a.png

Posted

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

  • Thanks 1
Posted

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 

  • Like 1
Posted

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.

Posted

@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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...