Top Banner
eC Access Point TECHNICAL DOCUMENTATION eC Access Point is a service facilitating b2b exchange of electronic messages according to the EHF standard used by the Norwegian governmental sector (hereafter called “messages”). This document specifies how an organization using the service can deliver messages to, and retrieve messages from, the service. The target group is technical personnel implementing and maintaining the user’s integration with the service. Contents 1 Definitions 2 2 Message types 2 3 File transfer 3 4 Senders and receivers 3 5 File naming 3 6 Distribution of messages in message files 4 7 Recipient identification in outgoing messages 4 8 Receipts 5 9 Rejection and error messages 6 10 Test and test recipient 8 11 Recommended ftp clients 9 Appendix 1: Valid values for ProfileId and CustomizationId 10
12

eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

Apr 28, 2018

Download

Documents

TrươngTuyến
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point

TECHNICAL DOCUMENTATION

eC Access Point is a service facilitating b2b exchange of electronic messages according to the

EHF standard used by the Norwegian governmental sector (hereafter called “messages”).

This document specifies how an organization using the service can deliver messages to, and

retrieve messages from, the service. The target group is technical personnel implementing and

maintaining the user’s integration with the service.

Contents

1 Definitions 2

2 Message types 2

3 File transfer 3

4 Senders and receivers 3

5 File naming 3

6 Distribution of messages in message files 4

7 Recipient identification in outgoing messages 4

8 Receipts 5

9 Rejection and error messages 6

10 Test and test recipient 8

11 Recommended ftp clients 9

Appendix 1: Valid values for ProfileId and CustomizationId 10

Page 2: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 2/12

1 Definitions

Term Used in this document, the term means

User The organization that has entered an agreement with EVRY to use the

eC Access Point service.

Sender An organization sending outgoing messages through the eC Access Point

service under the user’s agreement.

Issuer The organization that is the issuer of an outgoing message (as stated in the xml,

for example the AccountingSupplierParty in an outgoing invoice). This can be

the sender or another organization that the sender is sending on behalf of.

Receiver An organization receiving incoming messages through the eC Access Point

service under the user’s agreement.

Recipient The organization that a sender is sending a message to.

Originator The organization that a receiver is receiving messages from.

2 Message types

The basic version eC Access Point handles the following message types:

Message type Xml format

EHF Order version 1.0 UBL 2.1 Order

PEPPOL BIS Order version 1.0 UBL 2.1 Order

EHF Order Response version 1.0 UBL 2.1 OrderResponse

PEPPOL BIS Order Response version 1.0 UBL 2.1 OrderResponse

EHF Dispatch Advice version 1.0* UBL 2.1 DespatchAdvice

PEPPOL BIS Dispatch Advice version 1.0* UBL 2.1 DespatchAdvice

EHF Invoice version 2.0 UBL 2.1 Invoice

PEPPOL BIS Invoice version 2.0 UBL 2.1 Invoice

EHF Credit Note version 2.0 UBL 2.1 CreditNote

PEPPOL BIS Credit Note version 2.0 UBL 2.1 CreditNote

EHF Reminder version 1 UBL 2.0 Reminder

PEPPOL BIS Reminder version 1.0 UBL 2.0 Reminder

EHF Catalogue version 1.0 UBL 2.1 Catalogue

PEPPOL BIS Catalogue version 2.0 UBL 2.1 Catalogue

EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse

PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

Note:

The message type must be identified in the UBL element CustomizationId. See Appendix 1 for

a list of valid values for CustomizationId.

Page 3: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 3/12

3 File transfer

Messages are delivered to, and fetched from, the service via EVRYs server ftp.ec.evry.com.

The transfer is done using ftp or sftp over Internet. User name and password for the ftp account

is sent by EVRY to the user’s appointed contact person.

The ftp account has the following sub catalogues:

/in The user places outgoing message files (messages from the user) in this

catalogue.

/receipt The service will place receipt files and error message files in this catalogue for

the user to fetch.

/out The service will place incoming message files (messages to the receiver(s)) in

this catalogue for the user to fetch.

4 Senders and receivers

All senders and receivers must be configured in the service. Senders and receivers are

