This endpoint verifies the combination of subscription initiation token and activation code. If the combination is valid, it creates an active biller relation. Only the primary network partner of a biller is allowed to confirm the subscription at the biller initiation.
Dibito REST API (1.1)
The Dibito REST API provides services to submit, verify and deliver eBills. The API is designed to be used by biller integrations. 
 Please refer to the API tutorial for your first eBill submission.
API Key
This API requires an API key to be passed in the `X-API-Key` header.Generate your API key in the Dibito application under "Dibito -> API Keys".
Top level overview
- Create bills by posting either a QR-Invoice as PDF to the /v1/business-cases` endpoint or a fully populated JSON object to one of the business case type endpoints.
 - If the request succeeds, it passed validation and can be delivered to the eBill recipients.
 - Use the webhook endpoints to be notified about changes to your recipient subscriptions or business case statuses.
 
Referencing existing bills
If you pass one of the reference parameters or fill in the referenced bills section in your business case, the submitted eBill will:- In case of a reminder: Add a reminder to the eBill portal of the reciepient for the referenced bill.
 - In case of a donation inquiry: Will do nothing. Donation inquiries cannot be referenced.
 - In any other case: Replace the referenced bill with the new one in the eBill portal of the recipient. (Hint: Use advices to effectively cancel delivered eBills.)
 
Product Website
https://www.dibito.chFurther Informations
Consult our documentation for further informations about creating and handling eBills.https://app.dibito.ch/
- Generated server url
https://app.dibito.ch/api/v1/bill-recipient-subscriptions/initiations/{subscriptionInitiationToken}
 
- curl
 - JavaScript
 - Node.js
 - Python
 - Java
 - C#
 - PHP
 - Go
 - Ruby
 - R
 - Payload
 
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" } }
Request
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.
- Generated server url
https://app.dibito.ch/api/v1/bill-recipient-subscriptions/initiations
 
- curl
 - JavaScript
 - Node.js
 - Python
 - Java
 - C#
 - PHP
 - Go
 - Ruby
 - R
 - Payload
 
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" }