AbaBridge Partner-API Documentation (0.1)

Download OpenAPI specification:

Abacus Support (TBD): support@abacus.ch License: License TBD Terms of Service

Disclaimer
You are viewing an unfinished version of this technical documentation.
This API specification is not yet final.


Welcome to the AbaBridge Partner-API documentation.

Introduction

The AbaBridge is a powerful platform that enables the interchange of electronic data (EDI) across participating networks.

Using the AbaBridge Partner-API you may integrate your own ERP system with the AbaBridge, allowing you to access the functionality provided by the supported networks.

Getting started

In order to use the API one first needs a DeepCloud business organisation account, which can be created when accessing the Partner-API application for the first time. Select 'Create account' when prompted with the 'deepcloud Sign in'.

Once you are successfully authenticated within the Partner-API application, you may then create an AbaBridge account. Finally and in order to use this API, you can generate an API token. The token needs to be included in the 'Authorization' HTTP header, prefixed with 'Token ' (e.g. Authorization: Token <your-generated-api-token>).

Business case management

Create outbound business cases or process inbound business cases.

Fetch business cases by the specified AbaNet-ID and optionally filter by status.

Returns a list of business cases relevant to the AbaBridge account.

Filtering by pending status is particularly useful for scheduled processing of available business cases.

Business cases are periodically deleted. The specific date of deletion is denoted in their deletionDate property.

Authorizations:
API-Token
path Parameters
abaNetId
required
integer <int64>

The ID of the account associated with the business case

query Parameters
status
string

The status by which the business cases are filtered

Responses

Create a new business case.

Creates a business case issued by the account with the given AbaNet-ID using the target network.

The response will contain the id of the successfully created business case.

Authorizations:
API-Token
path Parameters
abaNetId
required
integer <int64>

The ID of the account issueing the business case

Request Body schema: multipart/form-data
network
required
string
Enum: "AbaNet" "eBill"

The target network of the business case

abaDoc
required
string <binary> <application/xml>

The business case including meta information in AbaDoc/XML format

pdf
string <binary> <application/pdf>

The business case in PDF format

Responses

Fetch a single business case by the specified AbaNet- and BusinessCase-IDs.

Returns the business case associated with the given IDs if it exists.

Business cases are periodically deleted. The specific date of deletion is denoted in their deletionDate property.

Authorizations:
API-Token
path Parameters
abaNetId
required
integer <int64>

The ID of the account associated with the business case

businessCaseId
required
string

The ID of the business case

Responses

Update the status of a business case with the specified ID.

After downloading and processing a business case, it can then be marked as processed by setting the status to acknowledged. That way, it will no longer appear when filtering business cases by status pending.

One may undo this operation by setting the status to pending.

Authorizations:
API-Token
path Parameters
abaNetId
required
integer <int64>

The ID of the account associated with the business case

businessCaseId
required
string

The ID of the business case

Request Body schema: application/json
required
status
required
string

The new status of the business case

Responses

Request samples

Content type
application/json
{
  • "status": "string"
}

Download the contents of the business case with the specified ID.

Returns a .zip file containing the files relevant for the business case, which may vary based on the type of business case and/or the formats that have been used.

Authorizations:
API-Token
path Parameters
businessCaseId
required
string

The ID of the business case

Responses

eBill

Endpoints towards the eBill infrastructure provided by SIX.

Create business case

The creation of a business case in PDF/A-3b format works with a simple POST request where the PDF is the binst where the PDF is the binary payload of the request.

Note that only one PDF can be submitted at a time.

Authorizations:
API-Token
path Parameters
billerPid
required
integer <int64>
Example: 41090001234567890

Partner-Id of the biller

Request Body schema: multipart/form-data
pdf
required
string <binary>

The business case in PDF/A-3b format

abadoc
string <binary>

The business case including meta information in XML/AbaDoc format.

Responses

Search for bill recipients for this biller

Returns a list of one or more bill recipients.

The response will only list a bill recipient if he allows bills to be posted by the biller or allows bills to be posted in general. It will always return the billRecipientId and optionally any other provided parameter. The call will return an empty list if no matching bill recipient is found or the biller is not allowed to send bills to the bill recipient.

Authorizations:
API-Token
path Parameters
billerPid
required
integer <int64>
Request Body schema: application/json
required
emailAddress
string
billRecipientId
integer <int64> [ 41000000000000000 .. 42000000000000000 ]

Id of the bill recipient

enterpriseIdentificationNumber
stringCHE\d{9}

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).

Responses

Request samples

Content type
application/json
{
  • "emailAddress": "john.doe@acme.org",
  • "billRecipientId": 41010560425610180,
  • "enterpriseIdentificationNumber": "CHE123456789"
}

Find sectors

Returns all sectors within the eBill infrastructure.

The sectors are more or less static and can therefore be cached.

Authorizations:
API-Token

Responses

Performs a health check.

Returns a status message of the underlying infrastructure.

Authorizations:
API-Token

Responses

Find events related to status changes of instalments

Events for status changes of instalment bills only which belong to any billerPid registered with the requesting SWP.

Authorizations:
API-Token
path Parameters
billerPid
required
integer <int64>
Example: 41090001234567890

Partner-Id of the biller

query Parameters
lastEventId
string
Example: lastEventId=EVID00000000000000001234567890ABCDEF

Id of the last event processed by the caller

limit
integer <int32> ( 0 .. 10000 ]
Default: 1000

Responses

Find events related to status changes of business cases

Events for status changes of bills, advices, credit notes and reminders which belong to any billerPid registered with the requesting SWP.

Authorizations:
API-Token
path Parameters
billerPid
required
integer <int64>
Example: 41090001234567890

Partner-Id of the biller

query Parameters
lastEventId
string
Example: lastEventId=EVID00000000000000001234567890ABCDEF

Id of the last event processed by the caller

limit
integer <int32> ( 0 .. 10000 ]
Default: 1000

Responses

Find events related to bill recipients' subscription status changes

Events for status changes on bill recipient subscriptions to any billerPid registered with the requesting SWP, regardless if subscriptions have been done without registration form (event from infrastructure) or with registration form (no event from infrastructure).

Authorizations:
API-Token
path Parameters
billerPid
required
integer <int64>
Example: 41090001234567890

Partner-Id of the biller

query Parameters
lastEventId
string
Example: lastEventId=EVID00000000000000001234567890ABCDEF

Id of the last event processed by the caller

limit
integer <int32> ( 0 .. 10000 ]
Default: 1000

Responses

Find events related to recipients' email address changes

This event is triggered after any billerPid registered with the requesting SWP has submitted a business case with an outdated, so called historically available email address. It notifies about the changed email address of a bill recipient, which has been adjusted in eBill. An email address is considered to be historically available if it was present up to 15 months prior to the submission time.

The billers are able to submit business cases with historically available email addresses of a bill recipient. However, latest 15 months after the email address changed, the billers are required to submit the business cases with the currently valid email address of the bill recipient.

Authorizations:
API-Token
path Parameters
billerPid
required
integer <int64>
Example: 41090001234567890

Partner-Id of the biller

query Parameters
lastEventId
string
Example: lastEventId=EVID00000000000000001234567890ABCDEF

Id of the last event processed by the caller

limit
integer <int32> ( 0 .. 10000 ]
Default: 1000

Responses

Get business case

Returns the biller's business case with the given business case ID.

The returned JSON object contains one of the business case subtypes: Bill, InstalmentBill, Reminder, CreditNote or Advice.

Authorizations:
API-Token
path Parameters
billerPid
required
integer <int64>
businessCaseId
required
string <uuid>

Responses