identified by organization number. If the user’s agreement with EVRY does not state otherwise,

the sender, the receiver and the user is the same.

5 File naming

Message files delivered from the user to the service (outgoing messages) must be named as

follows:

- File name length must not exceed 90 characters.

- The file name must consist of alpha numerical characters and the character ”_”

(underscore) only.

- The file name must match the following template:

<sender org no>_<unique string>, where

<sender org no> is the sender’s organization number and

<unique string> is a value that is unique over time for the sender. Such a string could

for instance be constructed based on a timestamp and / or a sequence number.

- File type must be .xml

Example: 840677123_200705021325eU257.xml

Receipt files from the service are named as follows:

Page 4: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 4/12

<name of message file>_DELIVERED.xml

Error message (“negative receipt”) files from the service will be named as follows:

<name of message file>_REJECTED.xml

Name of message file is the name of the corresponding message file.

Tip: Senders that represent several issuers, and need to identify on file name level which issuer a given

receipt/error message is meant for, should incorporate the issuer’s organization number in the <unique

string>-part of the message file name.

Message files from the service to the user (incoming messages) are named as follows:

<originator org no>_<receiver org no>_<message no>_<timestamp>_<doc

type>_<status>.xml

Originator org no is the organization number or id of the message originator

Receiver org no is the organization number of the message receiver

Message no is the number (ID) of the message

Timestamp gives the date and time for the delivery of the file to the user.

Doc type is one of the following

O: Order

OR: Order response

D: Dispatch advise

I : Invoice

C : Credit note

R : Reminder

K: Catalogue

KR: Catalogue response

Status is one of the following

V: Valid message

N: Non valid message

Example: 987234176_819075832_00070962782000_20120504090531930_I_V.xml

6 Distribution of messages in message files

Each message files must contain one and only one message.

7 Recipient identification in outgoing messages

In outgoing messages (messages from the user organization), the service expects to find the

electronic address of the recipient in the following UBL element

Page 5: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 5/12

Message UBL element

Order AccountingSupplierParty/Party/EndpointID

Order Response AccountingCustomerParty/Party/EndpointID

Dispatch Advice AccountingCustomerParty/Party/EndpointID

Invoice AccountingCustomerParty/Party/EndpointID

Credit Note AccountingCustomerParty/Party/EndpointID

Reminder AccountingCustomerParty/Party/EndpointID

Catalogue AccountingCustomerParty/Party/EndpointID

Catalogue Response AccountingSupplierParty/Party/EndpointID

The electronic addresses of most Norwegian businesses able to receive EHF can be found on

