SMP Manager API v.2

API v.2 for Galaxy Gateway PEPPOL SMP

This SMP API allows you to seamlessly integrate with Galaxy Gateway SMP to manage all your Peppol receivers instantly from within your own applications.

Depending on which SMP you use, you should pick the corresponding API implementation in the table below.

How-to

Please refer to the API documentation and the XML schemas for SMP APIv2.0 and SMP APIv2.1 respectively to get started with SMP API v.2.x.

Please note that APIv2.1 deprecates some APIv2.0 controllers. Controllers that have been deprecated are indicated in the API documentation. A mix of APIv2.0 and APIv2.1 should be used. Not all controllers have been changed between the versions and the unchanged controllers are not duplicated between the versions.

To be able to use the API, you need an SMP user account.

Authentication

Using your SMP user account you can log in and a create a token which is used for authentication. Select the token type that fits you best, either the regular token or the HMAC.

  1. Login to your Galaxy Gateway user account or SGNIC SMP user account.
  2. Click “Settings”
  3. Click “Show” and then “Create” in section “API Tokens”

Target SMP URL

Galaxy Gateway SMPSingapore SMP
API URLhttps://api.galaxygw.com/2.0https://www.peppolsmp.sg/2.0
Specific requirementA PDF consent form must be uploaded to be able to activate a participant in the SML.

Using the APIv2.0 endpoint- controller after 2020-03-19

The APIv.2.0 endpoint- controller, which has an interface that does not support multiple transport profiles, has been deprecated. Even though it’s recommended to use APIv2.1 for this specific controller the old controller from APIv2.0 can still be used. However, since the underlying data model has been changed to allow an endpoint to have several supported transports already persisted data can now be incompatible with APIv.2.0 interface.

To handle this the APIv.2.0 will now respond with HTTP error code 409 (conflict) for following cases:

  1. When endpoint information can’t be listed (GET) since it contains one or several endpoints which has more than one supported transport profile.
  2. When updating an endpoint (PUT) with one supported transport profile where the already persisted data has more than one supported transport.

Overriding conflicts

Note! One can chose to ignore the 409 conflict errors by providing following HTTP header
Ignore-Conflict: true

By doing so:

  1. listing access points (GET) with more than one supported transport profile will only return the first one.
  2. updating access points (PUT) with one supported transport profile where already existing data has several, it will just overwrite existing data.

API error codes

Please visit https://www.galaxygw.com/support/smp-api-error-codes for detailed information.

FAQ

  • What is the workflow using the API?

    1. Create access point configuration using the Endpoint- controller (access point configuration will be reused by all participants).
    2. Create participant using the Participant-controller referring to the created access point configuration (see 1.). Participant can be created with or without PD- (Peppol Directory) and SMK/SML- activation.
    3. Optional, if not activated in SML/SMK in step 2, use SmlActivation- Controller to activate in SML/SMK.
    4. Optional, if not activated in PD in step 2, use PdActivation- controller to activate in PD.

  • When creating participants, what is the expected content of accessPointConfigurations -> endpointId and accessPointConfigurations -> metadataProfileIds -> profileIds?

    These ids refers to your configured access point id and corresponding document ids.
    The id of your access point instance/instances can either be found in the SMP GUI under “Access Point” or you can use the endpoint- controller to retrieve it. Using the endpoint- controller the the access point id is called “endpointId”.
    Available profileIds for you organization can be found using the “Metadata profile”- controller.

  • I’m a little bit lazy, can’t you provide me with payload for the different controllers?

    See example section for examples. It’s also possible to create participants / access point configurations using the GUI and then export them with the API to get familiar example data.

Examples

Commercial details

The API is an add-on service and is priced separately. You can test the API by creating a token from within your account. Please be reminded that we might remove your token without prior notice if you use the API in production scenarios without letting us know about it.

Change log

DateVersionChange
2020-03-192.1
  • An endpoint now accepts multiple supported transports (AS2, AS4, etc).
    endpoint- controller v2.0 has been deprecated.
  • Trying to create a participant which already belongs to another organisation
    now returns the correct error message (GGW-310).
2020-07-072.0.1
  • Added Participant Bulk API import- controller.
  • Minor bug fixes.
  • Documentation update. Added examples.