Legacy API

Documentation last updated: Feb 5th, 2019
- deprecation warning -

Get started

Requests and responses of the API are based on JSON. The server will only accept requests with Content-Type: application/json.

The things needed from Hageman to be able to do a successful request are:

  • An username
  • A password
  • Rights to access at least one administration
The API is located at: https://api.hageman.nl

Requests

Headers required:

Each request must contain the following headers in order to get processed

Content-Type: application/json Environment: [test/live] Username: {your-username} Password: {your-password}

Credentials

Needed for live request runs.

Administrations

Methods: Fetch

Articles

Methods: Fetch, Maintain

Stock

Methods: Fetch

Inbounds

Methods: Fetch, Maintain

Changelog

v1.2.4 - Code fixed

Feb 5th, 2019
  • Fixes
    • 
          DescTxt1: "Test article 3",     	  // required; string (60)
                                                          

      Changed to

      
          DescTxt1: "Test article 3",     	  // required; string (40)
                                                          

      Within the JS code at Articles - Maintain

    • 
          'DescTxt1' => 'Test article 3',         // required; string (60)
                                                          

      Changed to

      
          'DescTxt1' => 'Test article 3',         // required; string (40)
                                                          

      Within the PHP code at Articles - Maintain

v1.2.3 - Code fixed

Oct 10th, 2018
  • Fixes
    • 
          'type' => 'articles',
          'method' => 'stock',
                                                          

      Changed to

      
          'type' => 'stock',
          'method' => 'fetch',
                                                          

      Within the PHP code at Stock - Fetch

v1.2.2 - Timeout fixed

Feb 22nd, 2018
  • Fixes
    • Timeout error on server request after changed to HTTPS

v1.2.1 - HTTPS

Feb 21st, 2018
  • URLS
    • HTTPS added on all domains
    • URL for API and documentation changed

v1.2.0 - Authorization

Feb 19th, 2018
  • Datasets
    • Administrations added
  • Methods
    • Dataset 'Administrations' can be fetched

v1.1.0 - Live examples

Jan 31th, 2018
  • Previews
    • Editable JSON request - updated
    • Live raw JSON response - updated
  • Code examples
    • Live examples added

v1.0.0 - Creation of the API

Jan 28th, 2018
  • Datasets
    • Articles added
    • Stock added
    • Inbounds added
    • Orders added
  • Methods
    • Datasets can be fetched
    • Datasets can be maintained
  • Actions
    • Datasets can be created
  • Previews
    • Raw JSON request added
    • Raw JSON response added
  • Code examples
    • JavaScript examples added
    • PHP examples added