The Dibito REST API provides services to submit, verify and deliver eBills. The API is designed to be used by biller integrations.
https://app.dibito.ch/
https://app.dibito.ch/api/v1/bill-recipient-subscriptions/initiations/{subscriptionInitiationToken}
curl -i -X PUT \
'https://app.dibito.ch/api/v1/bill-recipient-subscriptions/initiations/{subscriptionInitiationToken}' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"activationCode": 123456
}'
Bill recipient relation initiated
email address of the bill recipient
SIX ID of the bill recipient
Swiss enterprise identification number (UID) without dashes, dots or extension. Note that this has to contain the swiss enterprise identification number (UID) from the commercial register (Handelsregister) which may be different from the VAT UID (Mehrwertsteuer UID).
last name, if private bill recipient company name, if company bill recipient
first name, if private bill recipient empty, if company bill recipient
language for correspondence with this bill recipient ISO-639-2/B
{ "emailAddress": "peter@muster.ch", "billRecipientSixId": 41010560425610180, "enterpriseIdentificationNumber": "CHE123456789", "type": "PRIVATE", "name": "for private bill recipient: Muster, for company name: Muster AG", "firstName": "Peter", "correspondenceLanguage": "ger", "address": { "streetName": "Neustadtstrasse", "postalCode": 6025, "city": "Neudorf", "countryCode": "CH" } }
This endpoint initiates the "Bill recipient driven subscription (Subscription at the biller)" process, returns a subscription initiation token to the caller and sends a verification code to the eBill subscribers email address. Only the primary network partner of a biller is allowed to initiate the subscription at the biller.
https://app.dibito.ch/api/v1/bill-recipient-subscriptions/initiations
curl -i -X POST \
https://app.dibito.ch/api/v1/bill-recipient-subscriptions/initiations \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"emailAddress": "hansmuster@muster.info"
}'
{ "subscriptionInitiationToken": "0dc2ff79-db4c-4635-a4aa-f93f36ab5dbf" }