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!
CLIENT PERSONAL DATA UPDATE / SYNCHRONIZATION

Example of a GET request:

https://Subdomeniu.Domeniu_Dvs.ro/api/response.php?apikey=TEST-123121313132fsdfdsfdsf4546464645&username=emailul_dvs@Domeniu_Dvs.ro&action=actualizare_date&nr_card={NUMARUL CARDULUI}&first_name={NUME_CLIENT}&last_name={PRENUME_CLIENT}&phone={TELEFON}&city={CITY}&data_nasterii={DATA_NASTERII}&newsletter={DA sau NU}&tip_response={json sau xml}

Client data can be updated partially; for example, updating first_name without modifying the other fields:

https://Subdomeniu.Domeniu_Dvs.ro/api/response.php?apikey=TEST-123121313132fsdfdsfdsf4546464645&username=emailul_dvs@Domeniu_Dvs.ro&action=actualizare_date&nr_card={NUMARUL CARDULUI}&first_name={NUME_CLIENT}&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 actualizare_date
nr_card YES Enter the client's card number
first_name NO The client’s first name is entered.
last_name NO The client’s last name is entered.
phone NO The client’s phone number is entered. format 07xxxxxxxx
city NO The client’s city/town of residence is entered.
data_nasterii NO The client’s date of birth is entered in YYYY-MM-DD format.
newsletter NO The client’s newsletter subscription preference is entered (YES or NO).
tip_response NO Enter xml if you want the response in XML format or json for JSON format
{
"status":"success",
"nr_card":XXXX_0000000000",
"first_name":"GEORGE",
"last_name":"POPESCU",
"Tel":"0700000000",
"localitate":"BUCURESTI",
"data_nasterii":"1990-10-25",
"newsletter":"DA"

}
<actualizare_date_response>

<status>success</status>
<nr_card>XXXX_0000000000</nr_card>
<first_name>GEORGE</first_name>
<last_name>POPESCU</last_name>
<Tel>0700000000</Tel>
<localitate>BUCURESTI</localitate>
<data_nasterii>1990-10-25</data_nasterii>
<newsletter>DA</newsletter>

</actualizare_date_response>
CLIENT PERSONAL DATA UPDATE / SYNCHRONIZATION

Example of a GET request:

https://Subdomeniu.Domeniu_Dvs.ro/api/response.php?apikey=TEST-123121313132fsdfdsfdsf4546464645&username=emailul_dvs@Domeniu_Dvs.ro&action=actualizare_date&nr_card={NUMARUL CARDULUI}&first_name={NUME_CLIENT}&last_name={PRENUME_CLIENT}&phone={TELEFON}&city={CITY}&data_nasterii={DATA_NASTERII}&newsletter={DA sau NU}&tip_response={json sau xml}

Client data can be updated partially; for example, updating first_name without modifying the other fields:

https://Subdomeniu.Domeniu_Dvs.ro/api/response.php?apikey=TEST-123121313132fsdfdsfdsf4546464645&username=emailul_dvs@Domeniu_Dvs.ro&action=actualizare_date&nr_card={NUMARUL CARDULUI}&first_name={NUME_CLIENT}&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 actualizare_date
nr_card YES Enter the client's card number
first_name NO The client’s first name is entered.
last_name NO The client’s last name is entered.
phone NO The client’s phone number is entered. format 07xxxxxxxx
city NO The client’s city/town of residence is entered.
data_nasterii NO The client’s date of birth is entered in YYYY-MM-DD format.
newsletter NO The client’s newsletter subscription preference is entered (YES or NO).
tip_response NO Enter xml if you want the response in XML format or json for JSON format
{
"status":"success",
"nr_card":XXXX_0000000000",
"first_name":"GEORGE",
"last_name":"POPESCU",
"Tel":"0700000000",
"localitate":"BUCURESTI",
"data_nasterii":"1990-10-25",
"newsletter":"DA"

}
<actualizare_date_response>

<status>success</status>
<nr_card>XXXX_0000000000</nr_card>
<first_name>GEORGE</first_name>
<last_name>POPESCU</last_name>
<Tel>0700000000</Tel>
<localitate>BUCURESTI</localitate>
<data_nasterii>1990-10-25</data_nasterii>
<newsletter>DA</newsletter>

</actualizare_date_response>