Jump to content

Steel, Mark

Moderators
  • Posts

    480
  • Joined

  • Last visited

  • Days Won

    35

Posts posted by Steel, Mark

  1. Hi Alexander,

    Are you developing this integration specifically for Spain? 

    If so, Sage have halted sales of the Sage Business Cloud Accounting product in Spain due to upcoming legislative changes. Sage is working on a new online solution, and information relating to this will be released as soon as possible.

    Thanks

    Mark

  2. Hi Andreea,

    Is the business you're using a UK business registered for Standard VAT?

    There are a couple of PUT requests that need to be ran to ensure the financial year is set correctly before the import can begin. 

    If you can confirm the above we'll investigate the data.

    Thanks

    Mark

  3. Hi,

    Thank you for your question. The user_id is returned when obtaining the tokens and is found in the requested_by_id attribute of the refresh_token.

     

    {
        "refresh_token": "eyJhbGciOiJSUzUxMiIss9In0.ejkiLCJpYXQNjiNkdUG5L0w",
        "refresh_token_expires_in": 2678400,
        "scope": "full_access",
        "requested_by_id": "2b486e58-632a-a6cd-6ea8-eb5183931ad3"
    }

    Thanks

    Mark

  4. Hi, thanks for your post.

    The body your are using in the request works fine for a UK business. Is the business you are trying to create this for a UK business?

    if you make a GET request to the ledger_account_types API this will return all of the type ID's which are valid for the business and should include SALES

    GET https://api.accounting.sage.com/v3.1/ledger_account_types

    Thanks

    Mark

  5. Hi Sipho,

    I'm not sure I understand your issue and what it is you are expecting in the response? Are you following the auth guide https://developer.sage.com/accounting/guides/authenticating/authentication/. Could you reference in the guide what you are expecting?

    The flow is - You send the auth request with the scope and then the redirect takes the user to the sign in. There they will be asked to grant access to the connecting application. If the scope was passed they would see read_only or full_access when they grant the connecting application access.

    Once they have granted access the auth_code will be returned to your callback URL and then you exchange the auth_code for a set of tokens. On successful exchange tokens will be retuned for the access an refresh tokens. I've included an access token response below which includes the scope.
     

    {
        "access_token": "eyJhbKXQF-nHPIualmhB9QeRhqChs9jMOPtQv3md40eB1KY_SjfwhPCoWkwxZla9DVAgUf2aVKhw_cw3Rr6e1AjT8DrLlz-59IsC_QkibG0QsVkiolKAXljvogCIZacMSpKM4U2H5nDJzkNnHKXZhXQQJEwX5oh8dY4AN-jaucmRIL8XUi5NII1PbFHH-qMPCfQujs0stH3NUfTtSjk7-A4RAI3EwUvOxM2O_G8dz3nSa2yzLumwzDa7gFQeg3sZRbES3wnS_wW122S4DP6OHCkwcUy9MCs6XZlTjZ4sO1dyHHzeFRlxZbLwUE4yPJiIqJEF-Bs7veyL0RoNPYZXMdAVB6kvnfrprEJRL8ogJvPiocApQIM9eO-FDd6LADM",
        "refresh_token_expires_in": 2678400,
        "scope": "full_access",
        "requested_by_id": "2b486e58-632a-a6cd-6ea8-eb5183931ad3"
    }

    Thanks

    Mark

  6. Hi,
     
    Thank you for your post. The Sage Business Cloud Accounting public API's are available for all to use including those who wish to write an internal integration for their requirements.
     
    There are a few different API's that could be used to account for income/sales. From the information you've provided the other_payments API sounds best suited to your needs. This would allow you to pass in the bank_account_id and the ledger_account_id of the profit and loss nominal code you wish to post the sales to.
     
    Thanks
     
    Mark 
  7. Hi Brijesh,

    I'm sorry to hear your experience has not been positive. Could you provide the email address you sent the correspondence to please.

    The greatest confusion we see is people asking to integrate with Sage. Sage is our brand name which has many tens of products used by our customers in different regions around the world.

    If third party developers contact support we need to understand the products of interest and the region of the integration to efficiently route them to the correct team. We're constantly striving to improve the experience and route developers to the correct teams/individuals.

    Did you use the contact options for those products in https://developer.sage.com/? If you can provide us with any feedback relating to this interaction and how it can be improved that would be greatly beneficial.

    For example, we have a product called Sage 50 which has different API's/SDK's for the 3 countries it is sold in. If as a developer you wanted to create an integration you would need to be in contact with the UK developer services team and the North American team.

    Thanks

    Mark

×
×
  • Create New...