Receive e-invoices

Receive e-invoices to your customers and reply back with an application response

Introduction

Sequence diagram illustrating invoice reception setup and flow

Create webhook

        curl -X 'POST' \
  'https://sproom.net/api/webhooks' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "documentReceived",
  "url": "https://my.company.com/sproom-webhook"
}'
        
    

Register child for reception

Authenticate as a child company

Register for reception

        curl -X 'POST' \
  'https://sproom.net/api/registrations/nemhandel' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer (INSERT TOKEN FOR CHILD COMPANY HERE) \
  -d '{
  "profiles": [
    "nes5Customer"
  ],
  "endpointId": {
    "schemeId": "DK:CVR",
    "value": "29403473"
  }
}'
        
    

Receiving e-invoices

        curl -X 'GET' \
  'https://sproom.net/api/documents/6d2244b2c1-a7cf-4d10-a835-ad19863f67ff/oioUbl2' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer (INSERT YOUR TOKEN HERE)
        
    

Responding to the received document

        curl -X 'POST' \
  'https://sproom.net/api/documents/6d2244b2c1-a7cf-4d10-a835-ad19863f67ff/responses' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer (INSERT YOUR TOKEN HERE) \
  -d '{
  "state": "Rejected",
  "reason": "You forgot to deduct the agreed discount"
}'
        
    

Contact us for questions

Do you have questions on how to do you integration, contact us now and we will help you as quick as possible

Tlf: +45 88 20 20 40 E-mail: support@sproom.net

Alt text is missing