API INTEGRATION INFORMATION
RO | EN
Cardapp Cloud API is a flexible interface compatible with the most commonly used programming languages. This API interface allows the integration of the Cardapp Cloud platform with other online applications.

All communications with the Cardapp Cloud API are encrypted using the HTTPS or SSL protocol. Any unsecured call (HTTP only) is automatically rejected.

Features accessible through API methods

Checking card types;
Issuing new loyalty cards;
Adding bonus points and recording payments;
Refund/ cancel an order;
Using / querying / spending points from the card;
Checking the number of points accumulated on the card;
API CONNECTION DETAILS
Username
emailul_dvs@Domeniu_Dvs.ro

API KEY
TEST-123121313132fsdfdsfdsf4546464645

Access link for querying the Cardapp platform via cURL POST / GET
https://Subdomeniu.Domeniu_Dvs.ro/api/response.php

Queries can be performed using CURLOPT_POST (recommended) or GET.

WARNING! Make sure to enter your API credentials correctly. Otherwise, access to the API application will be automatically blocked after 3 consecutive failed queries!
USE / SPEND POINTS FROM CARD

Example of a GET request:

https://Subdomeniu.Domeniu_Dvs.ro/api/response.php?apikey=TEST-123121313132fsdfdsfdsf4546464645&username=emailul_dvs@Domeniu_Dvs.ro&action=cheltuire_puncte&nr_card={NUMARUL CARDULUI}&nr_puncte={NUMAR_PUNCTE}&valoare_reducere={VALOARE_REDUCERE_LEI}&suma={SUMA_VANZARE}&detalii_incasare={DETALII PLATA, BF, FACTURA SERIE NR ETC.}&tip_response={json sau xml}

Do not use { }. They are only for highlighting purposes. Correct: key=value Wrong: key={value}

Required parameters

Name Mandatory field Description
apikey YES API Key
username YES Email address used to connect to Cardapp
action YES Enter cheltuire_puncte
nr_card YES Enter the client's card number
nr_puncte YES enter the number of points to use from the card
valoare_reducere YES Enter the discount amount granted
suma YES Enter the sale amount in LEI, e.g., 500
detalii_incasare YES Enter the payment details: FISCAL RECEIPT, INVOICE, NOTES, UNIQUE ORDER ID, or other.
tip_response NO Enter xml if you want the response in XML format or json for JSON format
{
"status":"success",
"nr_card":"CBW_6332c9b22f01b",
"suma":"740",
"puncte_utilizate":37,
"detalii_incasare":"BF AA Nr.123456 / 04.10.2022",
"valoare_totala_puncte_lei":137

}
<cheltuire_puncte_response>

<status>success</status>
<nr_card>CBW_6332c9b22f01b</nr_card>
<suma>750</suma>
<puncte_utilizate>37</puncte_utilizate>
<detalii_incasare>BF BB Nr.123456 / 04.10.2022</detalii_incasare>
<valoare_totala_puncte_lei>5.6</valoare_totala_puncte_lei>

</cheltuire_puncte_response>