Description
This is the API of 1159 Finance. It can be used to get information about debtors, cases and payments and to submit new claims or payments.
Authentication
The authentication is done by your client id and your secret API key. Please contact apisupport@1159finance.com if you don't have a client id or secret API key, yet.
Authentication by header
The client id and API key are sent as HTTP headers inside each request. The client id is sent via the X-Auth-Id header, the API key via X-Auth-Key header, i. e. (curl example):
curl -H "X-Auth-Id: {client_id}" -H "X-Auth-Key: {api_key}" \ https://develop.1159finance.com/api/v1/payments
API endpoints
The base URI for the 1159 Finance API are:
Sandbox: https://develop.1159finance.com/api/v1
Live system: https://partner.1159finance.com/api/v1
You can see the full URI to use for the different API methods below.
Please contact apisupport@1159finance.com if you need a testing account on the sandbox. Please also make sure that you tested your API calls in the sandbox before you switch to the live system.
Request format
There are different types of parameters to send to the API: json parameters and query parameters. Which parameters can be used is stated at the corresponding API section below.
Response format
The API either only returns a HTTP status code or a status code and json object in the response body. The json object (if existent) always contains an 'error' attribute.
{ "error": true, "message": "TYPE_OF_ERROR", "information": "Further information", "dataset": 123, ... }
The attribute 'error' is set to true if something was wrong with your call. Please be aware that the API also uses HTTP error status codes, so you will have to evaluate the json response on '400', '403' and '404' status codes, too.
If the 'error' attribute is true, you will get one or more further attributes:
General error typesshow
string
Here you get the type of error that occured. Specific error types for the different API methods are explained below. These are the general error codes:
MISSING_HTTP_METHOD
Our server could not read the HTTP method (GET, POST, PUT, DELETE) that you sent.
INVALID_HTTP_METHOD
You did not send a valid HTTP method (GET, POST, PUT, DELETE).
UNSUPPORTED_METHOD
The HTTP method you used is not supported by this endpoint.
MISSING_REQUEST_URI
The API URI that you called is not valid.
INVALID_API_VERSION
The API version you set is unsupported.
MISSING_API_METHOD
The API URI you called did not contain any valid endpoint.
UNKNOWN_API_METHOD
The API URI you called contains an endpoint that is not known to the system.
MISSING_OBJECT_ID
Some methods require an object id, e. g. getting debtor or payment details or reporting a new debtor address.
NO_OBJECT_ID_ALLOWED
Some methods do not allow an object id to be passed over.
MISSING_CLIENT_ID
You did not provide your client id in the API request.
MISSING_API_KEY
You did not provide your API auth key in the request.
CLIENT_NOT_ACTIVE
The client account you used is not existing or not yet active. Please contact your sales manager.
CLIENT_API_NOT_ACTIVE
Your account has not yet been enabled for API calls.
INVALID_AUTH_KEY
The API key that you used is not valid.
MISSING_JSON_DATA
The method you called require a JSON object in the request body, but it was missing.
INVALID_JSON_DATA
The JSON data in your request body could not be decoded.
INVALID_REQUEST
The request you sent could not be understand.
API_CALL_FAILED
The API call failed for an unknown reason. If this persists please contact the support.
string
If there are further information regarding the error, these are conained in this attribute. For example this can be the value you submitted causing the error.
int
If you submitted multiple claims or debtors at once, this field contains the dataset number that triggered the error.
General arguments
These JSON paramters are used on all search endpoints.
int [1 - 1000]
You can limit the amount of results you are returned by the API to 1000 at max and 1 at min.
int [0 - ...]
To get further results beyond your set limit you can provide the offset parameter.
Claim typesshow
Some API methods that return claims will list a 'type' attribute of each claim. This type can be one of the following:
CLAIM
Main Claim sent by you.
COLLECTION_FEE
Collection fee of 1159 Finance added to the case.
DUNNING_FEE
Dunning fee added to the case if defined in your client account settings.
INTEREST
Interest added to the main claim.
INSTALLMENT_FEE
Fee added to the case for an installment plan.
ADDRESS_RESEARCH_FEE
Fee added to the case for general address research actions.
POSTAL_ADDRESS_RESEARCH
Fee for enquiries sent to postal service to get current address of debtor.
SCHUFA_REQUEST
Fee for enquiries sent to Schufa to get current address of debtor.
EXECUTION_FEE
Fee because of execution.
COURT_FEE
Fee billed by the court.
REGISTRATION_OFFICE_ENQUIRY
Cost that arose due to enquiry at a registration office to get a current address of a debtor.
OTHER
Other cost added to the case.