Dictionary
Access Point
An access point (AP) is a server that enables Participants to exchange electronic documents.
Access Point Provider
An access point provider is an entity that provides one or more Access Points. The access point providers have a customer relation with the Service Providers.
Organization
An organization is an entity – such as a company, an institution, or an association.
Participant
A participant is an Organization's customer relation with a specific Service Provider. An organization can have multiple participants.
Service Provider
A service provider is an entity that provides the ability for Organizations to exchange electronic documents. An Organization that is a customer of a service provider is a Participant.
How to get access
Most of the API requires the user to be registered in ELMA as a Service Provider or an Access Point Provider. To get such a registration, you have to make an agreement with the Norwegian Peppol Authority in The Norwegian Agency for Public and Financial Management(DFØ). To initiate such a process, please send an email to peppolmyndighet@dfo.no. A registration is needed for all environments (test and production).
The service should not be used to find out if an organization can receive a certain document type in the Peppol network. This service will only give such information for organization registered in ELMA. The correct way to do such a check for the Peppol network is to use a combination of SML and SMP. ELMA is only one of several SMPs in the Peppol network. The SML will give information on which SMP that contain more details about the organization. An example of a library performing a SML + SMP lookup can be found here: https://github.com/OxalisCommunity/vefa-peppol - More specifically: the LookupClient class. If query by organization name is required, please use the REST API in Peppol Directory. |
Specification
The services
Method | URL | Description | Allowed Roles |
---|---|---|---|
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY |
||
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY |
||
PUT |
/rest/api/participants/{qualifiedIdentifier}/transfer/{serviceProviderIdentifier} |
SERVICE_PROVIDER |
|
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY, ANONYMOUS |
||
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY, ANONYMOUS |
||
POST |
ADMIN, PEPPOL_AUTHORITY |
||
PUT |
ADMIN, PEPPOL_AUTHORITY |
||
DELETE |
ADMIN, PEPPOL_AUTHORITY |
||
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY, ANONYMOUS |
||
GET |
SERVICE_PROVIDER, ADMIN, PEPPOL_AUTHORITY |
||
GET |
SERVICE_PROVIDER, ADMIN, PEPPOL_AUTHORITY |
||
GET |
SERVICE_PROVIDER |
||
GET |
SERVICE_PROVIDER, ADMIN, PEPPOL_AUTHORITY |
||
POST |
SERVICE_PROVIDER |
||
PUT |
SERVICE_PROVIDER |
||
DELETE |
SERVICE_PROVIDER |
||
DELETE |
SERVICE_PROVIDER,ADMIN |
||
GET |
SERVICE_PROVIDER |
||
GET |
/rest/api/participants/{identifier}/processes |
SERVICE_PROVIDER, ADMIN, PEPPOL_AUTHORITY |
|
PUT |
/rest/api/participants/{qualifiedIdentifier}/transfer/{serviceProviderIdentifier} |
SERVICE_PROVIDER |
|
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY, ANONYMOUS |
||
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY, ANONYMOUS |
||
GET |
SERVICE_PROVIDER, ACCESS_POINT_PROVIDER, ADMIN, PEPPOL_AUTHORITY, ANONYMOUS |
||
POST |
ADMIN, PEPPOL_AUTHORITY |
||
PUT |
ADMIN, PEPPOL_AUTHORITY |
||
DELETE |
ADMIN, PEPPOL_AUTHORITY |
Access Points
Find access points
The service is used to search for Access Points. The response is paged with a default page size of 10.
Example 1 - Find all Access Points
$ curl 'https://elma-smp.no/rest/api/accessPoints' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8'
GET /rest/api/accessPoints HTTP/1.1
Accept: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1726
{
"content" : [ {
"identifier" : "1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0",
"title" : "The Great Access Point",
"provider" : {
"identifier" : "d51718f7-f889-4d75-86a3-bc7475e23347",
"title" : "The Hitech Company",
"contact" : {
"name" : "Mr. Robot",
"email" : "robot@hitech.com",
"phoneNumber" : "12345678"
}
},
"endpoints" : [ {
"transportProfile" : {
"title" : "Peppol AS2 Profile 2.0",
"value" : "busdox-transport-as2-ver2p0",
"certificateTypes" : [ "Peppol Production" ]
},
"url" : "https://www.example.com/oxalis/as4"
} ]
}, {
"identifier" : "6a450eaf-7023-419b-9e69-b21d2775cade",
"title" : "The Shiny Access Point",
"provider" : {
"identifier" : "d51718f7-f889-4d75-86a3-bc7475e23347",
"title" : "The Hitech Company",
"contact" : {
"name" : "Mr. Robot",
"email" : "robot@hitech.com",
"phoneNumber" : "12345678"
}
},
"endpoints" : [ {
"transportProfile" : {
"title" : "Peppol AS2 Profile 2.0",
"value" : "busdox-transport-as2-ver2p0",
"certificateTypes" : [ "Peppol Production" ]
},
"url" : "https://www.example.com/shiny/as4"
} ]
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 2 - Sorting
$ curl 'https://elma-smp.no/rest/api/accessPoints?sort=qualifiedIdentifier.value%2Casc' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8'
GET /rest/api/accessPoints?sort=qualifiedIdentifier.value%2Casc HTTP/1.1
Accept: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1728
{
"content" : [ {
"identifier" : "1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0",
"title" : "The Great Access Point",
"provider" : {
"identifier" : "d51718f7-f889-4d75-86a3-bc7475e23347",
"title" : "The Hitech Company",
"contact" : {
"name" : "Mr. Robot",
"email" : "robot@hitech.com",
"phoneNumber" : "12345678"
}
},
"endpoints" : [ {
"transportProfile" : {
"title" : "Peppol AS2 Profile 2.0",
"value" : "busdox-transport-as2-ver2p0",
"certificateTypes" : [ "Peppol Production" ]
},
"url" : "https://www.example.com/oxalis/as4"
} ]
}, {
"identifier" : "6a450eaf-7023-419b-9e69-b21d2775cade",
"title" : "The Shiny Access Point",
"provider" : {
"identifier" : "d51718f7-f889-4d75-86a3-bc7475e23347",
"title" : "The Hitech Company",
"contact" : {
"name" : "Mr. Robot",
"email" : "robot@hitech.com",
"phoneNumber" : "12345678"
}
},
"endpoints" : [ {
"transportProfile" : {
"title" : "Peppol AS2 Profile 2.0",
"value" : "busdox-transport-as2-ver2p0",
"certificateTypes" : [ "Peppol Production" ]
},
"url" : "https://www.example.com/shiny/as4"
} ]
} ],
"pageable" : {
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 3 - Paging
$ curl 'https://elma-smp.no/rest/api/accessPoints?page=3&size=10' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8'
GET /rest/api/accessPoints?page=3&size=10 HTTP/1.1
Accept: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.accesspoints.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1729
{
"content" : [ {
"identifier" : "1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0",
"title" : "The Great Access Point",
"provider" : {
"identifier" : "d51718f7-f889-4d75-86a3-bc7475e23347",
"title" : "The Hitech Company",
"contact" : {
"name" : "Mr. Robot",
"email" : "robot@hitech.com",
"phoneNumber" : "12345678"
}
},
"endpoints" : [ {
"transportProfile" : {
"title" : "Peppol AS2 Profile 2.0",
"value" : "busdox-transport-as2-ver2p0",
"certificateTypes" : [ "Peppol Production" ]
},
"url" : "https://www.example.com/oxalis/as4"
} ]
}, {
"identifier" : "6a450eaf-7023-419b-9e69-b21d2775cade",
"title" : "The Shiny Access Point",
"provider" : {
"identifier" : "d51718f7-f889-4d75-86a3-bc7475e23347",
"title" : "The Hitech Company",
"contact" : {
"name" : "Mr. Robot",
"email" : "robot@hitech.com",
"phoneNumber" : "12345678"
}
},
"endpoints" : [ {
"transportProfile" : {
"title" : "Peppol AS2 Profile 2.0",
"value" : "busdox-transport-as2-ver2p0",
"certificateTypes" : [ "Peppol Production" ]
},
"url" : "https://www.example.com/shiny/as4"
} ]
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 30,
"pageNumber" : 3,
"pageSize" : 10,
"paged" : true,
"unpaged" : false
},
"totalPages" : 4,
"totalElements" : 32,
"last" : true,
"size" : 10,
"number" : 3,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : false,
"empty" : false
}
About the service
Parameter | Description |
---|---|
|
Page you want to retrieve. First page is page 0 |
|
Size of the page you want to retrieve. |
|
Properties that should be sorted by in the format property,property(,ASC|DESC). Default sort direction is ascending. Use multiple sort parameters if you want to switch directions, e.g. ?sort=firstname&sort=lastname,asc. |
Path | Type | Description |
---|---|---|
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
The access point provider. |
|
|
A list of endpoints belonging to the access point. |
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
Name of the contact. |
|
|
Email of the contact. |
|
|
The phone number of the contact. |
|
|
The url of the endpoint. |
|
|
A list of transport profiles supported by the endpoint. |
|
|
Name describing the transport profile. |
|
|
The transport profile identifier. |
|
|
A list of certificate types that is used by this endpoint. |
|
|
A boolean value indicating if this is the last page or not. |
|
|
The total number of elements |
|
|
The total number of pages |
|
|
The page size |
|
|
The page number |
|
|
A boolean value indicating if this is the first page or not. |
|
|
Number of elements returned in the page. |
|
|
True if the page is empty. False if not. |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
|
|
The offset to be taken according to the underlying page and page size. |
|
|
The requested page size |
|
|
The requested page number |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
Get access point
Use this service to get information about an Access Point.
Example 1 - Get a accessPoint
$ curl 'https://elma-smp.no/rest/api/accessPoints/1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.accesspoints.get.v1+json;charset=UTF-8'
GET /rest/api/accessPoints/1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0 HTTP/1.1
Accept: application/vnd.no.digdir.elma.accesspoints.get.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.accesspoints.get.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 585
{
"identifier" : "1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0",
"title" : "The Great Access Point",
"provider" : {
"identifier" : "d51718f7-f889-4d75-86a3-bc7475e23347",
"title" : "The Hitech Company",
"contact" : {
"name" : "Mr. Robot",
"email" : "robot@hitech.com",
"phoneNumber" : "12345678"
}
},
"endpoints" : [ {
"transportProfile" : {
"title" : "Peppol AS2 Profile 2.0",
"value" : "busdox-transport-as2-ver2p0",
"certificateTypes" : [ "Peppol Production" ]
},
"url" : "https://www.example.com/oxalis/as4"
} ]
}
Example 2 - Not found
$ curl 'https://elma-smp.no/rest/api/accessPoints/1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.accesspoints.get.v1+json;charset=UTF-8'
GET /rest/api/accessPoints/1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0 HTTP/1.1
Accept: application/vnd.no.digdir.elma.accesspoints.get.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 404 Not Found
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 314
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 404,
"error" : "Not Found",
"exception" : "no.difi.elma.lang.NotFoundException",
"message" : "Unable to find instance with identifier '1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0'.",
"path" : "/rest/api/accessPoints/1c0c645b-ca13-4bdd-8ad0-dfc518d78fe0"
}
About the service
Parameter | Description |
---|---|
|
An access point identifier that is an UUID. |
Path | Type | Description |
---|---|---|
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
The access point provider. |
|
|
A list of endpoints belonging to the access point. |
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
Name of the contact. |
|
|
Email of the contact. |
|
|
The phone number of the contact. |
|
|
The url of the endpoint. |
|
|
A list of transport profiles supported by the endpoint. |
|
|
Name describing the transport profile. |
|
|
The transport profile identifier. |
|
|
A list of certificate types that is used by this endpoint. |
Document Types
Find document types
The service is used to search for Document Types. The response is paged with a default page size of 10.
Example 1 - Find all Document Types
$ curl 'https://elma-smp.no/rest/api/document-types' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8'
GET /rest/api/document-types HTTP/1.1
Accept: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1327
{
"content" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"title" : "Arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:no:difi:profile:arkivmelding:administrasjon:ver1.0",
"title" : "Arkivmelding_Administrasjon",
"visible" : true,
"restricted" : false
} ]
}, {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true,
"processes" : [ ]
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 2 - Sorting
$ curl 'https://elma-smp.no/rest/api/document-types?sort=qualifiedIdentifier.value%2Casc' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8'
GET /rest/api/document-types?sort=qualifiedIdentifier.value%2Casc HTTP/1.1
Accept: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1285
{
"content" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"title" : "Arkivmelding",
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:no:difi:profile:arkivmelding:administrasjon:ver1.0",
"title" : "Arkivmelding_Administrasjon",
"visible" : true,
"restricted" : false
} ]
}, {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"processes" : [ ]
} ],
"pageable" : {
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 3 - Paging
$ curl 'https://elma-smp.no/rest/api/document-types?page=3&size=10' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8'
GET /rest/api/document-types?page=3&size=10 HTTP/1.1
Accept: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.document-types.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1286
{
"content" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"title" : "Arkivmelding",
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:no:difi:profile:arkivmelding:administrasjon:ver1.0",
"title" : "Arkivmelding_Administrasjon",
"visible" : true,
"restricted" : false
} ]
}, {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"processes" : [ ]
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 30,
"pageNumber" : 3,
"pageSize" : 10,
"paged" : true,
"unpaged" : false
},
"totalPages" : 4,
"totalElements" : 32,
"last" : true,
"size" : 10,
"number" : 3,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : false,
"empty" : false
}
About the service
Parameter | Description |
---|---|
|
Page you want to retrieve. First page is page 0 |
|
Size of the page you want to retrieve. |
|
Properties that should be sorted by in the format property,property(,ASC|DESC). Default sort direction is ascending. Use multiple sort parameters if you want to switch directions, e.g. ?sort=firstname&sort=lastname,asc. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
A title describing the document type. |
|
|
If the document type is visible in the SMP lookup. |
|
|
A list of processes |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The capability title. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A boolean value indicating if this is the last page or not. |
|
|
The total number of elements |
|
|
The total number of pages |
|
|
The page size |
|
|
The page number |
|
|
A boolean value indicating if this is the first page or not. |
|
|
Number of elements returned in the page. |
|
|
True if the page is empty. False if not. |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
|
|
The offset to be taken according to the underlying page and page size. |
|
|
The requested page size |
|
|
The requested page number |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
Get document type
Use this service to get information about a document type.
Example 1 - Get a document type by identifier
$ curl 'https://elma-smp.no/rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.document-types.get.v1+json;charset=UTF-8'
GET /rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7 HTTP/1.1
Accept: application/vnd.no.digdir.elma.document-types.get.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.document-types.get.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 480
{
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"title" : "Arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:no:difi:profile:arkivmelding:administrasjon:ver1.0",
"title" : "Arkivmelding_Administrasjon",
"visible" : true,
"restricted" : false
} ]
}
Example 2 - Not found
$ curl 'https://elma-smp.no/rest/api/document-types/4891fab2-03da-42b1-812b-a9cf624ea588' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.document-types.get.v1+json;charset=UTF-8'
GET /rest/api/document-types/4891fab2-03da-42b1-812b-a9cf624ea588 HTTP/1.1
Accept: application/vnd.no.digdir.elma.document-types.get.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 404 Not Found
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 316
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 404,
"error" : "Not Found",
"exception" : "no.difi.elma.lang.NotFoundException",
"message" : "Unable to find instance with identifier '4891fab2-03da-42b1-812b-a9cf624ea588'.",
"path" : "/rest/api/document-types/4891fab2-03da-42b1-812b-a9cf624ea588"
}
About the service
Parameter | Description |
---|---|
|
A process identifier that is an UUID. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
A title describing the document type. |
|
|
If the document type is visible in the SMP lookup. |
|
|
A list of processes |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The capability title. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Add document type
Use this service to add a new document type.
Example 1 - Add a document type
$ curl 'https://elma-smp.no/rest/api/document-types' -i -u 'admin:pw123' -X POST \
-H 'Content-Type: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8' \
-d '{
"title" : "Arkivmelding",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}'
POST /rest/api/document-types HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8
Content-Length: 225
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
{
"title" : "Arkivmelding",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}
HTTP/1.1 201 Created
Content-Type: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 480
{
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"title" : "Arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:no:difi:profile:arkivmelding:administrasjon:ver1.0",
"title" : "Arkivmelding_Administrasjon",
"visible" : true,
"restricted" : false
} ]
}
Example 2 - Missing domain in input
$ curl 'https://elma-smp.no/rest/api/document-types' -i -u 'admin:pw123' -X POST \
-H 'Content-Type: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8' \
-d '{
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}'
POST /rest/api/document-types HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.document-types.add.v1+json;charset=UTF-8
Content-Length: 197
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
{
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}
HTTP/1.1 400 Bad Request
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 741
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 400,
"error" : "Bad Request",
"exception" : "org.springframework.web.bind.MethodArgumentNotValidException",
"message" : "Validation failed for object='documentTypeFormDTO'. Error count: 1",
"errors" : [ {
"codes" : [ "NotEmpty.documentTypeFormDTO.title", "NotEmpty.title", "NotEmpty.java.lang.String", "NotEmpty" ],
"arguments" : [ {
"codes" : [ "documentTypeFormDTO.title", "title" ],
"defaultMessage" : "title",
"code" : "title"
} ],
"defaultMessage" : "must not be empty",
"objectName" : "documentTypeFormDTO",
"field" : "title",
"bindingFailure" : false,
"code" : "NotEmpty"
} ],
"path" : "/rest/api/document-types"
}
About the service
Path | Type | Description | Constraints |
---|---|---|---|
|
|
A title describing the document type. |
|
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
|
If the document type is visible in the SMP lookup. |
|
|
|
A list of processes |
|
|
|
A UUID identifier. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
A title describing the document type. |
|
|
If the document type is visible in the SMP lookup. |
|
|
A list of processes |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The capability title. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Update document type
Use this service to update a document type.
Example 1 - Update a document type
$ curl 'https://elma-smp.no/rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7' -i -u 'admin:pw123' -X PUT \
-H 'Content-Type: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8' \
-d '{
"title" : "Arkivmelding",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}'
PUT /rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7 HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8
Content-Length: 225
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
{
"title" : "Arkivmelding",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 480
{
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"title" : "Arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:no:difi:profile:arkivmelding:administrasjon:ver1.0",
"title" : "Arkivmelding_Administrasjon",
"visible" : true,
"restricted" : false
} ]
}
Example 2 - Missing domain in input
$ curl 'https://elma-smp.no/rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7' -i -u 'admin:pw123' -X PUT \
-H 'Content-Type: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8' \
-d '{
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}'
PUT /rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7 HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.document-types.update.v1+json;charset=UTF-8
Content-Length: 197
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
{
"qualifiedIdentifier" : "busdox-docid-qns::urn:no:difi:arkivmelding:xsd::arkivmelding",
"visible" : true,
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e74815956cd"
} ]
}
HTTP/1.1 400 Bad Request
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 778
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 400,
"error" : "Bad Request",
"exception" : "org.springframework.web.bind.MethodArgumentNotValidException",
"message" : "Validation failed for object='documentTypeFormDTO'. Error count: 1",
"errors" : [ {
"codes" : [ "NotEmpty.documentTypeFormDTO.title", "NotEmpty.title", "NotEmpty.java.lang.String", "NotEmpty" ],
"arguments" : [ {
"codes" : [ "documentTypeFormDTO.title", "title" ],
"defaultMessage" : "title",
"code" : "title"
} ],
"defaultMessage" : "must not be empty",
"objectName" : "documentTypeFormDTO",
"field" : "title",
"bindingFailure" : false,
"code" : "NotEmpty"
} ],
"path" : "/rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7"
}
About the service
Path | Type | Description | Constraints |
---|---|---|---|
|
|
A title describing the document type. |
|
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
|
If the document type is visible in the SMP lookup. |
|
|
|
A list of processes |
|
|
|
A UUID identifier. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
A title describing the document type. |
|
|
If the document type is visible in the SMP lookup. |
|
|
A list of processes |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The capability title. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Delete document type
Use this service to delete a document type.
Example 1 - Delete a document type
$ curl 'https://elma-smp.no/rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7' -i -u 'dfo:pw123' -X DELETE \
-H 'Accept: application/vnd.no.digdir.elma.document-types.delete.v1+json;charset=UTF-8'
DELETE /rest/api/document-types/8e83282a-577f-4b06-8207-f8d6674b0da7 HTTP/1.1
Accept: application/vnd.no.digdir.elma.document-types.delete.v1+json;charset=UTF-8
Authorization: Basic ZGZvOnB3MTIz
Host: elma-smp.no
HTTP/1.1 204 No Content
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Example 2 - Process not found
$ curl 'https://elma-smp.no/rest/api/document-types/4891fab2-03da-42b1-812b-a9cf624ea588' -i -u 'admin:pw123' -X DELETE \
-H 'Accept: application/vnd.no.digdir.elma.document-types.delete.v1+json;charset=UTF-8'
DELETE /rest/api/document-types/4891fab2-03da-42b1-812b-a9cf624ea588 HTTP/1.1
Accept: application/vnd.no.digdir.elma.document-types.delete.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 404 Not Found
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 316
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 404,
"error" : "Not Found",
"exception" : "no.difi.elma.lang.NotFoundException",
"message" : "Unable to find instance with identifier '4891fab2-03da-42b1-812b-a9cf624ea588'.",
"path" : "/rest/api/document-types/4891fab2-03da-42b1-812b-a9cf624ea588"
}
Organizations
Find organization processes
The service is used to search for processes that are in use by an organization. The response is paged with a default page size of 10. Please note! The service should not be used to find out if an organization can receive a certain document type in the Peppol network. This service will only give such information for organization registered in ELMA. The correct way to do such a check for the Peppol network is to use a combination of SML and SMP. ELMA is only one of several SMPs in the Peppol network. The SML will give information on which SMP that contain more details about the organization. An example of a library performing a SML + SMP lookup can be found here: https://github.com/OxalisCommunity/vefa-peppol - More specifically: the LookupClient class.
Example 1 - Find all processes
$ curl 'https://elma-smp.no/rest/api/organizations/iso6523-actorid-upis::0192:222222222/processes' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.organizations.processes.v1+json;charset=UTF-8'
GET /rest/api/organizations/iso6523-actorid-upis::0192:222222222/processes HTTP/1.1
Accept: application/vnd.no.digdir.elma.organizations.processes.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.organizations.processes.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1793
[ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"visible" : true,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
}, {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
} ]
About the service
Parameter | Description |
---|---|
|
An identifier that is qualified by a schema. It consists of <scheme> :: <ICD> : <organizationIdentifier>. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Participants
Find participants (Array)
The service is used to search for participants. The response is an array with all hits.
Example 1 - Find all participants
$ curl 'https://elma-smp.no/rest/api/participants' -i -u 'dfo:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.stream.v1+json;charset=UTF-8'
GET /rest/api/participants HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.stream.v1+json;charset=UTF-8
Authorization: Basic ZGZvOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.stream.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1077
[ {
"identifier" : "0eeddc80-3baa-44eb-98c2-90168ca09e91",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:987654321",
"icd" : "0192",
"organizationIdentifier" : "987654321",
"name" : "Snow Factory AS",
"registrationDate" : "2020-08-26",
"lastModificationDate" : "2020-09-02",
"contact" : {
"name" : "Snømannen Kalle",
"email" : "kalle@snowfactory.no",
"phoneNumber" : "111111111"
},
"provider" : {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "The Big Bank"
}
}, {
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
},
"provider" : {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "The Big Bank"
}
} ]
About the service
Parameter | Description |
---|---|
|
Search for name and organization number. |
|
Set this to true if you want the response to include participant processes. Default: false |
Path | Type | Description |
---|---|---|
|
|
A participant identifier that is an UUID. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
An International Code Designator (ICD) value, which uniquely identifies the authority which issued the code to the organization, up to 4 digits |
|
|
An organization identifier, up to a maximum of 35 characters. |
|
|
Organization name |
|
|
Registration date |
|
|
Last modification date |
|
|
Date the participant will be deleted. |
|
|
The service provider. |
|
|
List of processes. |
|
|
Name of the contact. |
|
|
Email of the contact. |
|
|
The phone number of the contact. |
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Find participants (Paged)
The service is used to search for participants. The response is paged with a default page size of 10.
Example 1 - Find all participants
$ curl 'https://elma-smp.no/rest/api/participants' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8'
GET /rest/api/participants HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1616
{
"content" : [ {
"identifier" : "0eeddc80-3baa-44eb-98c2-90168ca09e91",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:987654321",
"icd" : "0192",
"organizationIdentifier" : "987654321",
"name" : "Snow Factory AS",
"registrationDate" : "2020-08-26",
"lastModificationDate" : "2020-09-02",
"contact" : {
"name" : "Snømannen Kalle",
"email" : "kalle@snowfactory.no",
"phoneNumber" : "111111111"
},
"provider" : {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "The Big Bank"
}
}, {
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
},
"provider" : {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "The Big Bank"
}
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 2 - Query on organization number
$ curl 'https://elma-smp.no/rest/api/participants?query=987654321' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8'
GET /rest/api/participants?query=987654321 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 918
{
"content" : [ {
"identifier" : "0eeddc80-3baa-44eb-98c2-90168ca09e91",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:987654321",
"icd" : "0192",
"organizationIdentifier" : "987654321",
"name" : "Snow Factory AS",
"registrationDate" : "2020-08-26",
"lastModificationDate" : "2020-09-02",
"contact" : {
"name" : "Snømannen Kalle",
"email" : "kalle@snowfactory.no",
"phoneNumber" : "111111111"
}
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 1,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 1,
"first" : true,
"empty" : false
}
Example 3 - Query on name
$ curl 'https://elma-smp.no/rest/api/participants?query=snow+fa' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8'
GET /rest/api/participants?query=snow+fa HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 918
{
"content" : [ {
"identifier" : "0eeddc80-3baa-44eb-98c2-90168ca09e91",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:987654321",
"icd" : "0192",
"organizationIdentifier" : "987654321",
"name" : "Snow Factory AS",
"registrationDate" : "2020-08-26",
"lastModificationDate" : "2020-09-02",
"contact" : {
"name" : "Snømannen Kalle",
"email" : "kalle@snowfactory.no",
"phoneNumber" : "111111111"
}
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 1,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 1,
"first" : true,
"empty" : false
}
Example 4 - Sorting
$ curl 'https://elma-smp.no/rest/api/participants?sort=qualifiedIdentifier.value%2Casc' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8'
GET /rest/api/participants?sort=qualifiedIdentifier.value%2Casc HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1382
{
"content" : [ {
"identifier" : "0eeddc80-3baa-44eb-98c2-90168ca09e91",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:987654321",
"icd" : "0192",
"organizationIdentifier" : "987654321",
"name" : "Snow Factory AS",
"registrationDate" : "2020-08-26",
"lastModificationDate" : "2020-09-02",
"contact" : {
"name" : "Snømannen Kalle",
"email" : "kalle@snowfactory.no",
"phoneNumber" : "111111111"
}
}, {
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
}
} ],
"pageable" : {
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 5 - Paging
$ curl 'https://elma-smp.no/rest/api/participants?page=3&size=10' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8'
GET /rest/api/participants?page=3&size=10 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1383
{
"content" : [ {
"identifier" : "0eeddc80-3baa-44eb-98c2-90168ca09e91",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:987654321",
"icd" : "0192",
"organizationIdentifier" : "987654321",
"name" : "Snow Factory AS",
"registrationDate" : "2020-08-26",
"lastModificationDate" : "2020-09-02",
"contact" : {
"name" : "Snømannen Kalle",
"email" : "kalle@snowfactory.no",
"phoneNumber" : "111111111"
}
}, {
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
}
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 30,
"pageNumber" : 3,
"pageSize" : 10,
"paged" : true,
"unpaged" : false
},
"totalPages" : 4,
"totalElements" : 32,
"last" : true,
"size" : 10,
"number" : 3,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : false,
"empty" : false
}
About the service
Parameter | Description |
---|---|
|
Page you want to retrieve. First page is page 0 |
|
Size of the page you want to retrieve. |
|
Properties that should be sorted by in the format property,property(,ASC|DESC). Default sort direction is ascending. Use multiple sort parameters if you want to switch directions, e.g. ?sort=firstname&sort=lastname,asc. |
|
Search for name and organization number. |
|
Set this to true if you want the response to include participant processes. Default: false |
Path | Type | Description |
---|---|---|
|
|
A participant identifier that is an UUID. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
An International Code Designator (ICD) value, which uniquely identifies the authority which issued the code to the organization, up to 4 digits |
|
|
An organization identifier, up to a maximum of 35 characters. |
|
|
Organization name |
|
|
Registration date |
|
|
Last modification date |
|
|
Date the participant will be deleted. |
|
|
The service provider. |
|
|
List of processes. |
|
|
Name of the contact. |
|
|
Email of the contact. |
|
|
The phone number of the contact. |
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A boolean value indicating if this is the last page or not. |
|
|
The total number of elements |
|
|
The total number of pages |
|
|
The page size |
|
|
The page number |
|
|
A boolean value indicating if this is the first page or not. |
|
|
Number of elements returned in the page. |
|
|
True if the page is empty. False if not. |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
|
|
The offset to be taken according to the underlying page and page size. |
|
|
The requested page size |
|
|
The requested page number |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
Get participant
Use this service to get information about a participant.
Example 1 - Get a participant by qualified identifier
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:222222222' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8'
GET /rest/api/participants/iso6523-actorid-upis::0192:222222222 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 2215
{
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
},
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ]
}
Example 2 - Get a participant by identifier
$ curl 'https://elma-smp.no/rest/api/participants/a74363a2-1038-4a3f-a599-97ff860787e0' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8'
GET /rest/api/participants/a74363a2-1038-4a3f-a599-97ff860787e0 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 2441
{
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
},
"provider" : {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "The Big Bank"
},
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"visible" : true,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ]
}
Example 3 - Not found
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:333333333' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8'
GET /rest/api/participants/iso6523-actorid-upis::0192:333333333 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.get.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 404 Not Found
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 302
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 404,
"error" : "Not Found",
"exception" : "no.difi.elma.lang.NotFoundException",
"message" : "Couldn't find organization for iso6523-actorid-upis::0192:333333333",
"path" : "/rest/api/participants/iso6523-actorid-upis::0192:333333333"
}
About the service
Parameter | Description |
---|---|
|
An identifier that is qualified by a schema. It consists of <scheme> :: <ICD> : <organizationIdentifier>. |
Path | Type | Description |
---|---|---|
|
|
A participant identifier that is an UUID. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
An International Code Designator (ICD) value, which uniquely identifies the authority which issued the code to the organization, up to 4 digits |
|
|
An organization identifier, up to a maximum of 35 characters. |
|
|
Organization name |
|
|
Registration date |
|
|
Last modification date |
|
|
Date the participant will be deleted. |
|
|
The service provider. |
|
|
List of processes. |
|
|
Name of the contact. |
|
|
Email of the contact. |
|
|
The phone number of the contact. |
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Add participant
Use this service to add a new participant.
Example 1 - Add a participant
$ curl 'https://elma-smp.no/rest/api/participants' -i -u 'sp1:pw123' -X POST \
-H 'Content-Type: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8' \
-d '{
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
} ],
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
}
}'
POST /rest/api/participants HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8
Content-Length: 318
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
{
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
} ],
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
}
}
HTTP/1.1 201 Created
Content-Type: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1494
{
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Heinz Doofenshmirtz",
"email" : "heinz.doofemshmirtz@evil.inc",
"phoneNumber" : "22222222"
},
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false
} ],
"requiredICDs" : [ "0192" ]
} ]
}
Example 2 - Missing contact in input
$ curl 'https://elma-smp.no/rest/api/participants' -i -u 'sp1:pw123' -X POST \
-H 'Content-Type: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8' \
-d '{
"icd" : "0192",
"organizationIdentifier" : "222222222",
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
} ]
}'
POST /rest/api/participants HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.participants.add.v1+json;charset=UTF-8
Content-Length: 147
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
{
"icd" : "0192",
"organizationIdentifier" : "222222222",
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
} ]
}
HTTP/1.1 400 Bad Request
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 775
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 400,
"error" : "Bad Request",
"exception" : "org.springframework.web.bind.MethodArgumentNotValidException",
"message" : "Validation failed for object='addParticipantFormDTO'. Error count: 1",
"errors" : [ {
"codes" : [ "NotNull.addParticipantFormDTO.contact", "NotNull.contact", "NotNull.no.difi.elma.dto.rest.ContactFormDTO", "NotNull" ],
"arguments" : [ {
"codes" : [ "addParticipantFormDTO.contact", "contact" ],
"defaultMessage" : "contact",
"code" : "contact"
} ],
"defaultMessage" : "must not be null",
"objectName" : "addParticipantFormDTO",
"field" : "contact",
"bindingFailure" : false,
"code" : "NotNull"
} ],
"path" : "/rest/api/participants"
}
About the service
Path | Type | Description | Constraints |
---|---|---|---|
|
|
An International Code Designator (ICD) value, which uniquely identifies the authority which issued the code to the organization, up to 4 digits |
Must not be null |
|
|
An organization identifier, up to a maximum of 35 characters. |
Must not be empty |
|
|
Organization name |
|
|
|
A list of processes. |
Must not be null |
|
|
A UUID identifier. |
|
|
|
Name of the contact. |
Must not be empty |
|
|
Email of the contact. |
Must be a well-formed email address |
|
|
The phone number of the contact. |
'${validatedValue}' is not a valid phone number.. Must not be empty |
Path | Type | Description |
---|---|---|
|
|
A participant identifier that is an UUID. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
An International Code Designator (ICD) value, which uniquely identifies the authority which issued the code to the organization, up to 4 digits |
|
|
An organization identifier, up to a maximum of 35 characters. |
|
|
Organization name |
|
|
Registration date |
|
|
Last modification date |
|
|
Date the participant will be deleted. |
|
|
The service provider. |
|
|
List of processes. |
|
|
Name of the contact. |
|
|
Email of the contact. |
|
|
The phone number of the contact. |
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Update participant
Use this service to update a participant.
Example 1 - Update a participant
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:222222222' -i -u 'sp1:pw123' -X PUT \
-H 'Content-Type: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8' \
-d '{
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696"
} ],
"contact" : {
"name" : "Roger Doofenshmirtz",
"email" : "roger.doofemshmirtz@evil.inc",
"phoneNumber" : "22222233"
}
}'
PUT /rest/api/participants/iso6523-actorid-upis::0192:222222222 HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8
Content-Length: 286
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
{
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696"
} ],
"contact" : {
"name" : "Roger Doofenshmirtz",
"email" : "roger.doofemshmirtz@evil.inc",
"phoneNumber" : "22222233"
}
}
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 2215
{
"identifier" : "a74363a2-1038-4a3f-a599-97ff860787e0",
"qualifiedIdentifier" : "iso6523-actorid-upis::0192:222222222",
"icd" : "0192",
"organizationIdentifier" : "222222222",
"name" : "Doofenshmirtz Evil Inc",
"registrationDate" : "2001-05-12",
"lastModificationDate" : "2020-09-01",
"contact" : {
"name" : "Roger Doofenshmirtz",
"email" : "roger.doofemshmirtz@evil.inc",
"phoneNumber" : "22222233"
},
"processes" : [ {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
}, {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false
} ],
"requiredICDs" : [ "0192" ]
} ]
}
Example 2 - Missing contact in input
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:222222222' -i -u 'sp1:pw123' -X PUT \
-H 'Content-Type: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8' \
-d '{
"icd" : "0192",
"organizationIdentifier" : "222222222",
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
} ]
}'
PUT /rest/api/participants/iso6523-actorid-upis::0192:222222222 HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.participants.update.v1+json;charset=UTF-8
Content-Length: 147
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
{
"icd" : "0192",
"organizationIdentifier" : "222222222",
"processes" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423"
} ]
}
HTTP/1.1 400 Bad Request
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 824
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 400,
"error" : "Bad Request",
"exception" : "org.springframework.web.bind.MethodArgumentNotValidException",
"message" : "Validation failed for object='updateParticipantFormDTO'. Error count: 1",
"errors" : [ {
"codes" : [ "NotNull.updateParticipantFormDTO.contact", "NotNull.contact", "NotNull.no.difi.elma.dto.rest.ContactFormDTO", "NotNull" ],
"arguments" : [ {
"codes" : [ "updateParticipantFormDTO.contact", "contact" ],
"defaultMessage" : "contact",
"code" : "contact"
} ],
"defaultMessage" : "must not be null",
"objectName" : "updateParticipantFormDTO",
"field" : "contact",
"bindingFailure" : false,
"code" : "NotNull"
} ],
"path" : "/rest/api/participants/iso6523-actorid-upis::0192:222222222"
}
About the service
Path | Type | Description | Constraints |
---|---|---|---|
|
|
A list of processes. |
Must not be null |
|
|
A UUID identifier. |
|
|
|
Name of the contact. |
Must not be empty |
|
|
Email of the contact. |
Must be a well-formed email address |
|
|
The phone number of the contact. |
'${validatedValue}' is not a valid phone number.. Must not be empty |
Parameter | Description |
---|---|
|
An identifier that is qualified by a schema. It consists of <scheme> :: <ICD> : <organizationIdentifier>. |
Path | Type | Description |
---|---|---|
|
|
A participant identifier that is an UUID. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
An International Code Designator (ICD) value, which uniquely identifies the authority which issued the code to the organization, up to 4 digits |
|
|
An organization identifier, up to a maximum of 35 characters. |
|
|
Organization name |
|
|
Registration date |
|
|
Last modification date |
|
|
Date the participant will be deleted. |
|
|
The service provider. |
|
|
List of processes. |
|
|
Name of the contact. |
|
|
Email of the contact. |
|
|
The phone number of the contact. |
|
|
The name of service provider. |
|
|
A universally unique identifier. |
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Delete participant
Use this service to delete a participant.
Example 1 - Delete a participant by qualified identifier
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:222222222' -i -u 'sp1:pw123' -X DELETE \
-H 'Accept: application/vnd.no.digdir.elma.participants.delete.v1+json;charset=UTF-8'
DELETE /rest/api/participants/iso6523-actorid-upis::0192:222222222 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.delete.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 204 No Content
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Example 2 - Delete a participant by identifier
$ curl 'https://elma-smp.no/rest/api/participants/a74363a2-1038-4a3f-a599-97ff860787e0' -i -u 'sp1:pw123' -X DELETE \
-H 'Accept: application/vnd.no.digdir.elma.participants.delete.v1+json;charset=UTF-8'
DELETE /rest/api/participants/a74363a2-1038-4a3f-a599-97ff860787e0 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.delete.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 204 No Content
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Example 3 - Not found
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:333333333' -i -u 'sp1:pw123' -X DELETE \
-H 'Accept: application/vnd.no.digdir.elma.participants.delete.v1+json;charset=UTF-8'
DELETE /rest/api/participants/iso6523-actorid-upis::0192:333333333 HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.delete.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 404 Not Found
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 302
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 404,
"error" : "Not Found",
"exception" : "no.difi.elma.lang.NotFoundException",
"message" : "Couldn't find organization for iso6523-actorid-upis::0192:333333333",
"path" : "/rest/api/participants/iso6523-actorid-upis::0192:333333333"
}
About the service
There are two variants.
By qualified identifier
Parameter | Description |
---|---|
|
An identifier that is qualified by a schema. It consists of <scheme> :: <ICD> : <organizationIdentifier>. |
By UUID identifier
Parameter | Description |
---|---|
|
A participant identifier that is an UUID. |
Get participant processes
Use this service to get processes belonging to a participant.
Example 1 - Get participant processes by qualified identifier
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:222222222/processes' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.processes.v1+json;charset=UTF-8'
GET /rest/api/participants/iso6523-actorid-upis::0192:222222222/processes HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.processes.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.processes.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1687
[ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ]
Example 2 - Get participant processes by identifier
$ curl 'https://elma-smp.no/rest/api/participants/a74363a2-1038-4a3f-a599-97ff860787e0/processes' -i -u 'dfo:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.participants.processes.v1+json;charset=UTF-8'
GET /rest/api/participants/a74363a2-1038-4a3f-a599-97ff860787e0/processes HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.processes.v1+json;charset=UTF-8
Authorization: Basic ZGZvOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.participants.processes.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1793
[ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"visible" : true,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ]
About the service
Parameter | Description |
---|---|
|
An identifier that is qualified by a schema. It consists of <scheme> :: <ICD> : <organizationIdentifier>. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Transfer participant
Use this service to transfer a participant to another service provider.
Example 1 - Transfer participant
$ curl 'https://elma-smp.no/rest/api/participants/iso6523-actorid-upis::0192:222222222/transfer/ab5e28f5-703d-5528-8b1f-a417c1ff99cc' -i -u 'sp1:pw123' -X PUT \
-H 'Accept: application/vnd.no.digdir.elma.participants.transfer.v1+json;charset=UTF-8'
PUT /rest/api/participants/iso6523-actorid-upis::0192:222222222/transfer/ab5e28f5-703d-5528-8b1f-a417c1ff99cc HTTP/1.1
Accept: application/vnd.no.digdir.elma.participants.transfer.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
About the service
Parameter | Description |
---|---|
|
An identifier that is qualified by a schema. It consists of <scheme> :: <ICD> : <organizationIdentifier>. |
|
Identifier of the Service Provider that should receive the participant to be transferred. |
Processes
Find processes (Array)
The service is used to search for Processes. The response is an array.
Example 1 - Find all Processes
$ curl 'https://elma-smp.no/rest/api/processes' -i -u 'dfo:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.processes.stream.v1+json;charset=UTF-8'
GET /rest/api/processes HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.stream.v1+json;charset=UTF-8
Authorization: Basic ZGZvOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.processes.stream.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1793
[ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"visible" : true,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ]
About the service
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Find processes (Paged)
The service is used to search for Processes. The response is paged with a default page size of 10.
Example 1 - Find all Processes
$ curl 'https://elma-smp.no/rest/api/processes' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8'
GET /rest/api/processes HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 2350
{
"content" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"visible" : true,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 2 - Sorting
$ curl 'https://elma-smp.no/rest/api/processes?sort=qualifiedIdentifier.value%2Casc' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8'
GET /rest/api/processes?sort=qualifiedIdentifier.value%2Casc HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 2236
{
"content" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ],
"pageable" : {
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 30,
"paged" : true,
"unpaged" : false
},
"totalPages" : 1,
"totalElements" : 2,
"last" : true,
"size" : 30,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 2,
"first" : true,
"empty" : false
}
Example 3 - Paging
$ curl 'https://elma-smp.no/rest/api/processes?page=3&size=10' -i -u 'sp1:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8'
GET /rest/api/processes?page=3&size=10 HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8
Authorization: Basic c3AxOnB3MTIz
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.processes.find.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 2237
{
"content" : [ {
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false
} ],
"requiredICDs" : [ "0192" ]
}, {
"identifier" : "705d8c8d-8ff1-4c21-a444-3e7481595696",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:www.cenbii.eu:profile:bii28:ver2.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_28A_2.0",
"alias" : "PEPPOL BIS Ordering 2.0 (Profile 28A)",
"restricted" : false,
"capabilities" : [ ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something"
} ],
"dependencies" : [ ],
"requiredICDs" : [ "9908" ]
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 30,
"pageNumber" : 3,
"pageSize" : 10,
"paged" : true,
"unpaged" : false
},
"totalPages" : 4,
"totalElements" : 32,
"last" : true,
"size" : 10,
"number" : 3,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"numberOfElements" : 2,
"first" : false,
"empty" : false
}
About the service
Parameter | Description |
---|---|
|
Page you want to retrieve. First page is page 0 |
|
Size of the page you want to retrieve. |
|
Properties that should be sorted by in the format property,property(,ASC|DESC). Default sort direction is ascending. Use multiple sort parameters if you want to switch directions, e.g. ?sort=firstname&sort=lastname,asc. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A boolean value indicating if this is the last page or not. |
|
|
The total number of elements |
|
|
The total number of pages |
|
|
The page size |
|
|
The page number |
|
|
A boolean value indicating if this is the first page or not. |
|
|
Number of elements returned in the page. |
|
|
True if the page is empty. False if not. |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
|
|
The offset to be taken according to the underlying page and page size. |
|
|
The requested page size |
|
|
The requested page number |
|
|
True if the result set is sorted. False otherwise. |
|
|
True if the result set is unsorted. False otherwise. |
|
|
True if no sorting. False otherwise |
Get process
Use this service to get information about a process.
Example 1 - Get a process by identifier
$ curl 'https://elma-smp.no/rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.processes.get.v1+json;charset=UTF-8'
GET /rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423 HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.get.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.processes.get.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1056
{
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
}
Example 2 - Not found
$ curl 'https://elma-smp.no/rest/api/processes/4891fab2-03da-42b1-812b-a9cf624ea588' -i -u 'admin:pw123' -X GET \
-H 'Accept: application/vnd.no.digdir.elma.processes.get.v1+json;charset=UTF-8'
GET /rest/api/processes/4891fab2-03da-42b1-812b-a9cf624ea588 HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.get.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 404 Not Found
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 311
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 404,
"error" : "Not Found",
"exception" : "no.difi.elma.lang.NotFoundException",
"message" : "Unable to find instance with identifier '4891fab2-03da-42b1-812b-a9cf624ea588'.",
"path" : "/rest/api/processes/4891fab2-03da-42b1-812b-a9cf624ea588"
}
About the service
Parameter | Description |
---|---|
|
A process identifier that is an UUID. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Add process
Use this service to add a new process.
Example 1 - Add a process
$ curl 'https://elma-smp.no/rest/api/processes' -i -u 'dfo:pw123' -X POST \
-H 'Content-Type: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8' \
-d '{
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}'
POST /rest/api/processes HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8
Content-Length: 553
Authorization: Basic ZGZvOnB3MTIz
Host: elma-smp.no
{
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}
HTTP/1.1 201 Created
Content-Type: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1056
{
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
}
Example 2 - Missing domain in input
$ curl 'https://elma-smp.no/rest/api/processes' -i -u 'admin:pw123' -X POST \
-H 'Content-Type: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8' \
-d '{
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}'
POST /rest/api/processes HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.processes.add.v1+json;charset=UTF-8
Content-Length: 526
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
{
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}
HTTP/1.1 400 Bad Request
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 717
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 400,
"error" : "Bad Request",
"exception" : "org.springframework.web.bind.MethodArgumentNotValidException",
"message" : "Validation failed for object='processFormDTO'. Error count: 1",
"errors" : [ {
"codes" : [ "NotNull.processFormDTO.domain", "NotNull.domain", "NotNull.java.lang.String", "NotNull" ],
"arguments" : [ {
"codes" : [ "processFormDTO.domain", "domain" ],
"defaultMessage" : "domain",
"code" : "domain"
} ],
"defaultMessage" : "must not be null",
"objectName" : "processFormDTO",
"field" : "domain",
"bindingFailure" : false,
"code" : "NotNull"
} ],
"path" : "/rest/api/processes"
}
About the service
Path | Type | Description | Constraints |
---|---|---|---|
|
|
The domain that this process belongs to. |
|
|
|
A title describing the process. |
|
|
|
An alias for the process title |
|
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
|
If the process has been deprecated. |
|
|
|
If the process is visible in the SMP lookup. |
|
|
|
A list of capabilities |
|
|
|
A list of document types |
|
|
|
A list of dependencies |
|
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
|
A UUID identifier. |
|
|
|
A UUID identifier. |
|
|
|
A UUID identifier. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Update process
Use this service to update a process.
Example 1 - Update a process
$ curl 'https://elma-smp.no/rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423' -i -u 'admin:pw123' -X PUT \
-H 'Content-Type: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8' \
-d '{
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}'
PUT /rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423 HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8
Content-Length: 553
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
{
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}
HTTP/1.1 200 OK
Content-Type: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1056
{
"identifier" : "adf9c140-995e-4be6-a1be-a09add595423",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"domain" : "Post-Award",
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa",
"title" : "peppolbis_order"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7",
"qualifiedIdentifier" : "busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0::2.1",
"title" : "something",
"visible" : true
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:dep",
"title" : "TEST DEPENDENCY",
"restricted" : false,
"visible" : true
} ],
"requiredICDs" : [ "0192" ]
}
Example 2 - Missing domain in input
$ curl 'https://elma-smp.no/rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423' -i -u 'admin:pw123' -X PUT \
-H 'Content-Type: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8' \
-H 'Accept: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8' \
-d '{
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}'
PUT /rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423 HTTP/1.1
Content-Type: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8
Accept: application/vnd.no.digdir.elma.processes.update.v1+json;charset=UTF-8
Content-Length: 526
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
{
"title" : "PEPPOLBIS_3_0_BILLING_01_UBL",
"alias" : "PEPPOL BIS Billing 3.0 (01, UBL)",
"qualifiedIdentifier" : "cenbii-procid-ubl::urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"restricted" : false,
"visible" : true,
"capabilities" : [ {
"identifier" : "ab5e28f5-703d-4428-8b1f-a417c1ff99aa"
} ],
"documentTypes" : [ {
"identifier" : "8e83282a-577f-4b06-8207-f8d6674b0da7"
} ],
"dependencies" : [ {
"identifier" : "205391ed-d9d3-494b-a907-ebafc6890ffd"
} ],
"requiredICDs" : [ "0192" ]
}
HTTP/1.1 400 Bad Request
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 754
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 400,
"error" : "Bad Request",
"exception" : "org.springframework.web.bind.MethodArgumentNotValidException",
"message" : "Validation failed for object='processFormDTO'. Error count: 1",
"errors" : [ {
"codes" : [ "NotNull.processFormDTO.domain", "NotNull.domain", "NotNull.java.lang.String", "NotNull" ],
"arguments" : [ {
"codes" : [ "processFormDTO.domain", "domain" ],
"defaultMessage" : "domain",
"code" : "domain"
} ],
"defaultMessage" : "must not be null",
"objectName" : "processFormDTO",
"field" : "domain",
"bindingFailure" : false,
"code" : "NotNull"
} ],
"path" : "/rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423"
}
About the service
Path | Type | Description | Constraints |
---|---|---|---|
|
|
The domain that this process belongs to. |
|
|
|
A title describing the process. |
|
|
|
An alias for the process title |
|
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
|
If the process has been deprecated. |
|
|
|
If the process is visible in the SMP lookup. |
|
|
|
A list of capabilities |
|
|
|
A list of document types |
|
|
|
A list of dependencies |
|
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
|
A UUID identifier. |
|
|
|
A UUID identifier. |
|
|
|
A UUID identifier. |
Path | Type | Description |
---|---|---|
|
|
A UUID identifier. |
|
|
A qualified identifier that consist of a scheme and a value. |
|
|
The domain that this process belongs to. |
|
|
A title describing the process. |
|
|
An alias for the process title |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
|
|
A list of capabilities |
|
|
A list of document types |
|
|
A list of dependencies |
|
|
A participant must have a ICD contained in this list to be able to add a process. |
|
|
A UUID identifier. |
|
|
The capability title. |
|
|
A UUID identifier. |
|
|
The document type title. |
|
|
The qualified identifier for the document type. |
|
|
If the document type is visible or not in the SMP. |
|
|
A UUID identifier. |
|
|
The dependency title. |
|
|
The qualified identifier for the dependency. |
|
|
If the process has been deprecated. |
|
|
If the process is visible in the SMP lookup. |
Delete process
Use this service to delete a process.
Example 1 - Delete a process
$ curl 'https://elma-smp.no/rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423' -i -u 'admin:pw123' -X DELETE \
-H 'Accept: application/vnd.no.digdir.elma.processes.delete.v1+json;charset=UTF-8'
DELETE /rest/api/processes/adf9c140-995e-4be6-a1be-a09add595423 HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.delete.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 204 No Content
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Example 2 - Process not found
$ curl 'https://elma-smp.no/rest/api/processes/4891fab2-03da-42b1-812b-a9cf624ea588' -i -u 'admin:pw123' -X DELETE \
-H 'Accept: application/vnd.no.digdir.elma.processes.delete.v1+json;charset=UTF-8'
DELETE /rest/api/processes/4891fab2-03da-42b1-812b-a9cf624ea588 HTTP/1.1
Accept: application/vnd.no.digdir.elma.processes.delete.v1+json;charset=UTF-8
Authorization: Basic YWRtaW46cHcxMjM=
Host: elma-smp.no
HTTP/1.1 404 Not Found
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 311
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 404,
"error" : "Not Found",
"exception" : "no.difi.elma.lang.NotFoundException",
"message" : "Unable to find instance with identifier '4891fab2-03da-42b1-812b-a9cf624ea588'.",
"path" : "/rest/api/processes/4891fab2-03da-42b1-812b-a9cf624ea588"
}
Errors
HTTP/1.1 400 Bad Request
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 775
{
"timestamp" : "2019-03-25T12:38:23.000",
"status" : 400,
"error" : "Bad Request",
"exception" : "org.springframework.web.bind.MethodArgumentNotValidException",
"message" : "Validation failed for object='addParticipantFormDTO'. Error count: 1",
"errors" : [ {
"codes" : [ "NotNull.addParticipantFormDTO.contact", "NotNull.contact", "NotNull.no.difi.elma.dto.rest.ContactFormDTO", "NotNull" ],
"arguments" : [ {
"codes" : [ "addParticipantFormDTO.contact", "contact" ],
"defaultMessage" : "contact",
"code" : "contact"
} ],
"defaultMessage" : "must not be null",
"objectName" : "addParticipantFormDTO",
"field" : "contact",
"bindingFailure" : false,
"code" : "NotNull"
} ],
"path" : "/rest/api/participants"
}
Path | Type | Description |
---|---|---|
|
|
Date and time for when the error occured. |
|
|
HTTP status code. |
|
|
Error description |
|
|
The java class of the Exception that was thrown |
|
|
A message describing the error. |
|
|
The request URI |
|
|
A more detailed description of the error. |
|
|
Constraint validations details. |
|
|
The message codes to be used to resolve this message. |
|
|
The default message to be used to resolve this message. |
|
|
The name/path of the object where the constraint validation occurred. |
|
|
The name/path of the field where the constraint validation occurred. |
|
|
The rejected field value. |
|
|
Whether this error represents a binding failure (like a type mismatch); otherwise it is a validation failure. |
|
|
The message code to be used to resolve this message. |
|
|
Constraint arguments. |
|
|
The message codes to be used to resolve this argument. |
|
|
The default message to be used to resolve this argument. |
|
|
The message code to be used to resolve this argument. |
Versioning
Active versions
Method | URL | Accept-Header |
---|---|---|
GET |
application/vnd.no.digdir.elma.accesspoints.find.v1+json |
|
GET |
application/vnd.no.digdir.elma.accesspoints.get.v1+json |
|
GET |
application/vnd.no.digdir.elma.document-types.find.v1+json |
|
GET |
application/vnd.no.digdir.elma.document-types.get.v1+json |
|
POST |
application/vnd.no.digdir.elma.document-types.add.v1+json |
|
PUT |
application/vnd.no.digdir.elma.document-types.update.v1+json |
|
DELETE |
application/vnd.no.digdir.elma.document-types.delete.v1+json |
|
GET |
application/vnd.no.digdir.elma.organization.processes.v1+json |
|
GET |
application/vnd.no.digdir.elma.participants.stream.v1+json |
|
GET |
application/vnd.no.digdir.elma.participants.find.v1+json |
|
GET |
application/vnd.no.digdir.elma.participants.get.v1+json |
|
GET |
application/vnd.no.digdir.elma.participants.get.v1+json |
|
POST |
application/vnd.no.digdir.elma.participants.add.v1+json |
|
PUT |
application/vnd.no.digdir.elma.participants.update.v1+json |
|
DELETE |
application/vnd.no.digdir.elma.participants.delete.v1+json |
|
DELETE |
application/vnd.no.digdir.elma.participants.delete.v1+json |
|
GET |
application/vnd.no.digdir.elma.participants.processes.v1+json |
|
GET |
/rest/api/participants/{identifier}/processes |
application/vnd.no.digdir.elma.participants.processes.v1+json |
PUT |
/rest/api/participants/{qualifiedIdentifier}/transfer/{serviceProviderIdentifier} |
application/vnd.no.digdir.elma.participants.transfer.v1+json |
GET |
application/vnd.no.digdir.elma.processes.stream.v1+json |
|
GET |
application/vnd.no.digdir.elma.processes.find.v1+json |
|
GET |
application/vnd.no.digdir.elma.processes.get.v1+json |
|
POST |
application/vnd.no.digdir.elma.processes.add.v1+json |
|
PUT |
application/vnd.no.digdir.elma.processes.update.v1+json |
|
DELETE |
application/vnd.no.digdir.elma.processes.delete.v1+json |