Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization
header with the value "Bearer {YOUR_AUTH_KEY}"
.
All authenticated endpoints are marked with a requires authentication
badge in the documentation below.
You can retrieve your token by visiting API module, API keys section, and clicking Add to create new tokens.
Events
Get by ID
requires authentication
Retrieves the event with the given ID and returns it as a JSON response.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/events/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/8';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 230
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get All Events
requires authentication
Retrieve a list of events based on filters provided in the request.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"public\": true,
\"has_tickets\": true,
\"date\": \"1992-05-18\"
}"
const url = new URL(
"https://api.berrly.com/v1/events"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"public": true,
"has_tickets": true,
"date": "1992-05-18"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'public' => true,
'has_tickets' => true,
'date' => '1992-05-18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 229
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Set Member Attendance
requires authentication
Sets the attendance for a member at an event.
Example request:
curl --request POST \
"https://api.berrly.com/v1/events/15/member/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"YES\",
\"status_verified\": \"YES\",
\"attendance_tags\": \"[\\\"tag-1\\\",\\\"tag-2\\\"]\"
}"
const url = new URL(
"https://api.berrly.com/v1/events/15/member/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "YES",
"status_verified": "YES",
"attendance_tags": "[\"tag-1\",\"tag-2\"]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/15/member/15';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'status' => 'YES',
'status_verified' => 'YES',
'attendance_tags' => '["tag-1","tag-2"]',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 228
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Member Attendance
requires authentication
Retrieve the attendance for a given event and member.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/5/member/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/events/5/member/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/5/member/15';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 227
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Attendance by Token
requires authentication
Retrieves the attendance information for a specific token.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/attendance/token" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"illum\",
\"id_event\": 1
}"
const url = new URL(
"https://api.berrly.com/v1/events/attendance/token"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "illum",
"id_event": 1
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/attendance/token';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'token' => 'illum',
'id_event' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 226
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Attendance by National ID Number
requires authentication
Retrieves the attendance information for a member based on their national ID number and event ID.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/attendance/national_id_number" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"nationalIdNumber\": \"incidunt\",
\"eventId\": 10
}"
const url = new URL(
"https://api.berrly.com/v1/events/attendance/national_id_number"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nationalIdNumber": "incidunt",
"eventId": 10
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/attendance/national_id_number';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'nationalIdNumber' => 'incidunt',
'eventId' => 10,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 225
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Attendances
requires authentication
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/attendance/event/0033308" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/events/attendance/event/0033308"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/attendance/event/0033308';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 224
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Members
requires authentication
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/members/event/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/events/members/event/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/members/event/2';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 223
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get capacity
requires authentication
Get the attendance capacity of an event.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/attendance/capacity/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/events/attendance/capacity/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/attendance/capacity/3';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 222
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Attendance by ID
requires authentication
Retrieves the attendance information for a given attendance ID.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/attendance/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/events/attendance/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/attendance/16';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 221
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Scan Token
requires authentication
Scan a member or attendance token and process accordingly.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/events/attendance/scan-qr" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"abcde123\",
\"id_event\": 18
}"
const url = new URL(
"https://api.berrly.com/v1/events/attendance/scan-qr"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "abcde123",
"id_event": 18
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/attendance/scan-qr';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'token' => 'abcde123',
'id_event' => 18,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 220
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enter or Leave
requires authentication
Register IN/OUT using a PDF/Paper ticket token
Example request:
curl --request POST \
"https://api.berrly.com/v1/events/attendance/access-control" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"action\": \"IN\",
\"token\": \"abcde123\",
\"id_event\": 4,
\"id_attendance\": 8
}"
const url = new URL(
"https://api.berrly.com/v1/events/attendance/access-control"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"action": "IN",
"token": "abcde123",
"id_event": 4,
"id_attendance": 8
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/events/attendance/access-control';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'action' => 'IN',
'token' => 'abcde123',
'id_event' => 4,
'id_attendance' => 8,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 219
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Members
Get by ID
requires authentication
Display the specified member.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/members/532223" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/members/532223"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/532223';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"id_member": 532223,
"id_member_update": null,
"type": "MEMBER",
"entity_type": "INDIVIDUAL",
"num_member": 34,
"national_id_number": "40761663M",
"national_id_type": "DNI",
"name": "Abril",
"last_name": "Terrazas Alanis",
"fname": "",
"alias": "",
"gender": null,
"birthdate": null,
"email": "abril.terrazas@example.com",
"email2": null,
"email3": null,
"phone_mobile": "918 487907",
"phone_number": "+34 960-86-2237",
"phone_emergency": "+34 913-356606",
"address": "Paseo Victoria, 047, 85º A",
"postal_code": "87543",
"city": "As Botello",
"province": "Sevilla",
"region": "Comunidad de Madrid",
"country": "",
"photo": "https://storage.googleapis.com/berrly-saas/bnonprofit/members/NcCbZ3oIaF-532223.jpg",
"legal_name": null,
"industry": null,
"contact_name": null,
"contact_email": null,
"contact_phone": null,
"contact_position": null,
"web": null,
"linkedin": null,
"twitter": null,
"facebook": null,
"instagram": null,
"tiktok": null,
"telegram": null,
"skype": null,
"subscription_date": "2014-09-29T00:00:00.000000Z",
"unsubscription_date": null,
"tags": [
"socio-con-empresa",
"forma-parte-de-colectivo",
"cargo-en-cuenta",
"impagos",
"cuota-premium"
],
"extra_fields": [
{
"id_field_schema": 3114,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Periodicidad de pago",
"type": "DROPDOWN-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3136,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Nombre familiar",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3630,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Preferencias",
"type": "DROPDOWN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3888,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Seccions",
"type": "DROPDOWN-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4075,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Cursos",
"type": "DROPDOWN-MULTIPLE-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4088,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Àrea d'interès",
"type": "DROPDOWN-MULTIPLE-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4305,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Nombre de la familia (apellidos niño)",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4306,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Justificante de pago",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4860,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Comprobant sol.licitut beca",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4888,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia del NIF o NIE de la persona que fa la inscripció",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4889,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia de la targeta sanitària (CatSalut) o mútua de l’infant",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4890,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia de la cartilla de vacunacions de l’infant",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4891,
"id_organization": 1788,
"id_field_category": 1469,
"order": 0,
"name": "Nom i cognoms Pare/ Mare/ Tutor legal",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4892,
"id_organization": 1788,
"id_field_category": 1469,
"order": 0,
"name": "NIF o NIE Pare/ Mare/ Tutor legal",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4893,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 1",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4894,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 1",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4895,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 2",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4896,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 2",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4897,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 3",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4898,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 3",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4899,
"id_organization": 1788,
"id_field_category": 1199,
"order": 0,
"name": "Autorització subministrament de Paracetamol",
"type": "BOOLEAN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4900,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix algun tipus d’alteració física o psíquica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4901,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix alguna malaltia crònica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4902,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pren algun medicament de forma periòdica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4903,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix algun tipus d’al·lèrgia",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4904,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu qualsevol observació rellevant sobre l’alimentació",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4906,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Tipo de socio",
"type": "DROPDOWN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4907,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Indica la cantidad si quieres hacer una aportación extra (€)",
"type": "NUMBER",
"visible": true,
"sort": true,
"translations": null,
"data": null
}
],
"media": [],
"shared_media": [
{
"id": 60934,
"id_organization": 1788,
"model_type": "App\\Organization",
"model_id": 1788,
"collection_name": "documents",
"name": "Berrly - Asociaciones y Federaciones",
"file_name": "9g9j67WX-Berrly---Asociaciones-y-Federaciones.pdf",
"mime_type": "application/pdf",
"disk": "gcs",
"size": 2565993,
"manipulations": [],
"custom_properties": {
"tags": [
"proyecto-a"
],
"member_tags": [
"socio-con-empresa"
]
},
"responsive_images": [],
"order_column": 56372,
"created_at": "2023-01-05T11:20:19.000000Z",
"updated_at": "2023-01-05T11:20:19.000000Z",
"url": "https://storage.googleapis.com/berrly-saas/bnonprofit/documents/9g9j67WX-Berrly---Asociaciones-y-Federaciones.pdf"
},
{
"id": 65358,
"id_organization": 1788,
"model_type": "App\\Organization",
"model_id": 1788,
"collection_name": "documents",
"name": "Berrly - Clubs esportius - CA",
"file_name": "jXfu5vZ3-Berrly---Clubs-esportius---CA.pdf",
"mime_type": "application/pdf",
"disk": "gcs",
"size": 7123622,
"manipulations": [],
"custom_properties": {
"tags": [
"proyecto-a"
],
"member_tags": [
"socio-con-empresa"
]
},
"responsive_images": [],
"order_column": 60290,
"created_at": "2023-01-31T16:02:01.000000Z",
"updated_at": "2023-01-31T16:02:01.000000Z",
"url": "https://storage.googleapis.com/berrly-saas/bnonprofit/documents/jXfu5vZ3-Berrly---Clubs-esportius---CA.pdf"
}
],
"tokens": [
{
"id_token": 385022,
"id_member": 532223,
"id_card_design": null,
"token": "sH3jXj66hTPI0UJ4V1hv8hHv",
"type": "MEMBERZONE",
"enabled": true,
"created_at": "2023-02-23T12:45:37.000000Z",
"updated_at": null,
"expire_at": null,
"deleted_at": null
},
{
"id_token": 457473,
"id_member": 532223,
"id_card_design": 520,
"token": "OZFLTgOB4JMcYPlwvA4vfWWK",
"type": "MEMBERCARD",
"enabled": true,
"created_at": "2023-06-09T08:18:34.000000Z",
"updated_at": "2023-06-09T08:18:34.000000Z",
"expire_at": null,
"deleted_at": null
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get by Token
requires authentication
Display the specified member.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/members/token/i23yQp9HRsKVXrJMhhola78z" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/members/token/i23yQp9HRsKVXrJMhhola78z"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/token/i23yQp9HRsKVXrJMhhola78z';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 239
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get by National ID
requires authentication
Retrieve a member by their member number and national ID number. Member must have two values.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/members/national-id/40761663M" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/members/national-id/40761663M"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/national-id/40761663M';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 238
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
requires authentication
Create a new Member with given properties
Example request:
curl --request POST \
"https://api.berrly.com/v1/members" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"national_id_number\": \"40761663M\",
\"national_id_type\": \"DNI\",
\"num_member\": 342,
\"name\": \"Abril\",
\"last_name\": \"Terrazas Alanis\",
\"alias\": \"Cerral\",
\"gender\": \"FEMALE\",
\"birthdate\": \"1983-06-24\",
\"email\": \"abrilterrazas@example.com\",
\"email2\": \"abrilterrazas2@example.com\",
\"email3\": \"terrazi83@example.com\",
\"phone_mobile\": \"+34666000000\",
\"phone_number\": \"+34933456789\",
\"phone_emergency\": \"+34933456789\",
\"address\": \"Paseo Victoria, 047, 85º A\",
\"postal_code\": \"87543\",
\"city\": \"Sevilla\",
\"province\": \"Sevilla\",
\"region\": \"Andalucia\",
\"country\": \"Spain\",
\"subscription_date\": \"2003-09-24\"
}"
const url = new URL(
"https://api.berrly.com/v1/members"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"national_id_number": "40761663M",
"national_id_type": "DNI",
"num_member": 342,
"name": "Abril",
"last_name": "Terrazas Alanis",
"alias": "Cerral",
"gender": "FEMALE",
"birthdate": "1983-06-24",
"email": "abrilterrazas@example.com",
"email2": "abrilterrazas2@example.com",
"email3": "terrazi83@example.com",
"phone_mobile": "+34666000000",
"phone_number": "+34933456789",
"phone_emergency": "+34933456789",
"address": "Paseo Victoria, 047, 85º A",
"postal_code": "87543",
"city": "Sevilla",
"province": "Sevilla",
"region": "Andalucia",
"country": "Spain",
"subscription_date": "2003-09-24"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'national_id_number' => '40761663M',
'national_id_type' => 'DNI',
'num_member' => 342,
'name' => 'Abril',
'last_name' => 'Terrazas Alanis',
'alias' => 'Cerral',
'gender' => 'FEMALE',
'birthdate' => '1983-06-24',
'email' => 'abrilterrazas@example.com',
'email2' => 'abrilterrazas2@example.com',
'email3' => 'terrazi83@example.com',
'phone_mobile' => '+34666000000',
'phone_number' => '+34933456789',
'phone_emergency' => '+34933456789',
'address' => 'Paseo Victoria, 047, 85º A',
'postal_code' => '87543',
'city' => 'Sevilla',
'province' => 'Sevilla',
'region' => 'Andalucia',
'country' => 'Spain',
'subscription_date' => '2003-09-24',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"id_member": 532223,
"id_member_update": null,
"type": "MEMBER",
"entity_type": "INDIVIDUAL",
"num_member": 34,
"national_id_number": "40761663M",
"national_id_type": "DNI",
"name": "Abril",
"last_name": "Terrazas Alanis",
"fname": "",
"alias": "",
"gender": null,
"birthdate": null,
"email": "abril.terrazas@example.com",
"email2": null,
"email3": null,
"phone_mobile": "918 487907",
"phone_number": "+34 960-86-2237",
"phone_emergency": "+34 913-356606",
"address": "Paseo Victoria, 047, 85º A",
"postal_code": "87543",
"city": "As Botello",
"province": "Sevilla",
"region": "Comunidad de Madrid",
"country": "",
"photo": "https://storage.googleapis.com/berrly-saas/bnonprofit/members/NcCbZ3oIaF-532223.jpg",
"legal_name": null,
"industry": null,
"contact_name": null,
"contact_email": null,
"contact_phone": null,
"contact_position": null,
"web": null,
"linkedin": null,
"twitter": null,
"facebook": null,
"instagram": null,
"tiktok": null,
"telegram": null,
"skype": null,
"subscription_date": "2014-09-29T00:00:00.000000Z",
"unsubscription_date": null,
"tags": [
"socio-con-empresa",
"forma-parte-de-colectivo",
"cargo-en-cuenta",
"impagos",
"cuota-premium"
],
"extra_fields": [
{
"id_field_schema": 3114,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Periodicidad de pago",
"type": "DROPDOWN-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3136,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Nombre familiar",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3630,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Preferencias",
"type": "DROPDOWN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3888,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Seccions",
"type": "DROPDOWN-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4075,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Cursos",
"type": "DROPDOWN-MULTIPLE-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4088,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Àrea d'interès",
"type": "DROPDOWN-MULTIPLE-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4305,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Nombre de la familia (apellidos niño)",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4306,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Justificante de pago",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4860,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Comprobant sol.licitut beca",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4888,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia del NIF o NIE de la persona que fa la inscripció",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4889,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia de la targeta sanitària (CatSalut) o mútua de l’infant",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4890,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia de la cartilla de vacunacions de l’infant",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4891,
"id_organization": 1788,
"id_field_category": 1469,
"order": 0,
"name": "Nom i cognoms Pare/ Mare/ Tutor legal",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4892,
"id_organization": 1788,
"id_field_category": 1469,
"order": 0,
"name": "NIF o NIE Pare/ Mare/ Tutor legal",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4893,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 1",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4894,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 1",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4895,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 2",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4896,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 2",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4897,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 3",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4898,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 3",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4899,
"id_organization": 1788,
"id_field_category": 1199,
"order": 0,
"name": "Autorització subministrament de Paracetamol",
"type": "BOOLEAN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4900,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix algun tipus d’alteració física o psíquica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4901,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix alguna malaltia crònica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4902,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pren algun medicament de forma periòdica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4903,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix algun tipus d’al·lèrgia",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4904,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu qualsevol observació rellevant sobre l’alimentació",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4906,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Tipo de socio",
"type": "DROPDOWN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4907,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Indica la cantidad si quieres hacer una aportación extra (€)",
"type": "NUMBER",
"visible": true,
"sort": true,
"translations": null,
"data": null
}
],
"media": [],
"shared_media": [
{
"id": 60934,
"id_organization": 1788,
"model_type": "App\\Organization",
"model_id": 1788,
"collection_name": "documents",
"name": "Berrly - Asociaciones y Federaciones",
"file_name": "9g9j67WX-Berrly---Asociaciones-y-Federaciones.pdf",
"mime_type": "application/pdf",
"disk": "gcs",
"size": 2565993,
"manipulations": [],
"custom_properties": {
"tags": [
"proyecto-a"
],
"member_tags": [
"socio-con-empresa"
]
},
"responsive_images": [],
"order_column": 56372,
"created_at": "2023-01-05T11:20:19.000000Z",
"updated_at": "2023-01-05T11:20:19.000000Z",
"url": "https://storage.googleapis.com/berrly-saas/bnonprofit/documents/9g9j67WX-Berrly---Asociaciones-y-Federaciones.pdf"
},
{
"id": 65358,
"id_organization": 1788,
"model_type": "App\\Organization",
"model_id": 1788,
"collection_name": "documents",
"name": "Berrly - Clubs esportius - CA",
"file_name": "jXfu5vZ3-Berrly---Clubs-esportius---CA.pdf",
"mime_type": "application/pdf",
"disk": "gcs",
"size": 7123622,
"manipulations": [],
"custom_properties": {
"tags": [
"proyecto-a"
],
"member_tags": [
"socio-con-empresa"
]
},
"responsive_images": [],
"order_column": 60290,
"created_at": "2023-01-31T16:02:01.000000Z",
"updated_at": "2023-01-31T16:02:01.000000Z",
"url": "https://storage.googleapis.com/berrly-saas/bnonprofit/documents/jXfu5vZ3-Berrly---Clubs-esportius---CA.pdf"
}
],
"tokens": [
{
"id_token": 385022,
"id_member": 532223,
"id_card_design": null,
"token": "sH3jXj66hTPI0UJ4V1hv8hHv",
"type": "MEMBERZONE",
"enabled": true,
"created_at": "2023-02-23T12:45:37.000000Z",
"updated_at": null,
"expire_at": null,
"deleted_at": null
},
{
"id_token": 457473,
"id_member": 532223,
"id_card_design": 520,
"token": "OZFLTgOB4JMcYPlwvA4vfWWK",
"type": "MEMBERCARD",
"enabled": true,
"created_at": "2023-06-09T08:18:34.000000Z",
"updated_at": "2023-06-09T08:18:34.000000Z",
"expire_at": null,
"deleted_at": null
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
requires authentication
Updates a member if id_member is specified.
Example request:
curl --request POST \
"https://api.berrly.com/v1/members/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"national_id_number\": \"40761663M\",
\"national_id_type\": \"DNI\",
\"num_member\": 342,
\"name\": \"Abril\",
\"last_name\": \"Terrazas Alanis\",
\"alias\": \"Cerral\",
\"gender\": \"FEMALE\",
\"birthdate\": \"1983-06-24\",
\"email\": \"abrilterrazas@example.com\",
\"email2\": \"abrilterrazas2@example.com\",
\"email3\": \"terrazi83@example.com\",
\"phone_mobile\": \"+34666000000\",
\"phone_number\": \"+34933456789\",
\"phone_emergency\": \"+34933456789\",
\"address\": \"Paseo Victoria, 047, 85º A\",
\"postal_code\": \"87543\",
\"city\": \"Sevilla\",
\"province\": \"Sevilla\",
\"region\": \"Andalucia\",
\"country\": \"Spain\",
\"subscription_date\": \"2003-09-24\"
}"
const url = new URL(
"https://api.berrly.com/v1/members/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"national_id_number": "40761663M",
"national_id_type": "DNI",
"num_member": 342,
"name": "Abril",
"last_name": "Terrazas Alanis",
"alias": "Cerral",
"gender": "FEMALE",
"birthdate": "1983-06-24",
"email": "abrilterrazas@example.com",
"email2": "abrilterrazas2@example.com",
"email3": "terrazi83@example.com",
"phone_mobile": "+34666000000",
"phone_number": "+34933456789",
"phone_emergency": "+34933456789",
"address": "Paseo Victoria, 047, 85º A",
"postal_code": "87543",
"city": "Sevilla",
"province": "Sevilla",
"region": "Andalucia",
"country": "Spain",
"subscription_date": "2003-09-24"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/17';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'national_id_number' => '40761663M',
'national_id_type' => 'DNI',
'num_member' => 342,
'name' => 'Abril',
'last_name' => 'Terrazas Alanis',
'alias' => 'Cerral',
'gender' => 'FEMALE',
'birthdate' => '1983-06-24',
'email' => 'abrilterrazas@example.com',
'email2' => 'abrilterrazas2@example.com',
'email3' => 'terrazi83@example.com',
'phone_mobile' => '+34666000000',
'phone_number' => '+34933456789',
'phone_emergency' => '+34933456789',
'address' => 'Paseo Victoria, 047, 85º A',
'postal_code' => '87543',
'city' => 'Sevilla',
'province' => 'Sevilla',
'region' => 'Andalucia',
'country' => 'Spain',
'subscription_date' => '2003-09-24',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"id_member": 532223,
"id_member_update": null,
"type": "MEMBER",
"entity_type": "INDIVIDUAL",
"num_member": 34,
"national_id_number": "40761663M",
"national_id_type": "DNI",
"name": "Abril",
"last_name": "Terrazas Alanis",
"fname": "",
"alias": "",
"gender": null,
"birthdate": null,
"email": "abril.terrazas@example.com",
"email2": null,
"email3": null,
"phone_mobile": "918 487907",
"phone_number": "+34 960-86-2237",
"phone_emergency": "+34 913-356606",
"address": "Paseo Victoria, 047, 85º A",
"postal_code": "87543",
"city": "As Botello",
"province": "Sevilla",
"region": "Comunidad de Madrid",
"country": "",
"photo": "https://storage.googleapis.com/berrly-saas/bnonprofit/members/NcCbZ3oIaF-532223.jpg",
"legal_name": null,
"industry": null,
"contact_name": null,
"contact_email": null,
"contact_phone": null,
"contact_position": null,
"web": null,
"linkedin": null,
"twitter": null,
"facebook": null,
"instagram": null,
"tiktok": null,
"telegram": null,
"skype": null,
"subscription_date": "2014-09-29T00:00:00.000000Z",
"unsubscription_date": null,
"tags": [
"socio-con-empresa",
"forma-parte-de-colectivo",
"cargo-en-cuenta",
"impagos",
"cuota-premium"
],
"extra_fields": [
{
"id_field_schema": 3114,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Periodicidad de pago",
"type": "DROPDOWN-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3136,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Nombre familiar",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3630,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Preferencias",
"type": "DROPDOWN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 3888,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Seccions",
"type": "DROPDOWN-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4075,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Cursos",
"type": "DROPDOWN-MULTIPLE-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4088,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Àrea d'interès",
"type": "DROPDOWN-MULTIPLE-FIXED",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4305,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Nombre de la familia (apellidos niño)",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4306,
"id_organization": 1788,
"id_field_category": null,
"order": 0,
"name": "Justificante de pago",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4860,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Comprobant sol.licitut beca",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4888,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia del NIF o NIE de la persona que fa la inscripció",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4889,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia de la targeta sanitària (CatSalut) o mútua de l’infant",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4890,
"id_organization": 1788,
"id_field_category": 1468,
"order": 0,
"name": "Fotocòpia de la cartilla de vacunacions de l’infant",
"type": "FILE",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4891,
"id_organization": 1788,
"id_field_category": 1469,
"order": 0,
"name": "Nom i cognoms Pare/ Mare/ Tutor legal",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4892,
"id_organization": 1788,
"id_field_category": 1469,
"order": 0,
"name": "NIF o NIE Pare/ Mare/ Tutor legal",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4893,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 1",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4894,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 1",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4895,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 2",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4896,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 2",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4897,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "Nom autoritzat 3",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4898,
"id_organization": 1788,
"id_field_category": 1470,
"order": 0,
"name": "DNI autoritzat 3",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4899,
"id_organization": 1788,
"id_field_category": 1199,
"order": 0,
"name": "Autorització subministrament de Paracetamol",
"type": "BOOLEAN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4900,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix algun tipus d’alteració física o psíquica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4901,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix alguna malaltia crònica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4902,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pren algun medicament de forma periòdica",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4903,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu si pateix algun tipus d’al·lèrgia",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4904,
"id_organization": 1788,
"id_field_category": 1471,
"order": 0,
"name": "Indiqueu qualsevol observació rellevant sobre l’alimentació",
"type": "VARCHAR",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4906,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Tipo de socio",
"type": "DROPDOWN",
"visible": true,
"sort": true,
"translations": null,
"data": null
},
{
"id_field_schema": 4907,
"id_organization": 1788,
"id_field_category": 1088,
"order": 0,
"name": "Indica la cantidad si quieres hacer una aportación extra (€)",
"type": "NUMBER",
"visible": true,
"sort": true,
"translations": null,
"data": null
}
],
"media": [],
"shared_media": [
{
"id": 60934,
"id_organization": 1788,
"model_type": "App\\Organization",
"model_id": 1788,
"collection_name": "documents",
"name": "Berrly - Asociaciones y Federaciones",
"file_name": "9g9j67WX-Berrly---Asociaciones-y-Federaciones.pdf",
"mime_type": "application/pdf",
"disk": "gcs",
"size": 2565993,
"manipulations": [],
"custom_properties": {
"tags": [
"proyecto-a"
],
"member_tags": [
"socio-con-empresa"
]
},
"responsive_images": [],
"order_column": 56372,
"created_at": "2023-01-05T11:20:19.000000Z",
"updated_at": "2023-01-05T11:20:19.000000Z",
"url": "https://storage.googleapis.com/berrly-saas/bnonprofit/documents/9g9j67WX-Berrly---Asociaciones-y-Federaciones.pdf"
},
{
"id": 65358,
"id_organization": 1788,
"model_type": "App\\Organization",
"model_id": 1788,
"collection_name": "documents",
"name": "Berrly - Clubs esportius - CA",
"file_name": "jXfu5vZ3-Berrly---Clubs-esportius---CA.pdf",
"mime_type": "application/pdf",
"disk": "gcs",
"size": 7123622,
"manipulations": [],
"custom_properties": {
"tags": [
"proyecto-a"
],
"member_tags": [
"socio-con-empresa"
]
},
"responsive_images": [],
"order_column": 60290,
"created_at": "2023-01-31T16:02:01.000000Z",
"updated_at": "2023-01-31T16:02:01.000000Z",
"url": "https://storage.googleapis.com/berrly-saas/bnonprofit/documents/jXfu5vZ3-Berrly---Clubs-esportius---CA.pdf"
}
],
"tokens": [
{
"id_token": 385022,
"id_member": 532223,
"id_card_design": null,
"token": "sH3jXj66hTPI0UJ4V1hv8hHv",
"type": "MEMBERZONE",
"enabled": true,
"created_at": "2023-02-23T12:45:37.000000Z",
"updated_at": null,
"expire_at": null,
"deleted_at": null
},
{
"id_token": 457473,
"id_member": 532223,
"id_card_design": 520,
"token": "OZFLTgOB4JMcYPlwvA4vfWWK",
"type": "MEMBERCARD",
"enabled": true,
"created_at": "2023-06-09T08:18:34.000000Z",
"updated_at": "2023-06-09T08:18:34.000000Z",
"expire_at": null,
"deleted_at": null
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List
requires authentication
List all members based on the given request parameters.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/members?tag=in&excluded_tag=et&id_extra_field=7&value_extra_field=recusandae&subset=ALL&type=MEMBER" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/members"
);
const params = {
"tag": "in",
"excluded_tag": "et",
"id_extra_field": "7",
"value_extra_field": "recusandae",
"subset": "ALL",
"type": "MEMBER",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'tag' => 'in',
'excluded_tag' => 'et',
'id_extra_field' => '7',
'value_extra_field' => 'recusandae',
'subset' => 'ALL',
'type' => 'MEMBER',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 237
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Search
requires authentication
Searches for members based on the given request parameters.
Example request:
curl --request POST \
"https://api.berrly.com/v1/members/search" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tag\": \"maiores\",
\"excluded_tag\": \"explicabo\",
\"id_extra_field\": 14,
\"value_extra_field\": \"doloremque\"
}"
const url = new URL(
"https://api.berrly.com/v1/members/search"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tag": "maiores",
"excluded_tag": "explicabo",
"id_extra_field": 14,
"value_extra_field": "doloremque"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/search';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'tag' => 'maiores',
'excluded_tag' => 'explicabo',
'id_extra_field' => 14,
'value_extra_field' => 'doloremque',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 236
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Set Extra Field
requires authentication
Sets extra field for a Member in the organization.
Example request:
curl --request POST \
"https://api.berrly.com/v1/members/set-extra-field/1/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"value\": \"YES\"
}"
const url = new URL(
"https://api.berrly.com/v1/members/set-extra-field/1/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"value": "YES"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/set-extra-field/1/7';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'value' => 'YES',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 235
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Set Tags
requires authentication
Sets tags for a member in the organization.
Example request:
curl --request POST \
"https://api.berrly.com/v1/members/set-tag/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tags\": \"red,green,adult,with-a-red-hat\"
}"
const url = new URL(
"https://api.berrly.com/v1/members/set-tag/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tags": "red,green,adult,with-a-red-hat"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/set-tag/10';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'tags' => 'red,green,adult,with-a-red-hat',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 234
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Last Num
requires authentication
Retrieve last Num Member from Organization
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/members/last_num" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/members/last_num"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/members/last_num';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 233
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get by Token
requires authentication
Display the specified Card and associated member.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/tokens/i23yQp9HRsKVXrJMhhola78z" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/tokens/i23yQp9HRsKVXrJMhhola78z"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/tokens/i23yQp9HRsKVXrJMhhola78z';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 218
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Memberzone tokens by ID Member
requires authentication
Get all valid memberzone tokens by ID Member
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/tokens/memberzone/velit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/tokens/memberzone/velit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/tokens/memberzone/velit';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 217
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Memberzone tokens by ID Member
requires authentication
Get valid membercard token by ID Member
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/tokens/membercard/sequi" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/tokens/membercard/sequi"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/tokens/membercard/sequi';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 240
x-ratelimit-remaining: 216
{
"error": "Forbidden. Invalid Token."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Organizations
Get Organization
requires authentication
Retrieves the current organization information & properties.
Example request:
curl --request GET \
--get "https://api.berrly.com/v1/organizations/me" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api.berrly.com/v1/organizations/me"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api.berrly.com/v1/organizations/me';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"id_organization": 1788,
"id_organization_ulid": "ORG_01G5K5WVYGDA6Z28F91EVY7ET6",
"name": "Berrly Non-profit",
"shortname": "bnonprofit",
"email": "info@berrly.com",
"phone": "+34930328370",
"address": null,
"province": null,
"city": null,
"country": "Spain",
"postal_code": null,
"timezone": "Europe/Madrid",
"business_name": null,
"vat_number": null,
"vat": 21,
"logo": "https://storage.googleapis.com/berrly-saas-development/bnonprofit/FfKwAhMcqp-logo.png",
"language": "es",
"language_member_zone": "",
"sector": null,
"updated_at": "2023-07-14T09:48:05.000000Z",
"created_at": "2022-06-15T07:57:54.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Tags
Get All Tags
requires authentication
Retrieves all tags for the current organization.
Create
requires authentication
Creates a new tag.