Jump to content

Chris Astles

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Chris Astles

  1. I have created an app on an account in my name which needs to be transferred to a Sage developer account in another name. How can I do this?
  2. At the moment I'm just working on an integration within our product. Maybe in the future it could become a marketplace app, who knows 🙂
  3. Ah ok, I think I get it now. OAuth always allows my app access to all businesses linked to the account... the business my app makes requests for has to be stipulated in the header otherwise it will be the lead. Thanks for your help
  4. So if my app does not explicitly request them to choose a particular business, by default would they be allowing all businesses?
  5. I am trying to retrieve all invoices from the /sales_invoices GET endpoint, but only with certain attributes, like the contact (including all the nested_attributes). If I run /sales_invoices?attributes=status,currency,total_amount,contact&nested_attributes=all The contact is returned only with id, displayed_as and path. I noticed in the docs there is no mention of nested_attributes as a query parameter, but in the guides, sales_invoices is used as the example of how to search with nested_attributes, so there is a bit of inconsistency. The only way I can get the attributes I need is to search with attributes=all but this slows the request down considerably.
  6. Thanks Mark for your reply. The link has helped a lot but I still have a couple of questions: In OAuth, when the user allows the app, what kind of control do they have over which business(es) they allow my app to have access to? Could you elaborate on this a little? If a user has been invited to another business, are they able to see both businesses under a single Sage login? How does the invitation process happen? Thanks in advance, Chris
  7. I am of the understanding that in Sage Business Cloud it is not possible to have multiple companies under a single Sage account, but in Sage 50 it is possible. Although Sage 50 is a desktop application, it is still possible to use some of the cloud-based functionality. If a Sage 50 user goes through OAuth, are they given the option of which companies are accessible on the token, or is it one company per token, or is the user only able to allow all companies? If I call an endpoint (say, Contacts) with a token for a user with multiple companies, in the response is there any indication of which company each contact belongs to?
  8. In the get all contacts endpoint, the response is shown to contain 'deleted_at', but I just tested deleting a contact and the contact didn't appear in the response at all. Do deleted contacts only appear in results if you explicitly request them? If so, how?
  9. Thanks Ben, I'll give that a try later and let you know. Some feedback - as a developer I'm working on integrations with Xero and QuickBooks too, and they both give you demo companies to work with "out of the box", and I must say it's been a much simpler process to get started, so that's definitely something for Sage to look into. All the best, Chris
  10. Hi Ben, the account is a new one, I didn't do anything with it before starting these Postman posts. I'm pretty sure I'd already run the PUT request but I ran it again and am still getting the same error. I noticed something in the response body which might help, didn't see this yesterday. [{"$severity":"error","$dataCode":"MethodNotAllowed","$message":"Action restricted for Start in United Kingdom","$source":""}] Thanks, Chris
  11. I am following the documentation at https://developer.sage.com/accounting/quick-start/posting-your-test-data/ to populate my test data. When I come to the Opening Balance Transactions I get a response of 405 Method Not Allowed. I inspected the request body {"contact_opening_balance": { "description":"Opening Balance", "ledger_account_id":"c63d6b22b32911ebb6a30662051ba57b", "quantity":"1", "tax_rate_id":"GB_NO_TAX", "total_amount":"0.01", "date":"31/12/2018", "notes":"PC migrated from Sage 50 Accounts, Transaction No. 20, Ref: O/BAL", "reference":"O/BAL", "contact_opening_balance_type_id":"CREDIT_NOTE", "contact_id":"ff97104069be4fa0864718f7ffea57d2" } } against the docs (https://developer.sage.com/api/accounting/api/opening-balances/#operation/postContactOpeningBalances) and everything seems to be OK, all of the required parameters are there (not that I would expect a bad body to result in a 405 response).
×
×
  • Create New...