TABLE OF CONTENTS


Accredo API: Documentation

Accredo has published an OpenAPI specification, available here:

https://api.accredo.co.nz/documentation/openapi.json


To view the OpenAPI.Json file in a readable format you, copy-paste the OpenAPI.Json content into: https://editor.swagger.io/

Note that this will take perhaps a minute or so to process, it's a large file.


If processing is successful, you'll see a much more developer-friendly specification of all the Accredo API endpoints & payloads. Example below.


Useful API Endpoints


Accredo API: General Usage Notes:

  • Creating new Records via API:

    • Use HTTP POST methods for the appropriate API Endpoint
  • Updating existing Records via API:

    • Both PUT & PATCH methods require an additional eTag in the HTTP header payload.
      This eTag is enforced by the Accredo API and forces the API invoker to specify which record-version to update.
    • Use HTTP PATCH methods to update specific fields within an existing Record
    • Use the HTTP PUT method to completely replace an existing Record (this will cause data destruction and should only be used when explicit overwrites are required)
    • If the eTag is not specified, or if the eTag does not match the current API value for the record being updated, the HTTP PUT / HTTP POST API request will be rejected by the Accredo WebServices:



Accredo API: Examples