DIFI’s webpage (http://www.anskaffelser.no/e-handel/artikler/mottakere-i-elma).

8 Receipts

Error messages and receipts are in the format format UBL 2.0 ApplicationResponse.

Below is an example of a receipt.

<?xml version="1.0" encoding="ISO-8859-1"?>

<ApplicationResponse

xmlns="urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2"

xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-

2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-

2">

<cbc:UBLVersionID>2.0</cbc:UBLVersionID>

<cbc:CustomizationID>urn:www.cenbii.eu:transaction:biicoretrdm010:ver1.0

</cbc:CustomizationID>

<cbc:ProfileID>urn:www.cenbii.eu:profile:bii05:ver1.0</cbc:ProfileID>

<cbc:ID>512473551</cbc:ID>

<cbc:IssueDate>2012-01-12</cbc:IssueDate>

<cbc:IssueTime>00:35:11.000</cbc:IssueTime>

<cac:SenderParty>

<cac:PartyIdentification>

<cbc:ID>ACCESSPOINT</cbc:ID>

</cac:PartyIdentification>

</cac:SenderParty>

<cac:ReceiverParty>

<cac:PartyIdentification>

<cbc:ID>819075832</cbc:ID>

</cac:PartyIdentification>

</cac:ReceiverParty>

<cac:DocumentResponse>

<cac:Response>

<cbc:ReferenceID>819075832_12345020312999.xml</cbc:ReferenceID>

Page 6: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 6/12

<cbc:ResponseCode>ACCEPT</cbc:ResponseCode>

<cbc:Description>Message is confirmed delivered to the recipent’s

accesspoint</cbc:Description>

<cbc:Description>Accesspoint confirmation uuid:799756e9-cd8a-48aa-

90ed-8ce1e8a6d70b</cbc:Description>

</cac:Response>

<cac:DocumentReference>

<cbc:ID>1234</cbc:ID>

<cbc:IssueDate>2012-01-12</cbc:IssueDate>

<cbc:DocumentTypeCode>Invoice</cbc:DocumentTypeCode>

</cac:DocumentReference>

<cac:IssuerParty>

<cac:PartyLegalEntity>

<cbc:RegistrationName/>

<cbc:CompanyID>819075832</cbc:CompanyID>

</cac:PartyLegalEntity>

</cac:IssuerParty>

<cac:ReceiverParty>

<cac:PartyLegalEntity>

<cbc:RegistrationName/>

<cbc:CompanyID>998765678</cbc:CompanyID>

</cac:PartyLegalEntity>

</cac:ReceiverParty>

</cac:DocumentResponse>

</ApplicationResponse>

The second occurrence of the element DocumentResponse.Response.Description will contain

the uuid of the transfer to the recipient’s accesspoint. The uuid identifies the message

transferal uniquely, and the recipient’s accesspoint has confirmed that the message is received

and that responsibility for the message is accepted by the recipient’s accesspoint (and thereby

by the recipient).

9 Rejection and error messages

The service will reject a message delivered from the user

if the message is not valid according to EHF / xml schema for UBL

if the recipient cannot receive the given message type through the accesspoint

infrastructure. This could have different reasons:

o The recipient is not registred in the PEPPOL address registers

(ELMA/SMP/SML) as a recipient of the message type sent.

o The recipient’s accesspoint had some kind of trouble and was not able to receive

the message.

o The PEPPOL address registers had some kind of trouble and were not available

for lookup.

Page 7: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 7/12

When a message is rejected, the user receives an error message (“negative receipt”) in the

format UBL 2.0 ApplicationResponse, giving the reason for the rejection. Typical error

messages are:

Error message Reason for rejection / what should you do Unable to find information for participant ….

The recipient is not defined in the PEPPOL address registers (ELMA/SMP/SML) as a receiver of the message type / profile indicated in the xml element CustomizationId. Check the value of CustomizationId against the recipient’s entry in the PEPPOL SMP (normally ELMA).

Failed to send the file The recipient’s accesspoint had some kind of trouble and was not able to receive the message. This error message is normally only sent after the service has unsuccessfully tried three times to deliver the message. Try resending the message after some time, or contact the recipient and ask why their accesspoint is not able to receive.

Unable to locate an access point for the recipient. Problem with SMP lookup

The PEPPOL address registers had some kind of trouble and were not available for lookup. Check if you have received any messages from EVRY about such problems, and try resending the message after some time.

Schema validation error The EHF file was not valid according to the xsd for UBL.

Check the message against the XML Schema for UBL and correct the

errors. Ref ch 10.

Content validation error. The EHF file was not valid according to the business rules of EHF /

PEPPOL BIS

Check the messages against the business rules of EHF and correct the

errors. Ref ch 10.

Unknown document type The value of the element CustomizationId is not a document type

handled by the service.

Check the value against Appendix 1, and correct the error.

In case of rejection, the responsibility for the message goes back to the user.

Below is an example of an error message, responding to a message rejected as not valid

according the UBL schema.

<?xml version="1.0" encoding="ISO-8859-1"?>

<ApplicationResponse

xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"

xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-

2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2">

<cbc:UBLVersionID/>

<cbc:CustomizationID/>

<cbc:ProfileID/>

<cbc:ID>00000000000000000512473539000000</cbc:ID>

Page 8: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 8/12

<cbc:IssueDate>2012-05-04</cbc:IssueDate>

<cbc:IssueTime>09:05:30.000</cbc:IssueTime>

<cac:SenderParty>

<cac:PartyIdentification>

<cbc:ID>ACCESSPOINT</cbc:ID>

</cac:PartyIdentification>

</cac:SenderParty>

<cac:ReceiverParty>

<cac:PartyIdentification>

<cbc:ID>819075832</cbc:ID>

</cac:PartyIdentification>

</cac:ReceiverParty>

<cac:DocumentResponse>

<cac:Response>

<cbc:ReferenceID>819075832_9020025462__20120504-090117-

543.xml</cbc:ReferenceID>

<cbc:ResponseCode>REJECT</cbc:ResponseCode>

<cbc:Description>[ErrorMessage]-Schema validation error</cbc:Description>

<cbc:Description>[SchemaError]-error: cvc-elt.1: Cannot find the declaration

of element 'Invoice'.</cbc:Description>

</cac:Response>

<cac:DocumentReference>

<cbc:ID/>

<cbc:DocumentTypeCode>UnknownDocument</cbc:DocumentTypeCode>

</cac:DocumentReference>

</cac:DocumentResponse>

</ApplicationResponse>

10 Test and test recipient

EVRY has a test recipient registered in the Norwegian SMP ELMA. The test recipient accepts

all message types. The user can send messages to this test recipient (electronic address

9908:810305282).

Before starting to send messages to the test recipient, the user should have checked

that the messages contains the correct message type in CustomizationID (see ch 2).

that the messages are valid UBL. This can be done using an xml editor, validating the

messages according to the relevant xml schema (xsd) for the UBL message type. The

xml schemas can be found for instance on

http://www.schemacentral.com/sc/ubl20/ss.html or on DIFIs internet site

http://www.difi.no/anskaffelser/elektronisk-faktura/verktoykasse-for-elektronisk-

handel.

that the messages are valid EHF. This can be done validating the messages on DIFIs

internet site, http://www.difi.no/anskaffelser/elektronisk-faktura/verktoykasse-for-

elektronisk-handel.

Page 9: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 9/12

11 Recommended ftp clients

If the user does not already have an ftp client or other software to do the fpt/sftp operations

for sending and fetching messages, ftp clients can be downloaded from the Internet. There are

plenty of freeware to choose from, EVRY recommends Filezilla, CoreFTP and WinSCP.

Page 10: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 10/12

Appendix 1: Valid values for ProfileId and CustomizationId

The table below lists the valid Profile IDs for the profiles handled by the service.

Profile ProfileId

Invoice and credit note

bii04 version 2.0

(peppol4a, invoice only)

urn:www.cenbii.eu:profile:bii04:ver2.0

bii05 version 2.0

(peppol5a, invoice and credit note)

urn:www.cenbii.eu:profile:bii05:ver2.0

bixx version 2.0 (credit note only)

urn:www.cenbii.eu:profile:biixx:ver2.0

Biixy version 2.0 (invoice, credit note and reminder)

urn:www.cenbii.eu:profile:biixy:ver2.0

bixx version 2.0 (credit note only)

urn:www.cenbii.eu:profile:biixx:ver2.0

Catalogue, order and dispatch advise

bii01 version 2.0 (peppol1a, catalogue and catalogue response)

urn:www.cenbii.eu:profile:bii01:ver2.0

Bii28 version 2.0

(peppol28a, order and order response)

urn:www.cenbii.eu:profile:bii28:ver2.0

bii30 version 2.0 (peppol30a, dispatch advise only)

urn:www.cenbii.eu:profile:bii30:ver2.0

Note:

Page 11: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 11/12

The table below lists the valid Customization IDs for the different message types used within the profiles. Outgoing messages using

CustomizationIds not in this list will be rejected by the service.

Profile Message type CustomizationId

bii01 ver 2.0

EHF

Catalogue 1.0 urn:www.cenbii.eu:transaction:biitrns019:ver2.0:extended:urn:www.peppol.eu:bis:peppol1a:ver2.0: extended:urn:www.difi.no:ehf:katalog:ver1.0

Catalogue Response 1.0 urn:www.cenbii.eu:transaction:biitrns058:ver2.0:extended:urn:www.peppol.eu:bis:peppol1a:ver2.0: extended:urn:www.difi.no:ehf:katalogbekreftelse:ver1.0

PEPPOL BIS Catalogue 2.0 urn:www.cenbii.eu:transaction:biitrns019:ver2.0:extended:urn:www.peppol.eu:bis:peppol1a:ver2.0

Catalogue Response 2.0 urn:www.cenbii.eu:transaction:biitrns058:ver2.0:extended:urn:www.peppol.eu:bis:peppol1a:ver2.0

bii04 ver. 2.0

EHF Invoice 2.0 urn:www.cenbii.eu:transaction:biitrns010:ver2.0:extended:urn:www.peppol.eu:bis:peppol4a:ver2.0: extended:urn:www.difi.no:ehf:faktura:ver2.0

PEPPOL BIS Invoice 2.0 urn:www.cenbii.eu:transaction:biitrns010:ver2.0:extended:urn:www.peppol.eu:bis:peppol4a:ver2.0

bii05 ver. 2.0 EHF Invoice 2.0 urn:www.cenbii.eu:transaction:biitrns010:ver2.0:extended:urn:www.peppol.eu:bis:peppol5a:ver2.0: extended:urn:www.difi.no:ehf:faktura:ver2.0

Credit Note 2.0 urn:www.cenbii.eu:transaction:biitrns014:ver2.0:extended:urn:www.peppol.eu:bis:peppol5a:ver2.0: extended:urn:www.difi.no:ehf:kreditnota:ver2.0

PEPPOL BIS Invoice 2.0 urn:www.cenbii.eu:transaction:biitrns010:ver2.0:extended:urn:www.peppol.eu:bis:peppol5a:ver2.0

Credit Note 2.0 urn:www.cenbii.eu:transaction:biitrns014:ver2.0:extended: urn:www.peppol.eu:bis:peppol5a:ver2.0

Page 12: eC Access Point TECHNICAL DOCUMENTATION - Evry€¦ · EHF Catalogue Response version 1.0 UBL 2.1 ApplicationResponse PEPPOL BIS Catalogue Response version 2.0 UBL 2.1 ApplicationResponse

eC Access Point Technical documentation

Version 1.1 20150605aod Page 12/12

Note:

Profile Message type CustomizationId

bii28 ver. 2.0 EHF

Order 1.0 urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0: extended:urn:www.difi.no:ehf:ordre:ver1.0

Order Response 1.0 urn:www.cenbii.eu:transaction:biitrns076:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0: extended:urn:www.difi.no:ehf:ordrebekreftelse:ver1.0

PEPPOL BIS

Order 1.0 urn:www.cenbii.eu:transaction:biitrns001:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0

Order Response 1.0 urn:www.cenbii.eu:transaction:biitrns076:ver2.0:extended:urn:www.peppol.eu:bis:peppol28a:ver1.0

bii30 ver. 2.0 EHF Dispatch Advise 1.0 urn:www.cenbii.eu:transaction:biitrns016:ver2.0:extended:urn:www.peppol.eu:bis:peppol30a:ver1.0: extended:urn:www.difi.no:ehf:pakkseddel:ver1.0

PEPPOL BIS Dispatch Advise 1.0 urn:www.cenbii.eu:transaction:biitrns016:ver2.0:extended:urn:www.peppol.eu:bis:peppol30a:ver1.0

bixx ver. 2.0

EHF Credit Note 2.0 urn:www.cenbii.eu:transaction:biitrns014:ver2.0:extended:urn:www.cenbii.eu:profile:biixx:ver2.0: extended:urn:www.difi.no:ehf:kreditnota:ver2.0

biixy ver. 2.0 EHF Invoice 2.0 urn:www.cenbii.eu:transaction:biitrns010:ver2.0:extended:urn:www.cenbii.eu:profile.eu:biixy:ver2.0: extended:urn:www.difi.no:ehf:faktura:ver2.0

Credit Note 2.0 urn:www.cenbii.eu:transaction:biitrns014:ver2.0:extended:urn:www.cenbii.eu:profile:biixy:ver2.0: extended:urn:www.difi.no:ehf:kreditnota:ver2.0

Reminder 1 urn:www.cenbii.eu:transaction:biicoretrdm017:ver1.0:#urn:www.cenbii.eu:profile:biixy:ver1.0 #urn:www.difi.no:ehf:purring:ver1