>_ NicAPI Dokumentation

REST-API von LUMASERV: Domains, DNS, SSL, Cloud-Server, IP-Adressen, Abrechnung und mehr.

Abrechnung / Lastschriftmandat

GET Lastschrift-Mandat abrufen API v1

GET https://connect.nicapi.eu/api/v1/accounting/debit

Gibt das aktuelle Lastschrift-Mandat zurück.

Authentifizierung
API-Token erforderlich (Authorization: Bearer … oder Parameter authToken)
Benötigte Rechte
DEBIT_MANDATES

Dieser Endpunkt benötigt neben der Authentifizierung keine weiteren Request-Parameter.

curl \
  -H "Authorization: Bearer IHR_API_TOKEN" \
  "https://connect.nicapi.eu/api/v1/accounting/debit"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::get("accounting/debit");

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}

POST Lastschrift-Mandat erstellen API v1

POST https://connect.nicapi.eu/api/v1/accounting/debit/create

Diese Funktion erstellt ein neues Lastschrift-Mandat.

Authentifizierung
API-Token erforderlich (Authorization: Bearer … oder Parameter authToken)
Benötigte Rechte
DEBIT_MANDATES

Request-Parameter Werden im Request-Body übergeben (JSON oder Formular-Felder).

Name Pflicht Typ Einschränkungen Beschreibung
owner Pflicht Text
iban Pflicht Text
bic Pflicht Text
Format: /^[A-Z]{6}[0-9A-Z]{2}([0-9A-Z]{3})?\z/
curl \
  -X POST \
  -H "Authorization: Bearer IHR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
         "owner": "text",
         "iban": "text",
         "bic": "text"
     }' \
  "https://connect.nicapi.eu/api/v1/accounting/debit/create"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::post("accounting/debit/create", [
    'owner' => 'text',
    'iban' => 'text',
    'bic' => 'text',
]);

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}

POST Lastschrift-Mandat widerrufen API v1

POST https://connect.nicapi.eu/api/v1/accounting/debit/withdraw

Widerruft das aktuelle Lastschrift-Mandat.

Authentifizierung
API-Token erforderlich (Authorization: Bearer … oder Parameter authToken)
Benötigte Rechte
DEBIT_MANDATES

Dieser Endpunkt benötigt neben der Authentifizierung keine weiteren Request-Parameter.

curl \
  -X POST \
  -H "Authorization: Bearer IHR_API_TOKEN" \
  "https://connect.nicapi.eu/api/v1/accounting/debit/withdraw"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::post("accounting/debit/withdraw");

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}