Jump to content

Alex Wilson

Members
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

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

  1. Hi, I am currently integrating a third party product with Sage using the Accounting API. Having had some issues previously with autogenerated clients from the OpenAPI spec, I am hand rolling a client. Following the docs, the date formats on all dates should be yyyy-mm-dd, which I am seeing across almost all responses. However when I mark an invoice as paid, I get UK formatted dates in the last_paid field response (dd/mm/yy). This is fairly painful, especially if I cannot rely on the docs to figure out when and where the date format may change. Is this a bug, or expected behaviour? If the latter, is there any documentation on when this will happen. Thanks Alex
  2. Hi, I am new to the Sage Accounting API, so started with the published OAS/Swagger spec (https://developer.sage.com/accounting/files/swagger.full.json) I generated a client from this file and started working against it. I pretty quickly ran into issues in that the API doesn't match the spec, in that it includes an envelope for all paginated results. In fact, it doesn't match the documentation in this regard. For example, here is a response for get all contacts: { "$total": 1, "$page": 1, "$next": null, "$back": null, "$itemsPerPage": 20, "$items": [ { "id": "REDACTED", "displayed_as": "REDACTED", "$path": "/contacts/REDACTED" } ] } This pagination info isn't included in any examples or documentation that I can find online, other than the screenshot on the quick start page (https://developer.sage.com/accounting/quick-start/create-your-first-request/) Is there a spec document that includes the envelope? Is generating a client from the spec not supported? Thanks Alex
×
×
  • Create New...