Skip to main content

API essentials

API routes for Provider-to-SIX API

The connectivity to the debiX API can be established via multiple network channels. The bank can choose which one to rely on for the test and production environments.

Here is a list of the available connectivity channels and related paths:

SSFN

EnvironmentURL
PRODhttps://api.six.ssfn.ch/api/debix-auth/provider-auth/v2
TESThttps://api-preprod.np.six.ssfn.ch/api/debix-auth/provider-auth/v2

P2P

EnvironmentURL
PRODhttps://api.p2p.six-group.com/api/debix-auth/provider-auth/v2
TESThttps://api-preprod.np.p2p.six-group.com/api/debix-auth/provider-auth/v2

Internet

EnvironmentURL
PRODhttps://api.six-group.com/api/debix-auth/provider-auth/v2
TESThttps://api-preprod.np.six-group.com/api/debix-auth/provider-auth/v2

Example

Each path must be combined with the API platform URL. Therefore, all endpoints are defined with a related path.

Here is an example for the /healthcheck endpoint:

endpoint-example.png

Encoding

As defined in RFC4627, the encoding for JSON content is UTF-8.

HTTP verbs

The endpoints use the appropriate HTTP verb for the operations.

VerbDescription
GETRetrieve resources
POSTCreate resources
PUTUpdate resources with full data
DELETEDelete resources

HTTP headers

HTTP headers let the client and the server forward additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value.

Request headers

The following headers must be used for every request:

  • accept: application/json
  • x-request-id A unique identifier for a request and response pair.
  • content-length: <length> Must be specified for requests with a payload.

Response headers

The API always indicates the return type with a content-type header.

Response codes

The result of the endpoint's operation is reflected in the HTTP status code. The standard HTTP status codes are used:

HTTP status codeSummaryDescription
200OKThe request was handled successfully
201CreatedA new resource was created
304Not modifiedThe resource has not been changed
400Bad requestThe request parameters are invalid
401UnauthorizedThe authentication information is missing
403ForbiddenNo access to the resource
404Not foundThe resource could not be found
500Internal server errorAn unexpected condition was encountered
503Service unavailableThe server cannot handle the request

Error responses

Error responses include an HTTP status code and a JSON response body that contains details about the error: error-example.png

Error codes

The application error codes are used in the body of an error response.

Application errorError codeDescription
MISSING_MANDATORY_PARAMETER4101A mandatory parameter is missing.
BAD_REQUEST_FORMAT4102Malformed JSON request.
INVALID_PARAMETER_VALUE4103The validation of the provided request parameters failed.
AUTHENTICATION_NOT_PRESENT4401Authentication request not found.
ILLEGAL_STATE4402Authentication request already processed.
OPERATION_FAILED5001The requested operation failed.
TECHNICAL_ERROR5002An unexpected error occurred.

Standard error codes

Some application error codes may be returned from any endpoint and are excluded from the detailed endpoint descriptions:

  • 4401
  • 5001
  • 5002

Request validation error codes may be returned from any POST and PUT endpoint with request arguments and are excluded from the detailed endpoint descriptions:

  • 4102
  • 4103