MENU navbar-image

Introduction

Welcome to the Foodiverse API reference portal.

This aims to provide all the information you need to work with our REST API, which has predictable resource-oriented URLs, returns JSON-encoded responses and standard HTTP response codes.

All authenticated endpoints require an Authorization header to be sent along with the request.

Base URL

https://api-dev.foodiverse.net

Authenticating requests

To authenticate requests, include a AuthorizationToken header with the value "Bearer {token}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Auth

Login

Login with an email address and password to receive an authorisation token.

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/user/login" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"password\": \"password\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]",
    "password": "password"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
            'password' => 'password',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/login'
payload = {
    "email": "[email protected]",
    "password": "password"
}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "token": {
            "token_type": "Bearer",
            "access_token": "abcdefghijklmnopqrstuvwxyz0123456789...",
            "expires_in": 900,
            "domain": ".food.cloud",
            "url": "https://api-qa.foodiverse.net"
        },
        "user": {
            "uuid": "90070464-ecbf-4d4a-af6a-293534b50665",
            "first_name": "First Name",
            "surname": "Surname",
            "language_code": "en_IE",
            "mobile_number": "",
            "email": "[email protected]",
            "email_verified_at": null,
            "activation_key": null,
            "restoration_key": null,
            "is_active": 1,
            "is_organisation_admin": 1,
            "created_at": "2016-02-11 15:12:07",
            "updated_at": "2019-09-24 09:33:02",
            "deleted_at": null,
            "full_name": "First Name Surname",
            "role": "role",
            "image": {
                "filename": "5d89e2cd593493900d8ce.png"
            },
            "organisation": {
                "uuid": "f3738be8-1cab-47fa-b8e6-9b1f48108eff",
                "name": "FoodCloud",
                "image": null,
                "organisation_type": {
                    "id": 3,
                    "name": "FoodBank"
                }
            },
            "branches": [
                {
                    "name": "FoodCloud branch 1",
                    "uuid": "70ee2848-7f29-482f-b56c-87d18371fc7f",
                    "in_line_address": ""
                }
            ]
        }
    },
    "callTime": 1.0086328983306885
}
 

Example response (400):


{
    "status": "error",
    "data": [
        {
            "field": "email",
            "message": "e_email_required"
        },
        {
            "field": "password",
            "message": "e_password_required"
        }
    ],
    "callTime": 0.0011749267578125
}
 

Request      

POST api/user/login

Headers

Content-Type      

Example: application/json

Body Parameters

email   String   

The email of the user. Example: [email protected]

password   String   

The password of the user. Example: password

Logout

requires authentication

Logout and invalidate all existing access and refresh tokens.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/logout" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/logout"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/logout';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/logout'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        null
    ],
    "callTime": 0.01135396957397461
}
 

Request      

GET api/user/logout

Headers

AuthorizationToken      

Example: Bearer {token}

Branches

Get All Branches

requires authentication

This endpoint retrieves all user's branches.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "uuid": "c2a2c390-265b-c38a-c2b7-42c3b0c2b0c2",
            "name": "FoodCloud Dublin",
            "address": "Unit 8 Broomhill Business Park, Broomhill Road, Tallaght, South Dublin, Leinster, Ireland",
            "post_code": "D24 CD32",
            "is_active": 1,
            "latitude": "53.29716570",
            "longitude": "-6.36017910",
            "in_line_address": "D24 CD32"
        },
        {
            "uuid": "51c592c3-b909-c390-3f4e-c38dc2be7b45",
            "name": "FoodCloud Cork",
            "address": "Unit 3, O'connell Commercial Park, Cork, Munster, Ireland",
            "post_code": "T45 YP40 ",
            "is_active": 1,
            "latitude": "51.90001390",
            "longitude": "-8.35212060",
            "in_line_address": "T45 YP40 "
        },
        {
            "uuid": "c28d4ac3-aac2-a353-c2a9-47e280b9c592",
            "name": "FoodCloud Galway",
            "address": "Unit 9, Glennascaul Manufacturing & Technology, Deerpark, Cork, Munster, Ireland",
            "post_code": "H91 N96C",
            "is_active": 1,
            "latitude": "53.28375640",
            "longitude": "-8.92998510",
            "in_line_address": "H91 N96C"
        }
    ],
    "callTime": 0.03259706497192383
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/user/branches

Headers

AuthorizationToken      

Example: Bearer {token}

Get a Specific Branch

requires authentication

This endpoint retrieves a specific user's branch.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches/1" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/1"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches/1'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "uuid": "c2a2c390-265b-c38a-c2b7-42c3b0c2b0c2",
        "name": "FoodCloud Dublin",
        "countries_id": 2963597,
        "provinces_id": 7521314,
        "counties_id": 7288565,
        "official_id": null,
        "address_1": "Unit 8 Broomhill Business Park, Broomhill Road",
        "address_2": "Tallaght",
        "city_town": "Dublin 24",
        "post_code": "D24 CD32",
        "phone": null,
        "prepare_donation_option": "l_product_and_category",
        "default_categories_only": false,
        "approved_products_only": false,
        "geofilter_unit_of_distance": "l_kilometers",
        "latitude": "53.29716570",
        "longitude": "-6.36017910",
        "is_active": 1,
        "created_at": "2019-09-29 04:52:10",
        "updated_at": "2019-09-29 04:52:10",
        "deleted_at": null,
        "users_id": 2,
        "branches_id": 2,
        "is_branch_admin": 1,
        "in_line_address": "Unit 8 Broomhill Business Park, Broomhill Road, Tallaght, Dublin 24, D24 CD32",
        "country": {
            "id": 2963597,
            "name": "Ireland",
            "latitude": 53,
            "longitude": -8,
            "code": "IE",
            "created_at": "2019-09-29 04:02:02",
            "updated_at": "2019-09-29 04:02:02",
            "deleted_at": null
        },
        "province": {
            "id": 7521314,
            "countries_id": 2963597,
            "name": "Leinster",
            "latitude": 53.16667,
            "longitude": -7.02121,
            "created_at": "2019-09-29 04:02:02",
            "updated_at": "2019-09-29 04:02:02",
            "deleted_at": null
        },
        "county": {
            "id": 7288565,
            "countries_id": 2963597,
            "provinces_id": 7521314,
            "name": "South Dublin",
            "latitude": 53.28595,
            "longitude": -6.37739,
            "created_at": "2019-09-29 04:02:02",
            "updated_at": "2019-09-29 04:02:02",
            "deleted_at": null
        }
    },
    "callTime": 0.011002063751220703
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/user/branches/{id}

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

id   integer   

The ID of the branch. Example: 1

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get all charities for a Branch

requires authentication

This endpoint retrieves all of a branch's associated charities.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/charities" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/charities"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/charities';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/charities'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "uuid": "c2af254b-cb9c-66e2-809d-4cc2a7c28118",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 1,
            "day_of_week_end": 1,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "c396c2b5-2c27-c3a2-c385-41c2a1c2a56e",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 2,
            "day_of_week_end": 2,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "512369c3-be3b-5d4e-41e2-84a2094d17c2",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 3,
            "day_of_week_end": 3,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "75c2b0c2-a749-c281-c29d-431ee2809dc2",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 4,
            "day_of_week_end": 4,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "6a4ce280-993e-c382-674f-c2abc2a8c281",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 5,
            "day_of_week_end": 5,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "5cc2a7c3-a96d-c3a9-0d41-c3a5c2aa66c3",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 6,
            "day_of_week_end": 6,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "5b78c3b2-c394-e280-a2e2-84a243c2b2e2",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 7,
            "day_of_week_end": 7,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        }
    ],
    "callTime": 0.004434108734130859
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/user/branches/{branch}/charities

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get Schedules

requires authentication

This endpoint retrieves the store schedules

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/branches/official_id/TESCO:4045/schedules" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/branches/official_id/TESCO:4045/schedules"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/branches/official_id/TESCO:4045/schedules';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/branches/official_id/TESCO:4045/schedules'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (404):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=UTF-8
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1992
 

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Not Found</title>

        <style>
            /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a{background-color:transparent}code{font-family:monospace,monospace;font-size:1em}[hidden]{display:none}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}a{color:inherit;text-decoration:inherit}code{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.bg-white{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-gray-100{--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247,250,252,var(--bg-opacity))}.border-gray-200{--border-opacity:1;border-color:#edf2f7;border-color:rgba(237,242,247,var(--border-opacity))}.border-gray-400{--border-opacity:1;border-color:#cbd5e0;border-color:rgba(203,213,224,var(--border-opacity))}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.flex{display:flex}.grid{display:grid}.hidden{display:none}.items-center{align-items:center}.justify-center{justify-content:center}.font-semibold{font-weight:600}.h-5{height:1.25rem}.h-8{height:2rem}.h-16{height:4rem}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.leading-7{line-height:1.75rem}.mx-auto{margin-left:auto;margin-right:auto}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.ml-4{margin-left:1rem}.mt-8{margin-top:2rem}.ml-12{margin-left:3rem}.-mt-px{margin-top:-1px}.max-w-xl{max-width:36rem}.max-w-6xl{max-width:72rem}.min-h-screen{min-height:100vh}.overflow-hidden{overflow:hidden}.p-6{padding:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.pt-8{padding-top:2rem}.fixed{position:fixed}.relative{position:relative}.top-0{top:0}.right-0{right:0}.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06)}.text-center{text-align:center}.text-gray-200{--text-opacity:1;color:#edf2f7;color:rgba(237,242,247,var(--text-opacity))}.text-gray-300{--text-opacity:1;color:#e2e8f0;color:rgba(226,232,240,var(--text-opacity))}.text-gray-400{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}.text-gray-500{--text-opacity:1;color:#a0aec0;color:rgba(160,174,192,var(--text-opacity))}.text-gray-600{--text-opacity:1;color:#718096;color:rgba(113,128,150,var(--text-opacity))}.text-gray-700{--text-opacity:1;color:#4a5568;color:rgba(74,85,104,var(--text-opacity))}.text-gray-900{--text-opacity:1;color:#1a202c;color:rgba(26,32,44,var(--text-opacity))}.uppercase{text-transform:uppercase}.underline{text-decoration:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tracking-wider{letter-spacing:.05em}.w-5{width:1.25rem}.w-8{width:2rem}.w-auto{width:auto}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@-webkit-keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}@keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){.sm\:rounded-lg{border-radius:.5rem}.sm\:block{display:block}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:h-20{height:5rem}.sm\:ml-0{margin-left:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-0{padding-top:0}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}}@media (min-width:768px){.md\:border-t-0{border-top-width:0}.md\:border-l{border-left-width:1px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1024px){.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:bg-gray-800{--bg-opacity:1;background-color:#2d3748;background-color:rgba(45,55,72,var(--bg-opacity))}.dark\:bg-gray-900{--bg-opacity:1;background-color:#1a202c;background-color:rgba(26,32,44,var(--bg-opacity))}.dark\:border-gray-700{--border-opacity:1;border-color:#4a5568;border-color:rgba(74,85,104,var(--border-opacity))}.dark\:text-white{--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity))}.dark\:text-gray-400{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}}
        </style>

        <style>
            body {
                font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            }
        </style>
    </head>
    <body class="antialiased">
        <div class="relative flex items-top justify-center min-h-screen bg-gray-100 dark:bg-gray-900 sm:items-center sm:pt-0">
            <div class="max-w-xl mx-auto sm:px-6 lg:px-8">
                <div class="flex items-center pt-8 sm:justify-start sm:pt-0">
                    <div class="px-4 text-lg text-gray-500 border-r border-gray-400 tracking-wider">
                        404                    </div>

                    <div class="ml-4 text-lg text-gray-500 uppercase tracking-wider">
                        Not Found                    </div>
                </div>
            </div>
        </div>
    </body>
</html>

 

Request      

GET api/branches/official_id/{official_id}/schedules

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

official_id   string   

The branch official ID. Example: TESCO:4045

Get Branch Closures

requires authentication

This endpoint gets all upcoming temporary closures for a branch

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/branches/a1eb5c82-7511-41de-b0d9-8ad20b1c2b46/temporary_closures" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/branches/a1eb5c82-7511-41de-b0d9-8ad20b1c2b46/temporary_closures"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/branches/a1eb5c82-7511-41de-b0d9-8ad20b1c2b46/temporary_closures';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/branches/a1eb5c82-7511-41de-b0d9-8ad20b1c2b46/temporary_closures'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "uuid": "72d8073b-1330-4943-8ceb-6f07f151a601",
            "closed_at": "2024-06-27 00:00:00"
        }
    ],
    "frontendRedirect": false,
    "callTime": 0.004642963409423828,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "e_error_retrieving_data"
    ],
    "frontendRedirect": false,
    "callTime": 0.007400035858154297,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/branches/{branch_uuid}/temporary_closures

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch_uuid   string  optional  

uuid required branch UUID. Example: a1eb5c82-7511-41de-b0d9-8ad20b1c2b46

Create Branch Temporary Calendar

requires authentication

This endpoint store temporary closures for a branch

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/branches/temporary_closures/create" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"branch_uuid\": \"a1eb5c82-7511-41de-b0d9-8ad20b1c2b46\",
    \"dates\": [
        \"architecto\"
    ]
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/branches/temporary_closures/create"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "branch_uuid": "a1eb5c82-7511-41de-b0d9-8ad20b1c2b46",
    "dates": [
        "architecto"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/branches/temporary_closures/create';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'branch_uuid' => 'a1eb5c82-7511-41de-b0d9-8ad20b1c2b46',
            'dates' => [
                'architecto',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/branches/temporary_closures/create'
payload = {
    "branch_uuid": "a1eb5c82-7511-41de-b0d9-8ad20b1c2b46",
    "dates": [
        "architecto"
    ]
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request      

POST api/branches/temporary_closures/create

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

branch_uuid   uuid   

branch UUID. Example: a1eb5c82-7511-41de-b0d9-8ad20b1c2b46

dates   string[]  optional  

required. Example ["2024-05-02", "2024-05-03"]

*   date   

date. Example: 2024-05-02

Delete Branch Temporary Calendar

requires authentication

This endpoint removes temporary closures for a branch

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/branches/temporary_closures/remove" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"branch_uuid\": \"a1eb5c82-7511-41de-b0d9-8ad20b1c2b46\",
    \"dates\": [
        \"architecto\"
    ]
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/branches/temporary_closures/remove"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "branch_uuid": "a1eb5c82-7511-41de-b0d9-8ad20b1c2b46",
    "dates": [
        "architecto"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/branches/temporary_closures/remove';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'branch_uuid' => 'a1eb5c82-7511-41de-b0d9-8ad20b1c2b46',
            'dates' => [
                'architecto',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/branches/temporary_closures/remove'
payload = {
    "branch_uuid": "a1eb5c82-7511-41de-b0d9-8ad20b1c2b46",
    "dates": [
        "architecto"
    ]
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request      

POST api/branches/temporary_closures/remove

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

branch_uuid   uuid   

branch UUID. Example: a1eb5c82-7511-41de-b0d9-8ad20b1c2b46

dates   string[]  optional  

required. Example ["2024-05-02", "2024-05-03"]

*   date   

date. Example: 2024-05-02

Categories

Get All Categories

requires authentication

This endpoint retrieves all categories.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/categories" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/categories"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/categories'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "data": {
            "l_meat": [
                {
                    "uuid": "e2809d69-c3a3-4155-c3b5-43c3afe28093",
                    "name": "l_ambient_meat",
                    "label": "l_ambient_meat",
                    "description": "l_cuts_of_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                },
                {
                    "uuid": "05c2b124-68c2-aac2-ba40-5bc2a9c5a168",
                    "name": "l_chilled_meat",
                    "label": "l_chilled_meat",
                    "description": "l_cuts_of_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                },
                {
                    "uuid": "c2a54525-c2bd-590f-4471-e280b07b6e7f",
                    "name": "l_frozen_meat",
                    "label": "l_frozen_meat",
                    "description": "l_cuts_of_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                },
                {
                    "uuid": "c3970e7f-46c2-9010-40c3-84c2a975c389",
                    "name": "l_hot_meat",
                    "label": "l_hot_meat",
                    "description": "l_cuts_of_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                },
                {
                    "uuid": "c2a0c2b7-c2aa-7536-c2b5-432ec2ad0cc3",
                    "name": "l_prepared_ambient_product_with_meat",
                    "label": "l_prepared_ambient_product_with_meat",
                    "description": "l_prepared_products_containing_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                },
                {
                    "uuid": "c2b874c3-a50b-c3b8-3d49-c2b5e280a651",
                    "name": "l_prepared_chilled_product_with_meat",
                    "label": "l_prepared_chilled_product_with_meat",
                    "description": "l_prepared_products_containing_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                },
                {
                    "uuid": "c2bcc2bd-c3bf-e280-a132-c2be4ec3a2c2",
                    "name": "l_prepared_frozen_product_with_meat",
                    "label": "l_prepared_frozen_product_with_meat",
                    "description": "l_prepared_products_containing_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                },
                {
                    "uuid": "c5bec3af-c381-e280-a6c2-a35e420ee280",
                    "name": "l_prepared_hot_product_with_meat",
                    "label": "l_prepared_hot_product_with_meat",
                    "description": "l_prepared_products_containing_meat",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:51",
                    "updated_at": "2019-10-31 07:33:51",
                    "parent_label": "l_meat"
                }
            ],
            "l_fish": [
                {
                    "uuid": "c2bdc2b3-1170-4c4a-44c3-98e2809d43c3",
                    "name": "l_ambient_fish",
                    "label": "l_ambient_fish",
                    "description": "l_cuts_of_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                },
                {
                    "uuid": "e280a1e2-80a6-54c3-a7c5-bde280a647c3",
                    "name": "l_chilled_fish",
                    "label": "l_chilled_fish",
                    "description": "l_cuts_of_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                },
                {
                    "uuid": "c3996046-6535-c3b8-44c2-9dc2bec3b4e2",
                    "name": "l_frozen_fish",
                    "label": "l_frozen_fish",
                    "description": "l_cuts_of_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                },
                {
                    "uuid": "c38335c3-a4e2-84a2-c3a8-5d48c3bac2bf",
                    "name": "l_hot_fish",
                    "label": "l_hot_fish",
                    "description": "l_cuts_of_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                },
                {
                    "uuid": "e282accb-86c3-a768-c2a5-e280b94305c2",
                    "name": "l_prepared_ambient_product_with_fish",
                    "label": "l_prepared_ambient_product_with_fish",
                    "description": "l_prepared_products_containing_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                },
                {
                    "uuid": "3e1fc3ac-0dc3-a76e-48c2-a1c2a1c39058",
                    "name": "l_prepared_chilled_product_with_fish",
                    "label": "l_prepared_chilled_product_with_fish",
                    "description": "l_prepared_products_containing_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                },
                {
                    "uuid": "527bc395-506f-c3a2-48e2-80a2c2b8c2b6",
                    "name": "l_prepared_frozen_product_with_fish",
                    "label": "l_prepared_frozen_product_with_fish",
                    "description": "l_prepared_products_containing_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                },
                {
                    "uuid": "585355c3-9365-0a4e-c2a2-c2aac38bc385",
                    "name": "l_prepared_hot_product_with_fish",
                    "label": "l_prepared_hot_product_with_fish",
                    "description": "l_prepared_products_containing_fish",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fish"
                }
            ],
            "l_fruit_veg": [
                {
                    "uuid": "19c3b1c3-8dc3-bd19-054d-5cc2b8c2bd2f",
                    "name": "l_fresh_fruit",
                    "label": "l_fresh_fruit",
                    "description": "l_whole_or_chopped_fruit",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "09c5a1c2-9dc3-82c3-b927-4138c2bac39c",
                    "name": "l_chilled_fruit",
                    "label": "l_chilled_fruit",
                    "description": "l_whole_or_chopped_fruit",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "4ac2b4c2-a276-c38b-2941-6be284a26f7f",
                    "name": "l_prepared_ambient_fruit",
                    "label": "l_prepared_ambient_fruit",
                    "description": "l_prepared_products_containing_fruit",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "c3855dc3-aa76-c3ac-c2a3-4e06c2a6c2b7",
                    "name": "l_prepared_chilled_fruit",
                    "label": "l_prepared_chilled_fruit",
                    "description": "l_prepared_products_containing_fruit",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "62e28093-1940-c3ba-c38b-42c2bce284a2",
                    "name": "l_prepared_frozen_fruit",
                    "label": "l_prepared_frozen_fruit",
                    "description": "l_prepared_products_containing_fruit",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "c38ac2ad-c2ae-760e-c2a9-4b0ec2a7c38c",
                    "name": "l_prepared_hot_fruit",
                    "label": "l_prepared_hot_fruit",
                    "description": "l_prepared_products_containing_fruit",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "21c3833f-c2a4-0961-4cc3-9bc692c3b1c3",
                    "name": "l_fresh_veg",
                    "label": "l_fresh_veg",
                    "description": "l_whole_or_chopped_veg",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "c3b9027a-c3aa-e280-a002-4368c5921123",
                    "name": "l_chilled_veg",
                    "label": "l_chilled_veg",
                    "description": "l_whole_or_chopped_veg",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "63e282ac-c2a8-75c5-bd55-432cc290c3a6",
                    "name": "l_prepared_ambient_veg",
                    "label": "l_prepared_ambient_veg",
                    "description": "l_prepared_products_containing_veg",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "c3864b1d-c2bf-17c2-b344-c2bbc2b55447",
                    "name": "l_prepared_chilled_veg",
                    "label": "l_prepared_chilled_veg",
                    "description": "l_prepared_products_containing_veg",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "c390c2af-532d-c2ab-c2b3-466fe280a209",
                    "name": "l_prepared_frozen_veg",
                    "label": "l_prepared_frozen_veg",
                    "description": "l_prepared_products_containing_veg",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                },
                {
                    "uuid": "c3b1c396-c3ba-c3a5-cb86-e280a04234e2",
                    "name": "l_prepared_hot_veg",
                    "label": "l_prepared_hot_veg",
                    "description": "l_prepared_products_containing_veg",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_fruit_veg"
                }
            ],
            "l_dairy_eggs": [
                {
                    "uuid": "c593c5bd-c2b9-c3a9-4530-4b1fc5a14643",
                    "name": "l_dairy",
                    "label": "l_dairy",
                    "description": "l_dairy_products",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_dairy_eggs"
                },
                {
                    "uuid": "0a54c3b1-3fc3-8505-45c3-b3c2bac391c2",
                    "name": "l_eggs",
                    "label": "l_eggs",
                    "description": "l_eggs",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_dairy_eggs"
                },
                {
                    "uuid": "c3bfc3ad-28e2-84a2-c2a5-c38b4ac390c2",
                    "name": "l_chilled_products_with_dairy_and_eggs",
                    "label": "l_chilled_products_with_dairy_and_eggs",
                    "description": "l_prepared_products_containing_dairy_or_eggs",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_dairy_eggs"
                },
                {
                    "uuid": "42556158-434f-4116-c281-c39e2bc2ad4c",
                    "name": "l_frozen_products_with_dairy_and_eggs",
                    "label": "l_frozen_products_with_dairy_and_eggs",
                    "description": "l_prepared_products_containing_dairy_or_eggs",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_dairy_eggs"
                }
            ],
            "l_bakery": [
                {
                    "uuid": "1877c2b0-372c-5246-c2b7-c281c2a8e280",
                    "name": "l_bread_and_bread_products",
                    "label": "l_bread_and_bread_products",
                    "description": "l_savoury_bakery_goods",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_bakery"
                },
                {
                    "uuid": "c3bfc390-c2a1-07c2-ace2-80a64dc3a2c2",
                    "name": "l_sweet_and_savoury_bakery",
                    "label": "l_sweet_and_savoury_bakery",
                    "description": "l_sweet_bakery_goods",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_bakery"
                }
            ],
            "l_cereal_grains_and_soy": [
                {
                    "uuid": "3534c3bc-1e5a-c2b2-49cb-86c2af77c388",
                    "name": "l_whole_or_milled_grain",
                    "label": "l_whole_or_milled_grain",
                    "description": "l_cereal,_grain_or_soy_products_in_whole_or_milled_form",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_cereal_grains_and_soy"
                },
                {
                    "uuid": "c2b2c38c-0fe2-809c-03e2-80a14ce282ac",
                    "name": "l_flour_and_starches",
                    "label": "l_flour_and_starches",
                    "description": "l_cereal,_grain_or_soy_products_in_flour_or_fine_form",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_cereal_grains_and_soy"
                },
                {
                    "uuid": "cb9c1058-c382-5177-4cc2-b0c2b3c3a44d",
                    "name": "l_pasta_and_noodles",
                    "label": "l_pasta_and_noodles",
                    "description": "l_cereal,_grain_or_soy_products_in_prepared_form",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_cereal_grains_and_soy"
                },
                {
                    "uuid": "2c1b14c3-9d47-c2a1-4875-c2a1c382c3a9",
                    "name": "l_breakfast_cereals",
                    "label": "l_breakfast_cereals",
                    "description": "l_prepared_breakfast_cereals",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_cereal_grains_and_soy"
                },
                {
                    "uuid": "09c3823e-5e3e-5f4a-c2b0-e2809ec39605",
                    "name": "l_soy_products",
                    "label": "l_soy_products",
                    "description": "l_soy_products_such_as_beans,_tofu_etc.",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_cereal_grains_and_soy"
                },
                {
                    "uuid": "c38000c3-bae2-8093-c3ba-c5934fc2bec2",
                    "name": "l_ambient",
                    "label": "l_ambient",
                    "description": "l_batter,_prepared_grains,_grain_deserts",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_cereal_grains_and_soy"
                }
            ],
            "l_beverages": [
                {
                    "uuid": "431fe280-ba0c-6928-4bc3-a5e28098c2af",
                    "name": "l_water",
                    "label": "l_water",
                    "description": "l_water",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_beverages"
                },
                {
                    "uuid": "e284a2c3-b9c3-b2c3-99e2-80ba3244c3b9",
                    "name": "l_juice",
                    "label": "l_juice",
                    "description": "l_juices,_nectars_and_concentrates",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_beverages"
                },
                {
                    "uuid": "2e76c382-c2ba-c28f-c2ae-487ec2a2c3ad",
                    "name": "l_soda_and_sports_drinks",
                    "label": "l_soda_and_sports_drinks",
                    "description": "l_water_based_sugary_and_flavoured_drinks",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_beverages"
                },
                {
                    "uuid": "35c3b6e2-80a6-26c2-b9e2-809942c29dc2",
                    "name": "l_tea_and_coffee",
                    "label": "l_tea_and_coffee",
                    "description": "l_tea_and_coffee_in_dry_or_prepared_form",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_beverages"
                },
                {
                    "uuid": "c3ab5a69-c3a7-6ec3-9647-3ce28093e280",
                    "name": "l_alcoholic_beverages",
                    "label": "l_alcoholic_beverages",
                    "description": "l_alcoholic_drinks",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_beverages"
                }
            ],
            "l_grocery_ambient": [
                {
                    "uuid": "c2a360c3-9a4d-c3a3-c3a4-46c390c2bdc2",
                    "name": "l_salt_herbs_spices_yeast",
                    "label": "l_salt_herbs_spices_yeast",
                    "description": "l_salt,_herbs,_spices,_yeast",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                },
                {
                    "uuid": "43c38505-c391-03c2-bb45-c3ace280a6c3",
                    "name": "l_sauces_vinegars_mustards_salad_dressing_soy_sauces",
                    "label": "l_sauces_vinegars_mustards_salad_dressing_soy_sauces",
                    "description": "l_sauces,_vinegars,_mustards,_salad_dressing,_soy_sauces",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                },
                {
                    "uuid": "c2b54ce2-8094-c2a0-c2b0-0c47e28093e2",
                    "name": "l_soups_and_broths",
                    "label": "l_soups_and_broths",
                    "description": "l_soups_and_broths",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                },
                {
                    "uuid": "507bc2a4-6ac2-af4a-44c2-afc2a4c39b1e",
                    "name": "l_protein_products",
                    "label": "l_protein_products",
                    "description": "l_protein_products(not_including_veg_or_grain_products)",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                },
                {
                    "uuid": "435cc3a2-c2b1-c383-714b-2ae284a2015d",
                    "name": "l_fats_and_oils",
                    "label": "l_fats_and_oils",
                    "description": "l_fats_and_oils",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                },
                {
                    "uuid": "33c3aa2c-c385-2b2a-4ec3-a3c5be04c2ad",
                    "name": "l_ice_sorbet_and_sherbet",
                    "label": "l_ice_sorbet_and_sherbet",
                    "description": "l_ice,_sorbet_and_sherbet(not_including_dairy_ice_cream,_see_dairy)",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                },
                {
                    "uuid": "101a1ec2-af1b-c3b2-4233-c2b3c3b5e280",
                    "name": "l_confectionary",
                    "label": "l_confectionary",
                    "description": "l_confectionary(not_including_sweet_bakery_goods,_see_bakery)",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                },
                {
                    "uuid": "c3925bc3-bcc2-8d06-c397-435cc2a44f1b",
                    "name": "l_other_grocery",
                    "label": "l_other_grocery",
                    "description": "l_other_grocery",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_grocery_ambient"
                }
            ],
            "l_non_food": [
                {
                    "uuid": "c3896fc3-b8c3-9ac3-83c3-9f45c2b6e280",
                    "name": "l_non_food",
                    "label": "l_non_food",
                    "description": "l_non-food_items_related_to_food_donations",
                    "is_active": 1,
                    "created_at": "2019-10-31 07:33:52",
                    "updated_at": "2019-10-31 07:33:52",
                    "parent_label": "l_non_food"
                }
            ]
        },
        "recordsFiltered": 9,
        "recordsTotal": 54
    },
    "callTime": 0.01037907600402832
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/categories

Headers

AuthorizationToken      

Example: Bearer {token}

Get specific Category

requires authentication

This endpoint retrieves specified category.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/categories/5ce3a914-8a20-4e83-9e5a-059361de5d04" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/categories/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/categories/5ce3a914-8a20-4e83-9e5a-059361de5d04';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/categories/5ce3a914-8a20-4e83-9e5a-059361de5d04'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "uuid": "e2809d69-c3a3-4155-c3b5-43c3afe28093",
        "name": "l_ambient_meat",
        "label": "l_ambient_meat",
        "description": "l_cuts_of_meat",
        "is_active": 1,
        "created_at": "2019-10-31 07:33:51",
        "updated_at": "2019-10-31 07:33:51"
    },
    "callTime": 0.0027418136596679688
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/categories/{id}

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

id   string   

The UUID of the category. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get organisation default categories (admin only)

requires authentication

This endpoint retrieves all the organisation default categories.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/admin/organisation/default_categories" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/admin/organisation/default_categories"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/admin/organisation/default_categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/admin/organisation/default_categories'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "id": 11,
            "uuid": "60efbfbd-efbf-bdef-bfbd-efbfbdefbfbd",
            "name": "l_ambient_fish",
            "label": "l_ambient_fish",
            "description": "l_cuts_of_fish",
            "is_active": 1,
            "created_at": "2020-02-10 15:55:05",
            "updated_at": "2020-02-10 15:55:05"
        }
    ],
    "callTime": 0.04359316825866699
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/admin/organisation/default_categories

Headers

AuthorizationToken      

Example: Bearer {token}

Attach default categories to the organisation (admin only)

requires authentication

This endpoint is used to attach default categories to the organisation.

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/admin/organisation/default_categories" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"categories\": [
        \"architecto\"
    ]
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/admin/organisation/default_categories"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "categories": [
        "architecto"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/admin/organisation/default_categories';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'categories' => [
                'architecto',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/admin/organisation/default_categories'
payload = {
    "categories": [
        "architecto"
    ]
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request      

POST api/admin/organisation/default_categories

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

categories   string[]   

An Array of categories to be attached to the organisation

Get organisation default categories

requires authentication

This endpoint retrieves all the organisation default categories.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/organisation/default_categories" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"return_order\": \"{url}?return_order=ASC|DESC\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/organisation/default_categories"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "return_order": "{url}?return_order=ASC|DESC"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/organisation/default_categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'return_order' => '{url}?return_order=ASC|DESC',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/organisation/default_categories'
payload = {
    "return_order": "{url}?return_order=ASC|DESC"
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "id": 11,
            "uuid": "60efbfbd-efbf-bdef-bfbd-efbfbdefbfbd",
            "name": "l_ambient_fish",
            "label": "l_ambient_fish",
            "description": "l_cuts_of_fish",
            "is_active": 1,
            "created_at": "2020-02-10 15:55:05",
            "updated_at": "2020-02-10 15:55:05"
        }
    ],
    "callTime": 0.04359316825866699
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/organisation/default_categories

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

return_order   String  optional  

optional, default ASC. Example: {url}?return_order=ASC|DESC

Collection Windows

Get All Collection Windows for a Branch

requires authentication

This endpoint retrieves all branch's collection windows.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/collection_windows" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/collection_windows"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/collection_windows';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/collection_windows'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "uuid": "c2af254b-cb9c-66e2-809d-4cc2a7c28118",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 1,
            "day_of_week_end": 1,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "c396c2b5-2c27-c3a2-c385-41c2a1c2a56e",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 2,
            "day_of_week_end": 2,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "512369c3-be3b-5d4e-41e2-84a2094d17c2",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 3,
            "day_of_week_end": 3,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "75c2b0c2-a749-c281-c29d-431ee2809dc2",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 4,
            "day_of_week_end": 4,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "6a4ce280-993e-c382-674f-c2abc2a8c281",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 5,
            "day_of_week_end": 5,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "5cc2a7c3-a96d-c3a9-0d41-c3a5c2aa66c3",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 6,
            "day_of_week_end": 6,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        },
        {
            "uuid": "5b78c3b2-c394-e280-a2e2-84a243c2b2e2",
            "starts_at": "20:30:00",
            "ends_at": "21:30:00",
            "day_of_week_start": 7,
            "day_of_week_end": 7,
            "created_at": "2019-09-29 05:52:02",
            "updated_at": "2019-09-29 05:52:02",
            "max_collectors": 1,
            "difference_in_days": 0
        }
    ],
    "callTime": 0.004434108734130859
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/user/branches/{branch}/collection_windows

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Donation Response

Donation Record PDF

requires authentication

To download the donation record in PDF format The locale in pdf is decided by donation response associated branch locale.

The request rate limit is set to 50/ min per user fixed!

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04/download" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04/download"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04/download';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04/download'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "uuid": "00000032-13bc-47d1-93e2-8583495cd796",
        "type": "P",
        "token": "10",
        "response_at": "2021-04-01 18:08:21",
        "created_at": "2021-04-01 18:07:43",
        "updated_at": "2021-04-01 18:08:21",
        "deleted_at": null,
        "tsm_current_state": "Rejected",
        "uncollected_reason": null,
        "accepted_at": null,
        "declined_at": "2021-04-01 18:08:21",
        "transferred_at": null,
        "not_transferred_at": null,
        "category_summary": [
            {
                "category": "l_bakery",
                "quantity": 1,
                "uom": "Crate",
                "estimated_weight": 0,
                "actual_weight": 0,
                "estimated_price": 0,
                "actual_price": 0
            },
            {
                "category": "l_fruit_veg",
                "quantity": 1,
                "uom": "Crate",
                "estimated_weight": 0,
                "actual_weight": 0,
                "estimated_price": 0,
                "actual_price": 0
            }
        ],
        "tsm_current_state_label": "rejected",
        "donation_images": [],
        "charity_branch": {
            "uuid": "2d0e0e00-5af0-4401-823e-04e19fe3a3e7",
            "name": "The Nest",
            "countries_id": 2635167,
            "provinces_id": 6269131,
            "counties_id": 2651079,
            "official_id": "FS:0011p00002lzQdQAAU",
            "address_1": "Abbotsbury Road",
            "address_2": "",
            "city_town": "",
            "post_code": "DT4 0JX",
            "phone": "+447724285851",
            "latitude": "50.61114100",
            "longitude": "-2.46985500",
            "timezone": "Europe/Dublin",
            "locale": "en_IE",
            "is_active": 1,
            "is_foodboard_allowed": 1,
            "esign": 0,
            "send_daily_donations_reminders": false,
            "send_instant_donations_reminders": false,
            "offers_token_counter": 0,
            "created_at": "2020-11-13T09:14:18.000000Z",
            "updated_at": "2021-06-28T18:10:06.000000Z",
            "deleted_at": null,
            "in_line_address": "Abbotsbury Road, DT4 0JX, Dorset, England, United Kingdom",
            "storage_types": [
                {
                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                    "name": "l_ambient",
                    "label": "l_ambient",
                    "is_active": 1,
                    "created_at": "2021-03-15T00:26:32.000000Z",
                    "updated_at": "2021-03-15T00:26:32.000000Z"
                }
            ],
            "county": {
                "id": 2651079,
                "countries_id": 2635167,
                "provinces_id": 6269131,
                "name": "Dorset",
                "latitude": 50.75,
                "longitude": -2.33333,
                "created_at": "2021-03-15T00:26:10.000000Z",
                "updated_at": "2021-03-15T00:26:10.000000Z",
                "deleted_at": null
            },
            "province": {
                "id": 6269131,
                "countries_id": 2635167,
                "name": "England",
                "latitude": 52.16045,
                "longitude": -0.70312,
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            },
            "country": {
                "id": 2635167,
                "name": "United Kingdom",
                "latitude": 54.75844,
                "longitude": -2.69531,
                "code": "GB",
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            }
        },
        "charity_membership": {
            "uuid": "88721bef-ea47-4e97-996d-1592c301db5c",
            "tsm_current_state": "Activated",
            "created_at": "2021-03-15T01:08:32.000000Z",
            "updated_at": "2021-12-17T21:19:24.000000Z",
            "cancellation_requested": 0,
            "laravel_through_key": 5151770,
            "tsm_current_state_label": "activated",
            "storage_types": [
                {
                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                    "name": "l_ambient",
                    "label": "l_ambient",
                    "is_active": 1,
                    "created_at": "2021-03-15T00:26:32.000000Z",
                    "updated_at": "2021-03-15T00:26:32.000000Z"
                }
            ]
        },
        "items": [
            {
                "is_available": 1,
                "created_at": "2021-04-01T18:07:43.000000Z",
                "updated_at": "2021-04-01T18:07:43.000000Z",
                "deleted_at": null,
                "donation_item": {
                    "quantity": 1,
                    "unit_of_measure": "Crate",
                    "unit_of_measure_co2e": 3.2,
                    "unit_of_measure_kg": 6.5,
                    "meals_per_kg": 2.381,
                    "created_at": "2021-04-01T18:03:40.000000Z",
                    "updated_at": "2021-04-01T18:03:40.000000Z",
                    "deleted_at": null,
                    "total_co2e": 20.8,
                    "total_kg": 6.5,
                    "total_meals": 15.476499999999998,
                    "total_price": null,
                    "estimated_total_co2e": null,
                    "estimated_total_kg": null,
                    "estimated_total_meals": null,
                    "estimated_total_price": null,
                    "actual_total_co2e": null,
                    "actual_total_kg": null,
                    "actual_total_meals": null,
                    "actual_total_price": null,
                    "is_available": 1,
                    "is_extra": 0,
                    "is_breached": 0,
                    "product_level_descriptions": [],
                    "category": {
                        "uuid": "dbab4052-6a5a-4db5-be49-0122bca76183",
                        "name": "l_bread_and_bread_products",
                        "label": "l_bread_and_bread_products",
                        "description": "l_products_containing_mostly_bread",
                        "is_active": 1,
                        "created_at": "2021-03-15T00:26:32.000000Z",
                        "updated_at": "2021-03-15T00:26:32.000000Z"
                    }
                }
            },
            {
                "is_available": 1,
                "created_at": "2021-04-01T18:07:43.000000Z",
                "updated_at": "2021-04-01T18:07:43.000000Z",
                "deleted_at": null,
                "donation_item": {
                    "quantity": 1,
                    "unit_of_measure": "Crate",
                    "unit_of_measure_co2e": 3.2,
                    "unit_of_measure_kg": 6.5,
                    "meals_per_kg": 2.381,
                    "created_at": "2021-04-01T18:03:40.000000Z",
                    "updated_at": "2021-04-01T18:03:40.000000Z",
                    "deleted_at": null,
                    "total_co2e": 20.8,
                    "total_kg": 6.5,
                    "total_meals": 15.476499999999998,
                    "total_price": null,
                    "estimated_total_co2e": null,
                    "estimated_total_kg": null,
                    "estimated_total_meals": null,
                    "estimated_total_price": null,
                    "actual_total_co2e": null,
                    "actual_total_kg": null,
                    "actual_total_meals": null,
                    "actual_total_price": null,
                    "is_available": 1,
                    "is_extra": 0,
                    "is_breached": 0,
                    "product_level_descriptions": [],
                    "category": {
                        "uuid": "750a9375-9fb1-437d-bd5e-1b11dce297c1",
                        "name": "l_fresh_veg",
                        "label": "l_fresh_veg",
                        "description": "l_fresh_vegetables",
                        "is_active": 1,
                        "created_at": "2021-03-15T00:26:32.000000Z",
                        "updated_at": "2021-03-15T00:26:32.000000Z"
                    }
                }
            }
        ],
        "donation": {
            "uuid": "0808a2c9-371f-4ef9-8bf7-9bf8ef8c09f6",
            "external_id": "9317b483-7d30-4fc7-9896-5b0eaecc2e1d",
            "is_max_collectors_reached": null,
            "received_at": "2021-04-01 18:03:40",
            "created_at": "2021-04-01 18:03:40",
            "updated_at": "2021-04-01 20:00:08",
            "deleted_at": null,
            "accepted_by": "2021-04-01 20:00:00",
            "collect_by": null,
            "primary_available_at": "2021-04-01 18:00:00",
            "waitlist_available_at": null,
            "foodboard_available_at": "2021-04-01 18:08:21",
            "donation_window_start_at": "2021-04-01 18:00:00",
            "donation_window_end_at": "2021-04-01 18:30:00",
            "tsm_current_state": "Ended",
            "require_friends": 1,
            "rag_status": 2,
            "all_items_taken": 0,
            "esign": 0,
            "tsm_current_state_label": "ended",
            "donor": {
                "uuid": "25fcf6f9-dbf1-4030-9949-3e5c5361cc49",
                "name": "Little Waitrose Poundbury",
                "countries_id": 2635167,
                "provinces_id": 6269131,
                "counties_id": 2651079,
                "official_id": "WAITROSE:733",
                "address_1": "Poundbury, Queen Mother Square, Poundbury, Dorchester",
                "address_2": "",
                "city_town": "Not Available",
                "post_code": "DT1 3BW",
                "phone": "+447400123760",
                "latitude": "50.71532390",
                "longitude": "-2.46895310",
                "timezone": "Europe/London",
                "locale": "en_IE",
                "is_active": 1,
                "is_foodboard_allowed": 1,
                "esign": 0,
                "send_daily_donations_reminders": false,
                "send_instant_donations_reminders": false,
                "offers_token_counter": 0,
                "created_at": "2020-10-15T15:06:10.000000Z",
                "updated_at": "2022-01-25T10:49:23.000000Z",
                "deleted_at": null,
                "in_line_address": "Poundbury, Queen Mother Square, Poundbury, Dorchester, Not Available DT1 3BW, Dorset, England, United Kingdom",
                "organisation": {
                    "uuid": "7373f661-1583-4f17-a4cf-930099d7ae15",
                    "name": "Waitrose UK",
                    "countries_id": 2635167,
                    "provinces_id": null,
                    "counties_id": null,
                    "official_id": null,
                    "accept_by_offset": 40,
                    "phone": null,
                    "address_1": "No Address Available In Migration",
                    "address_2": "",
                    "city_town": "",
                    "post_code": "MIG N0A",
                    "latitude": "0.00000000",
                    "longitude": "0.00000000",
                    "description": null,
                    "food_safety_info": null,
                    "is_active": true,
                    "is_friend_group": 1,
                    "created_at": "2017-03-01T11:34:26.000000Z",
                    "updated_at": "2022-05-23T11:12:23.000000Z",
                    "deleted_at": null,
                    "in_line_address": "No Address Available In Migration, MIG N0A, United Kingdom",
                    "county": null,
                    "province": null,
                    "country": {
                        "id": 2635167,
                        "name": "United Kingdom",
                        "latitude": 54.75844,
                        "longitude": -2.69531,
                        "code": "GB",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                },
                "county": {
                    "id": 2651079,
                    "countries_id": 2635167,
                    "provinces_id": 6269131,
                    "name": "Dorset",
                    "latitude": 50.75,
                    "longitude": -2.33333,
                    "created_at": "2021-03-15T00:26:10.000000Z",
                    "updated_at": "2021-03-15T00:26:10.000000Z",
                    "deleted_at": null
                },
                "province": {
                    "id": 6269131,
                    "countries_id": 2635167,
                    "name": "England",
                    "latitude": 52.16045,
                    "longitude": -0.70312,
                    "created_at": "2021-03-15T00:26:09.000000Z",
                    "updated_at": "2021-03-15T00:26:09.000000Z",
                    "deleted_at": null
                },
                "country": {
                    "id": 2635167,
                    "name": "United Kingdom",
                    "latitude": 54.75844,
                    "longitude": -2.69531,
                    "code": "GB",
                    "created_at": "2021-03-15T00:26:09.000000Z",
                    "updated_at": "2021-03-15T00:26:09.000000Z",
                    "deleted_at": null
                }
            },
            "network": {
                "uuid": "7a6d523b-22e7-4856-b4ad-2da72a478a69",
                "description": "FareShare | Fighting hunger, tackling food waste in the UK",
                "max_donation_volume_kg": 30000,
                "donation_interval": 30,
                "requirements": "FareShare | Fighting hunger, tackling food waste in the UK",
                "default_co2e": null,
                "default_meals_per_kg": null,
                "silence_collection_window_invitation_notifications": 1,
                "silence_network_membership_notifications": null,
                "created_at": "2021-03-15T01:07:38.000000Z",
                "updated_at": "2021-03-26T17:53:22.000000Z",
                "deleted_at": null,
                "is_public": false,
                "organisation": {
                    "uuid": "fbfe1124-ac4e-4fcb-bd43-ed6b3035506c",
                    "name": "FareShare UK",
                    "countries_id": 2635167,
                    "provinces_id": 6269131,
                    "counties_id": 2648110,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "phone": "+442073942468",
                    "address_1": "Unit 7 Deptford Trading Estate",
                    "address_2": "Blackhorse Road",
                    "city_town": "London",
                    "post_code": "SE8 5HY",
                    "latitude": "51.48429100",
                    "longitude": "-0.03901200",
                    "description": "FareShare is the UK’s national network of charitable food redistributors, made up of 18 independent organisations. Together, we take good quality surplus food from right across the food industry and get it to almost 11,000 frontline charities and community groups.",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_friend_group": 0,
                    "created_at": "2019-07-17T13:42:10.000000Z",
                    "updated_at": "2021-07-21T12:38:39.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 7 Deptford Trading Estate, Blackhorse Road, London SE8 5HY, Greater London, England, United Kingdom",
                    "county": {
                        "id": 2648110,
                        "countries_id": 2635167,
                        "provinces_id": 6269131,
                        "name": "Greater London",
                        "latitude": 51.5,
                        "longitude": -0.16667,
                        "created_at": "2021-03-15T00:26:10.000000Z",
                        "updated_at": "2021-03-15T00:26:10.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 6269131,
                        "countries_id": 2635167,
                        "name": "England",
                        "latitude": 52.16045,
                        "longitude": -0.70312,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2635167,
                        "name": "United Kingdom",
                        "latitude": 54.75844,
                        "longitude": -2.69531,
                        "code": "GB",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            }
        }
    },
    "frontendRedirect": false,
    "callTime": 0.08298206329345703,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Invalid UUID string: 00000032-13bc-47d1-93e2-8583495cd796"
    ],
    "frontendRedirect": false,
    "callTime": 0.017800092697143555,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/donation_responses/{uuid}/download

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

uuid   string   

The UUID of the donation response. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get Donation Response

requires authentication

This endpoint retrieves specified Donation Response.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "uuid": "00000032-13bc-47d1-93e2-8583495cd796",
        "type": "P",
        "token": "10",
        "response_at": "2021-04-01 18:08:21",
        "created_at": "2021-04-01 18:07:43",
        "updated_at": "2021-04-01 18:08:21",
        "deleted_at": null,
        "tsm_current_state": "Rejected",
        "uncollected_reason": null,
        "accepted_at": null,
        "declined_at": "2021-04-01 18:08:21",
        "transferred_at": null,
        "not_transferred_at": null,
        "category_summary": [
            {
                "category": "l_bakery",
                "quantity": 1,
                "uom": "Crate",
                "estimated_weight": 0,
                "actual_weight": 0,
                "estimated_price": 0,
                "actual_price": 0
            },
            {
                "category": "l_fruit_veg",
                "quantity": 1,
                "uom": "Crate",
                "estimated_weight": 0,
                "actual_weight": 0,
                "estimated_price": 0,
                "actual_price": 0
            }
        ],
        "tsm_current_state_label": "rejected",
        "donation_images": [],
        "charity_branch": {
            "uuid": "2d0e0e00-5af0-4401-823e-04e19fe3a3e7",
            "name": "The Nest",
            "countries_id": 2635167,
            "provinces_id": 6269131,
            "counties_id": 2651079,
            "official_id": "FS:0011p00002lzQdQAAU",
            "address_1": "Abbotsbury Road",
            "address_2": "",
            "city_town": "",
            "post_code": "DT4 0JX",
            "phone": "+447724285851",
            "latitude": "50.61114100",
            "longitude": "-2.46985500",
            "timezone": "Europe/Dublin",
            "locale": "en_IE",
            "is_active": 1,
            "is_foodboard_allowed": 1,
            "esign": 0,
            "send_daily_donations_reminders": false,
            "send_instant_donations_reminders": false,
            "offers_token_counter": 0,
            "created_at": "2020-11-13T09:14:18.000000Z",
            "updated_at": "2021-06-28T18:10:06.000000Z",
            "deleted_at": null,
            "in_line_address": "Abbotsbury Road, DT4 0JX, Dorset, England, United Kingdom",
            "storage_types": [
                {
                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                    "name": "l_ambient",
                    "label": "l_ambient",
                    "is_active": 1,
                    "created_at": "2021-03-15T00:26:32.000000Z",
                    "updated_at": "2021-03-15T00:26:32.000000Z"
                }
            ],
            "county": {
                "id": 2651079,
                "countries_id": 2635167,
                "provinces_id": 6269131,
                "name": "Dorset",
                "latitude": 50.75,
                "longitude": -2.33333,
                "created_at": "2021-03-15T00:26:10.000000Z",
                "updated_at": "2021-03-15T00:26:10.000000Z",
                "deleted_at": null
            },
            "province": {
                "id": 6269131,
                "countries_id": 2635167,
                "name": "England",
                "latitude": 52.16045,
                "longitude": -0.70312,
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            },
            "country": {
                "id": 2635167,
                "name": "United Kingdom",
                "latitude": 54.75844,
                "longitude": -2.69531,
                "code": "GB",
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            }
        },
        "charity_membership": {
            "uuid": "88721bef-ea47-4e97-996d-1592c301db5c",
            "tsm_current_state": "Activated",
            "created_at": "2021-03-15T01:08:32.000000Z",
            "updated_at": "2021-12-17T21:19:24.000000Z",
            "cancellation_requested": 0,
            "laravel_through_key": 5151770,
            "tsm_current_state_label": "activated",
            "storage_types": [
                {
                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                    "name": "l_ambient",
                    "label": "l_ambient",
                    "is_active": 1,
                    "created_at": "2021-03-15T00:26:32.000000Z",
                    "updated_at": "2021-03-15T00:26:32.000000Z"
                }
            ]
        },
        "items": [
            {
                "is_available": 1,
                "created_at": "2021-04-01T18:07:43.000000Z",
                "updated_at": "2021-04-01T18:07:43.000000Z",
                "deleted_at": null,
                "donation_item": {
                    "quantity": 1,
                    "unit_of_measure": "Crate",
                    "unit_of_measure_co2e": 3.2,
                    "unit_of_measure_kg": 6.5,
                    "meals_per_kg": 2.381,
                    "created_at": "2021-04-01T18:03:40.000000Z",
                    "updated_at": "2021-04-01T18:03:40.000000Z",
                    "deleted_at": null,
                    "total_co2e": 20.8,
                    "total_kg": 6.5,
                    "total_meals": 15.476499999999998,
                    "total_price": null,
                    "estimated_total_co2e": null,
                    "estimated_total_kg": null,
                    "estimated_total_meals": null,
                    "estimated_total_price": null,
                    "actual_total_co2e": null,
                    "actual_total_kg": null,
                    "actual_total_meals": null,
                    "actual_total_price": null,
                    "is_available": 1,
                    "is_extra": 0,
                    "is_breached": 0,
                    "product_level_descriptions": [],
                    "category": {
                        "uuid": "dbab4052-6a5a-4db5-be49-0122bca76183",
                        "name": "l_bread_and_bread_products",
                        "label": "l_bread_and_bread_products",
                        "description": "l_products_containing_mostly_bread",
                        "is_active": 1,
                        "created_at": "2021-03-15T00:26:32.000000Z",
                        "updated_at": "2021-03-15T00:26:32.000000Z"
                    }
                }
            },
            {
                "is_available": 1,
                "created_at": "2021-04-01T18:07:43.000000Z",
                "updated_at": "2021-04-01T18:07:43.000000Z",
                "deleted_at": null,
                "donation_item": {
                    "quantity": 1,
                    "unit_of_measure": "Crate",
                    "unit_of_measure_co2e": 3.2,
                    "unit_of_measure_kg": 6.5,
                    "meals_per_kg": 2.381,
                    "created_at": "2021-04-01T18:03:40.000000Z",
                    "updated_at": "2021-04-01T18:03:40.000000Z",
                    "deleted_at": null,
                    "total_co2e": 20.8,
                    "total_kg": 6.5,
                    "total_meals": 15.476499999999998,
                    "total_price": null,
                    "estimated_total_co2e": null,
                    "estimated_total_kg": null,
                    "estimated_total_meals": null,
                    "estimated_total_price": null,
                    "actual_total_co2e": null,
                    "actual_total_kg": null,
                    "actual_total_meals": null,
                    "actual_total_price": null,
                    "is_available": 1,
                    "is_extra": 0,
                    "is_breached": 0,
                    "product_level_descriptions": [],
                    "category": {
                        "uuid": "750a9375-9fb1-437d-bd5e-1b11dce297c1",
                        "name": "l_fresh_veg",
                        "label": "l_fresh_veg",
                        "description": "l_fresh_vegetables",
                        "is_active": 1,
                        "created_at": "2021-03-15T00:26:32.000000Z",
                        "updated_at": "2021-03-15T00:26:32.000000Z"
                    }
                }
            }
        ],
        "donation": {
            "uuid": "0808a2c9-371f-4ef9-8bf7-9bf8ef8c09f6",
            "external_id": "9317b483-7d30-4fc7-9896-5b0eaecc2e1d",
            "is_max_collectors_reached": null,
            "received_at": "2021-04-01 18:03:40",
            "created_at": "2021-04-01 18:03:40",
            "updated_at": "2021-04-01 20:00:08",
            "deleted_at": null,
            "accepted_by": "2021-04-01 20:00:00",
            "collect_by": null,
            "primary_available_at": "2021-04-01 18:00:00",
            "waitlist_available_at": null,
            "foodboard_available_at": "2021-04-01 18:08:21",
            "donation_window_start_at": "2021-04-01 18:00:00",
            "donation_window_end_at": "2021-04-01 18:30:00",
            "tsm_current_state": "Ended",
            "require_friends": 1,
            "rag_status": 2,
            "all_items_taken": 0,
            "esign": 0,
            "tsm_current_state_label": "ended",
            "donor": {
                "uuid": "25fcf6f9-dbf1-4030-9949-3e5c5361cc49",
                "name": "Little Waitrose Poundbury",
                "countries_id": 2635167,
                "provinces_id": 6269131,
                "counties_id": 2651079,
                "official_id": "WAITROSE:733",
                "address_1": "Poundbury, Queen Mother Square, Poundbury, Dorchester",
                "address_2": "",
                "city_town": "Not Available",
                "post_code": "DT1 3BW",
                "phone": "+447400123760",
                "latitude": "50.71532390",
                "longitude": "-2.46895310",
                "timezone": "Europe/London",
                "locale": "en_IE",
                "is_active": 1,
                "is_foodboard_allowed": 1,
                "esign": 0,
                "send_daily_donations_reminders": false,
                "send_instant_donations_reminders": false,
                "offers_token_counter": 0,
                "created_at": "2020-10-15T15:06:10.000000Z",
                "updated_at": "2022-01-25T10:49:23.000000Z",
                "deleted_at": null,
                "in_line_address": "Poundbury, Queen Mother Square, Poundbury, Dorchester, Not Available DT1 3BW, Dorset, England, United Kingdom",
                "organisation": {
                    "uuid": "7373f661-1583-4f17-a4cf-930099d7ae15",
                    "name": "Waitrose UK",
                    "countries_id": 2635167,
                    "provinces_id": null,
                    "counties_id": null,
                    "official_id": null,
                    "accept_by_offset": 40,
                    "phone": null,
                    "address_1": "No Address Available In Migration",
                    "address_2": "",
                    "city_town": "",
                    "post_code": "MIG N0A",
                    "latitude": "0.00000000",
                    "longitude": "0.00000000",
                    "description": null,
                    "food_safety_info": null,
                    "is_active": true,
                    "is_friend_group": 1,
                    "created_at": "2017-03-01T11:34:26.000000Z",
                    "updated_at": "2022-05-23T11:12:23.000000Z",
                    "deleted_at": null,
                    "in_line_address": "No Address Available In Migration, MIG N0A, United Kingdom",
                    "county": null,
                    "province": null,
                    "country": {
                        "id": 2635167,
                        "name": "United Kingdom",
                        "latitude": 54.75844,
                        "longitude": -2.69531,
                        "code": "GB",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                },
                "county": {
                    "id": 2651079,
                    "countries_id": 2635167,
                    "provinces_id": 6269131,
                    "name": "Dorset",
                    "latitude": 50.75,
                    "longitude": -2.33333,
                    "created_at": "2021-03-15T00:26:10.000000Z",
                    "updated_at": "2021-03-15T00:26:10.000000Z",
                    "deleted_at": null
                },
                "province": {
                    "id": 6269131,
                    "countries_id": 2635167,
                    "name": "England",
                    "latitude": 52.16045,
                    "longitude": -0.70312,
                    "created_at": "2021-03-15T00:26:09.000000Z",
                    "updated_at": "2021-03-15T00:26:09.000000Z",
                    "deleted_at": null
                },
                "country": {
                    "id": 2635167,
                    "name": "United Kingdom",
                    "latitude": 54.75844,
                    "longitude": -2.69531,
                    "code": "GB",
                    "created_at": "2021-03-15T00:26:09.000000Z",
                    "updated_at": "2021-03-15T00:26:09.000000Z",
                    "deleted_at": null
                }
            },
            "network": {
                "uuid": "7a6d523b-22e7-4856-b4ad-2da72a478a69",
                "description": "FareShare | Fighting hunger, tackling food waste in the UK",
                "max_donation_volume_kg": 30000,
                "donation_interval": 30,
                "requirements": "FareShare | Fighting hunger, tackling food waste in the UK",
                "default_co2e": null,
                "default_meals_per_kg": null,
                "silence_collection_window_invitation_notifications": 1,
                "silence_network_membership_notifications": null,
                "created_at": "2021-03-15T01:07:38.000000Z",
                "updated_at": "2021-03-26T17:53:22.000000Z",
                "deleted_at": null,
                "is_public": false,
                "organisation": {
                    "uuid": "fbfe1124-ac4e-4fcb-bd43-ed6b3035506c",
                    "name": "FareShare UK",
                    "countries_id": 2635167,
                    "provinces_id": 6269131,
                    "counties_id": 2648110,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "phone": "+442073942468",
                    "address_1": "Unit 7 Deptford Trading Estate",
                    "address_2": "Blackhorse Road",
                    "city_town": "London",
                    "post_code": "SE8 5HY",
                    "latitude": "51.48429100",
                    "longitude": "-0.03901200",
                    "description": "FareShare is the UK’s national network of charitable food redistributors, made up of 18 independent organisations. Together, we take good quality surplus food from right across the food industry and get it to almost 11,000 frontline charities and community groups.",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_friend_group": 0,
                    "created_at": "2019-07-17T13:42:10.000000Z",
                    "updated_at": "2021-07-21T12:38:39.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 7 Deptford Trading Estate, Blackhorse Road, London SE8 5HY, Greater London, England, United Kingdom",
                    "county": {
                        "id": 2648110,
                        "countries_id": 2635167,
                        "provinces_id": 6269131,
                        "name": "Greater London",
                        "latitude": 51.5,
                        "longitude": -0.16667,
                        "created_at": "2021-03-15T00:26:10.000000Z",
                        "updated_at": "2021-03-15T00:26:10.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 6269131,
                        "countries_id": 2635167,
                        "name": "England",
                        "latitude": 52.16045,
                        "longitude": -0.70312,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2635167,
                        "name": "United Kingdom",
                        "latitude": 54.75844,
                        "longitude": -2.69531,
                        "code": "GB",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            }
        }
    },
    "frontendRedirect": false,
    "callTime": 0.08298206329345703,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Invalid UUID string: 00000032-13bc-47d1-93e2-8583495cd796"
    ],
    "frontendRedirect": false,
    "callTime": 0.017800092697143555,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/donation_responses/{uuid}

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

uuid   string   

The UUID of the donation response. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Donation Windows

Get All Donation Windows for a Branch

requires authentication

This endpoint retrieves all branch's donation windows.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/donation_windows" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/donation_windows"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/donation_windows';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/donation_windows'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "uuid": "72c2ae39-2be2-84a2-064b-c381e280b92c",
            "starts_at": "10:00:00",
            "ends_at": "10:59:00",
            "day_of_week": 1,
            "created_at": "2019-09-29 05:52:50",
            "updated_at": "2019-09-29 05:52:50"
        },
        {
            "uuid": "c391c380-46c3-95c2-b7c5-a04cc2afc2af",
            "starts_at": "10:00:00",
            "ends_at": "10:59:00",
            "day_of_week": 2,
            "created_at": "2019-09-29 05:52:50",
            "updated_at": "2019-09-29 05:52:50"
        },
        {
            "uuid": "4014c380-e280-9a27-7f48-c3b7e2809dc3",
            "starts_at": "10:00:00",
            "ends_at": "10:59:00",
            "day_of_week": 3,
            "created_at": "2019-09-29 05:52:50",
            "updated_at": "2019-09-29 05:52:50"
        },
        {
            "uuid": "c2b1c3a4-c385-c3a9-c2b4-c3bf4c0bc2b2",
            "starts_at": "10:00:00",
            "ends_at": "10:59:00",
            "day_of_week": 4,
            "created_at": "2019-09-29 05:52:50",
            "updated_at": "2019-09-29 05:52:50"
        },
        {
            "uuid": "c2a6e280-9ce2-80a1-c2b2-c3b0134e2fe2",
            "starts_at": "10:00:00",
            "ends_at": "10:59:00",
            "day_of_week": 5,
            "created_at": "2019-09-29 05:52:50",
            "updated_at": "2019-09-29 05:52:50"
        }
    ],
    "callTime": 0.007502079010009766
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/user/branches/{branch}/donation_windows

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Donations

Get donations for Network Membership

requires authentication

This endpoint retrieves donation associated with a Network Membership.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/donations" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/donations"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/donations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/donations'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "data": [
            {
                "external_id": "96ff536a-ca2d-4ff6-bc22-5f6a4a9e1b3c",
                "donation_date": "2022-08-11",
                "donation_time": "16:00",
                "donation_uuid": "75304d54-e150-47ff-a7da-e286c248d6dc",
                "ambient_total": 0,
                "chilled_total": 0,
                "frozen_total": 0,
                "hot_total": 0,
                "total": 0,
                "rag_status_color": "black",
                "rag_status_label": "l_no_posting",
                "created_at": "2022-08-11 16:00:03",
                "tsm_current_state": "No Posting",
                "accepted_by": null,
                "responses": [],
                "transitions": {
                    "received": {
                        "color": "outline-warning",
                        "icon": "fas fa-box",
                        "name": "Received",
                        "context": "donor"
                    }
                },
                "status_style": {
                    "color": "black",
                    "icon": "fas fa-exclamation-circle"
                },
                "tsm_current_state_label": "no_posting",
                "donor": {
                    "uuid": "9fbcb807-c331-4417-8691-7e202c95bd23",
                    "name": "Little Extra Grocer IOFN 1.5",
                    "countries_id": 2963597,
                    "provinces_id": 7521316,
                    "counties_id": 2964751,
                    "official_id": "LEG:2225",
                    "address_1": "36 Main Street",
                    "address_2": "District A4",
                    "city_town": "Bundoran",
                    "post_code": "F94 YHR6",
                    "phone": null,
                    "latitude": "54.91667000",
                    "longitude": "-8.00000000",
                    "timezone": "Europe/Dublin",
                    "locale": "en_IE",
                    "is_active": 1,
                    "is_foodboard_allowed": 1,
                    "esign": 0,
                    "send_daily_donations_reminders": false,
                    "send_instant_donations_reminders": false,
                    "offers_token_counter": 0,
                    "created_at": "2022-08-11T08:48:59.000000Z",
                    "updated_at": "2022-08-11T08:48:59.000000Z",
                    "deleted_at": null,
                    "in_line_address": "36 Main Street, District A4, Bundoran F94 YHR6, Co. Donegal, Ulster, Ireland",
                    "local_admins": [
                        {
                            "uuid": "bef8dcdb-ac18-4425-b4b8-4772ec082ffe",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "email_verified_at": "2022-08-11T08:49:01.000000Z",
                            "activation_key": null,
                            "restoration_key": null,
                            "is_active": 1,
                            "failed_logins": 0,
                            "is_organisation_admin": 1,
                            "one_signal_id": null,
                            "created_at": "2022-08-11T08:49:01.000000Z",
                            "updated_at": "2022-08-11T08:49:01.000000Z",
                            "deleted_at": null,
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "4fde3f5b-eadd-4fe9-9844-5e2a405ada13",
                                "name": "Little Extra Grocer Group",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": "MRTDonorOrg",
                                "accept_by_offset": 30,
                                "phone": null,
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.35512000",
                                "longitude": "-6.24922000",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_friend_group": 0,
                                "created_at": "2022-08-11T08:48:59.000000Z",
                                "updated_at": "2022-08-11T08:48:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "Test Address Line 1, Test Address Line 2, Dublin FV12345, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922,
                                    "created_at": "2022-07-27T13:30:57.000000Z",
                                    "updated_at": "2022-07-27T13:30:57.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2022-07-27T13:30:57.000000Z",
                                    "updated_at": "2022-07-27T13:30:57.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2022-07-27T13:30:57.000000Z",
                                    "updated_at": "2022-07-27T13:30:57.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "d71f399a-bb6c-48b3-82ab-716551c60df8",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "email_verified_at": "2022-08-11T08:49:01.000000Z",
                            "activation_key": null,
                            "restoration_key": null,
                            "is_active": 1,
                            "failed_logins": 0,
                            "is_organisation_admin": 1,
                            "one_signal_id": null,
                            "created_at": "2022-08-11T08:49:01.000000Z",
                            "updated_at": "2022-08-11T08:51:40.000000Z",
                            "deleted_at": null,
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "4fde3f5b-eadd-4fe9-9844-5e2a405ada13",
                                "name": "Little Extra Grocer Group",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": "MRTDonorOrg",
                                "accept_by_offset": 30,
                                "phone": null,
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.35512000",
                                "longitude": "-6.24922000",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_friend_group": 0,
                                "created_at": "2022-08-11T08:48:59.000000Z",
                                "updated_at": "2022-08-11T08:48:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "Test Address Line 1, Test Address Line 2, Dublin FV12345, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922,
                                    "created_at": "2022-07-27T13:30:57.000000Z",
                                    "updated_at": "2022-07-27T13:30:57.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2022-07-27T13:30:57.000000Z",
                                    "updated_at": "2022-07-27T13:30:57.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2022-07-27T13:30:57.000000Z",
                                    "updated_at": "2022-07-27T13:30:57.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "472eadcd-e160-4a0f-b2f5-1d2e742e1b00",
                            "first_name": "Duty 04",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "email_verified_at": "2022-08-11T08:49:01.000000Z",
                            "activation_key": null,
                            "restoration_key": null,
                            "is_active": 1,
                            "failed_logins": 0,
                            "is_organisation_admin": 0,
                            "one_signal_id": null,
                            "created_at": "2022-08-11T08:49:01.000000Z",
                            "updated_at": "2022-08-11T08:49:01.000000Z",
                            "deleted_at": null,
                            "full_name": "Duty 04 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 2964751,
                        "countries_id": 2963597,
                        "provinces_id": 7521316,
                        "name": "Co. Donegal",
                        "latitude": 54.91667,
                        "longitude": -8,
                        "created_at": "2022-07-27T13:30:57.000000Z",
                        "updated_at": "2022-07-27T13:31:08.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521316,
                        "countries_id": 2963597,
                        "name": "Ulster",
                        "latitude": 54.92732,
                        "longitude": -7.9395,
                        "created_at": "2022-07-27T13:30:57.000000Z",
                        "updated_at": "2022-07-27T13:30:57.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2022-07-27T13:30:57.000000Z",
                        "updated_at": "2022-07-27T13:30:57.000000Z",
                        "deleted_at": null
                    }
                },
                "network": {
                    "uuid": "9228d079-8e57-4cec-92b6-55ac7ed4c62d",
                    "description": null,
                    "max_donation_volume_kg": null,
                    "donation_interval": 30,
                    "requirements": null,
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-08-11T08:48:59.000000Z",
                    "updated_at": "2022-08-11T08:48:59.000000Z",
                    "deleted_at": null,
                    "is_public": false
                }
            }
        ],
        "recordsFiltered": 1,
        "recordsTotal": 1
    },
    "frontendRedirect": false,
    "callTime": 0.02938985824584961,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/donations

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get donations for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Split Donation into Offers

requires authentication

This endpoint split a large volume donation into several offers with lesser donation items

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/foodnet_admin/donations/d9b49c91-0a23-4c50-acee-9636df6d8c94/split" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"splits\": [
        {
            \"charity_uuid\": \"8afcb65a-8757-4efd-84d7-b20c13a058ce\",
            \"items\": [
                {
                    \"category_uuid\": \"a9fcb65a-8757-4efd-84d7-b20c13a058ec\",
                    \"quantity\": 40
                },
                {
                    \"category_uuid\": \"a9fcb65a-8757-4efd-84d7-b20c13a058ec\",
                    \"quantity\": 10
                }
            ]
        },
        {
            \"charity_uuid\": \"b3d15e9f-1686-4d28-b8cc-930772d9f354\",
            \"items\": [
                {
                    \"category_uuid\": \"a9fcb65a-8757-4efd-84d7-b20c13a058ec\",
                    \"quantity\": 40
                }
            ]
        }
    ]
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet_admin/donations/d9b49c91-0a23-4c50-acee-9636df6d8c94/split"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "splits": [
        {
            "charity_uuid": "8afcb65a-8757-4efd-84d7-b20c13a058ce",
            "items": [
                {
                    "category_uuid": "a9fcb65a-8757-4efd-84d7-b20c13a058ec",
                    "quantity": 40
                },
                {
                    "category_uuid": "a9fcb65a-8757-4efd-84d7-b20c13a058ec",
                    "quantity": 10
                }
            ]
        },
        {
            "charity_uuid": "b3d15e9f-1686-4d28-b8cc-930772d9f354",
            "items": [
                {
                    "category_uuid": "a9fcb65a-8757-4efd-84d7-b20c13a058ec",
                    "quantity": 40
                }
            ]
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet_admin/donations/d9b49c91-0a23-4c50-acee-9636df6d8c94/split';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (($p = &\Symfony\Component\VarExporter\Internal\Registry::$prototypes)['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
                clone $p['stdClass'],
                clone $p['stdClass'],
                clone $p['stdClass'],
                clone $p['stdClass'],
            ],
            null,
            [
                'stdClass' => [
                    'charity_uuid' => [
                        '8afcb65a-8757-4efd-84d7-b20c13a058ce',
                        3 => 'b3d15e9f-1686-4d28-b8cc-930772d9f354',
                    ],
                    'items' => [
                        [
                            $o[1],
                            $o[2],
                        ],
                        3 => [
                            $o[4],
                        ],
                    ],
                    'category_uuid' => [
                        1 => 'a9fcb65a-8757-4efd-84d7-b20c13a058ec',
                        'a9fcb65a-8757-4efd-84d7-b20c13a058ec',
                        4 => 'a9fcb65a-8757-4efd-84d7-b20c13a058ec',
                    ],
                    'quantity' => [
                        1 => 40,
                        10,
                        4 => 40,
                    ],
                ],
            ],
            [
                'splits' => [
                    $o[0],
                    $o[3],
                ],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet_admin/donations/d9b49c91-0a23-4c50-acee-9636df6d8c94/split'
payload = {
    "splits": [
        {
            "charity_uuid": "8afcb65a-8757-4efd-84d7-b20c13a058ce",
            "items": [
                {
                    "category_uuid": "a9fcb65a-8757-4efd-84d7-b20c13a058ec",
                    "quantity": 40
                },
                {
                    "category_uuid": "a9fcb65a-8757-4efd-84d7-b20c13a058ec",
                    "quantity": 10
                }
            ]
        },
        {
            "charity_uuid": "b3d15e9f-1686-4d28-b8cc-930772d9f354",
            "items": [
                {
                    "category_uuid": "a9fcb65a-8757-4efd-84d7-b20c13a058ec",
                    "quantity": 40
                }
            ]
        }
    ]
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "uuid": "5f406fe0-2557-447f-8e67-e195f0c61347",
        "networks_id": 7,
        "branches_id": 934,
        "external_id": "9c6aa5ab-55a7-4dc1-9c82-73b065ce7db9",
        "organisations_id": 19,
        "is_max_collectors_reached": null,
        "received_at": "2024-07-01 07:23:19",
        "created_at": "2024-07-01 07:23:19",
        "updated_at": "2024-07-01 09:45:14",
        "deleted_at": null,
        "accepted_by": "2024-07-02 06:45:19",
        "collect_by": null,
        "primary_available_at": "2024-07-01 07:23:19",
        "waitlist_available_at": null,
        "foodboard_available_at": "2024-07-01T07:33:19.000000Z",
        "donation_window_start_at": "2024-07-01 07:23:19",
        "donation_window_end_at": "2024-07-02 06:45:19",
        "tsm_current_state": "Accepted",
        "require_friends": 0,
        "rag_status": 0,
        "all_items_taken": 0,
        "esign": 0,
        "tsm_current_state_label": "accepted",
        "donor": {
            "uuid": "9dc1c723-d8fe-4859-a819-12d59d1b0f5a",
            "name": "Uchenna Donor*",
            "countries_id": 2963597,
            "provinces_id": 7521313,
            "counties_id": 2962975,
            "official_id": null,
            "address_1": "123, Street",
            "address_2": "",
            "city_town": "Abc",
            "post_code": "XYZ",
            "phone": "+2349039893299",
            "latitude": "1.00345300",
            "longitude": "2.40345300",
            "timezone": "Europe/Dublin",
            "locale": "en_IE",
            "is_active": 1,
            "is_foodboard_allowed": 1,
            "esign": 0,
            "send_daily_donations_reminders": false,
            "send_instant_donations_reminders": false,
            "offers_token_counter": 0,
            "prepare_donation_option": "l_product_and_category",
            "default_categories_only": 0,
            "approved_products_only": 0,
            "geofilter_unit_of_distance": "l_kilometers",
            "collection_delivery": null,
            "created_at": "2024-05-21T08:30:09.000000Z",
            "updated_at": "2024-05-21T10:33:30.000000Z",
            "deleted_at": null,
            "category_min": 0,
            "category_max": 100,
            "donation_window_cutoff": 12,
            "transfer_window_cutoff": 24,
            "max_collection_window": 1,
            "in_line_address": "123, Street, Abc XYZ, Co. Leitrim, Connaught, Ireland",
            "delegated_admins": [
                {
                    "uuid": "abd7d0d2-cb68-443a-a4ba-86113f7cd583",
                    "first_name": "Uchenna",
                    "surname": "Ibekwe",
                    "language_code": "en_IE",
                    "mobile_number": null,
                    "email": "[email protected]",
                    "availability": null,
                    "is_active": 1,
                    "is_organisation_admin": 1,
                    "created_at": "2024-05-21T08:27:56.000000Z",
                    "updated_at": "2024-05-21T10:33:07.000000Z",
                    "pickup_locations": null,
                    "mode_of_transport": null,
                    "full_name": "Uchenna Ibekwe",
                    "role": "foodnet_administrator",
                    "organisation": {
                        "uuid": "7c715e88-4b16-4490-9cbc-4c0eb0a36d18",
                        "name": "Uchenna FB",
                        "countries_id": 2963597,
                        "provinces_id": 7521313,
                        "counties_id": 2962975,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "vip_window": 30,
                        "is_vip_window_active": 1,
                        "phone": "+2347039883288",
                        "address_1": "123, Street",
                        "address_2": "",
                        "city_town": "Abc",
                        "post_code": "XYZ",
                        "latitude": "1.00345300",
                        "longitude": "2.40345300",
                        "description": null,
                        "food_safety_info": null,
                        "is_active": true,
                        "is_featured": 0,
                        "is_friend_group": 0,
                        "receipt_sending_option": 1,
                        "created_at": "2024-05-21T08:27:56.000000Z",
                        "updated_at": "2024-05-21T08:38:07.000000Z",
                        "deleted_at": null,
                        "in_line_address": "123, Street, Abc XYZ, Co. Leitrim, Connaught, Ireland"
                    }
                }
            ],
            "organisation": {
                "uuid": "a1eb3b86-9816-4c0c-a9a3-40c1ac98f7c4",
                "name": "Uchenna Donor",
                "countries_id": 2963597,
                "provinces_id": 7521313,
                "counties_id": 2962975,
                "official_id": null,
                "accept_by_offset": 30,
                "vip_window": 10,
                "is_vip_window_active": 1,
                "phone": "+2349039893299",
                "address_1": "123, Street",
                "address_2": "",
                "city_town": "Abc",
                "post_code": "XYZ",
                "latitude": "6.23450100",
                "longitude": "3.12345000",
                "description": "All is well",
                "food_safety_info": null,
                "is_active": true,
                "is_featured": 0,
                "is_friend_group": 0,
                "receipt_sending_option": 1,
                "created_at": "2024-05-21T08:30:09.000000Z",
                "updated_at": "2024-06-27T12:33:14.000000Z",
                "deleted_at": null,
                "in_line_address": "123, Street, Abc XYZ, Co. Leitrim, Connaught, Ireland",
                "webhook_tokens": []
            }
        },
        "network": {
            "uuid": "f0f04075-45fc-4b60-9dfe-cb99bd800213",
            "activate_membership_required": 1,
            "description": "The first",
            "max_donation_volume_kg": 100,
            "donation_interval": 30,
            "requirements": "Just a kind heart",
            "default_co2e": 3.2,
            "default_meals_per_kg": 2.2,
            "silence_collection_window_invitation_notifications": null,
            "silence_network_membership_notifications": null,
            "created_at": "2024-05-21T08:27:56.000000Z",
            "updated_at": "2024-06-12T13:38:46.000000Z",
            "deleted_at": null,
            "is_public": false
        },
        "responses": [
            {
                "uuid": "cb2ef332-df0c-46ce-8861-0723b418e12d",
                "third_party_collector_branches_id": null,
                "third_party_assignment_user_id": null,
                "type": "P",
                "token": null,
                "response_at": null,
                "created_at": "2024-07-01 09:45:13",
                "updated_at": "2024-07-01 09:45:13",
                "deleted_at": null,
                "tsm_current_state": "Pending",
                "uncollected_reason": null,
                "accepted_at": null,
                "declined_at": null,
                "transferred_at": null,
                "not_transferred_at": null,
                "receipt_sent": 0,
                "tsm_current_state_label": "pending",
                "charity_branch": {
                    "uuid": "8afcb65a-8757-4efd-84d7-b20c13a058ce",
                    "name": "Uchenna Charity*",
                    "countries_id": 2963597,
                    "provinces_id": 7521313,
                    "counties_id": 2962975,
                    "official_id": null,
                    "address_1": "123, Street",
                    "address_2": "",
                    "city_town": "Abc",
                    "post_code": "XYZ",
                    "phone": "+2348039893299",
                    "latitude": "1.10345300",
                    "longitude": "2.10345300",
                    "timezone": "Europe/Dublin",
                    "locale": "en_IE",
                    "is_active": 1,
                    "is_foodboard_allowed": 1,
                    "esign": 0,
                    "send_daily_donations_reminders": false,
                    "send_instant_donations_reminders": false,
                    "offers_token_counter": 0,
                    "prepare_donation_option": "l_product_and_category",
                    "default_categories_only": 0,
                    "approved_products_only": 0,
                    "geofilter_unit_of_distance": "l_kilometers",
                    "collection_delivery": null,
                    "created_at": "2024-05-21T08:32:11.000000Z",
                    "updated_at": "2024-05-31T10:37:55.000000Z",
                    "deleted_at": null,
                    "category_min": 0,
                    "category_max": 100,
                    "donation_window_cutoff": 12,
                    "transfer_window_cutoff": 24,
                    "max_collection_window": 1,
                    "in_line_address": "123, Street, Abc XYZ, Co. Leitrim, Connaught, Ireland",
                    "local_admins": [
                        {
                            "uuid": "a83296e3-f5dd-4b9a-a747-023d55dd5764",
                            "first_name": "Uchenna",
                            "surname": "Ibekwe",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "availability": null,
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2024-05-21T08:32:11.000000Z",
                            "updated_at": "2024-05-31T16:02:30.000000Z",
                            "pickup_locations": null,
                            "mode_of_transport": null,
                            "full_name": "Uchenna Ibekwe",
                            "role": "admin",
                            "onesignal_player_ids": [
                                {
                                    "player_id": "032593af-5e7a-4033-a02c-e65b8b348683",
                                    "created_at": "2024-05-21T11:29:43.000000Z",
                                    "updated_at": "2024-05-21T11:29:43.000000Z"
                                },
                                {
                                    "player_id": "145e02f0-af34-4813-af17-a3b0f3d30376",
                                    "created_at": "2024-05-28T13:19:29.000000Z",
                                    "updated_at": "2024-05-28T13:19:29.000000Z"
                                },
                                {
                                    "player_id": "974bde18-f357-4190-9e2f-ec58de55de7d",
                                    "created_at": "2024-06-06T13:38:10.000000Z",
                                    "updated_at": "2024-06-06T13:38:10.000000Z"
                                }
                            ],
                            "organisation": {
                                "uuid": "dbcfc3de-4bb1-408b-9f4c-13cfe3c3fc0e",
                                "name": "Uchenna Charity",
                                "countries_id": 2963597,
                                "provinces_id": 7521313,
                                "counties_id": 2962975,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "vip_window": 30,
                                "is_vip_window_active": 1,
                                "phone": "+2348039893299",
                                "address_1": "123, Street",
                                "address_2": "",
                                "city_town": "Abc",
                                "post_code": "XYZ",
                                "latitude": "1.00345300",
                                "longitude": "2.40345300",
                                "description": null,
                                "food_safety_info": null,
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2024-05-21T08:32:11.000000Z",
                                "updated_at": "2024-05-21T08:33:32.000000Z",
                                "deleted_at": null,
                                "in_line_address": "123, Street, Abc XYZ, Co. Leitrim, Connaught, Ireland"
                            }
                        }
                    ]
                },
                "items": [
                    {
                        "is_available": 1,
                        "created_at": "2024-07-01T09:45:13.000000Z",
                        "updated_at": "2024-07-01T09:45:13.000000Z",
                        "deleted_at": null
                    },
                    {
                        "is_available": 1,
                        "created_at": "2024-07-01T09:45:13.000000Z",
                        "updated_at": "2024-07-01T09:45:13.000000Z",
                        "deleted_at": null
                    }
                ]
            },
            {
                "uuid": "83f1b56b-1bc3-4323-9609-4127a23e30c0",
                "third_party_collector_branches_id": null,
                "third_party_assignment_user_id": null,
                "type": "P",
                "token": null,
                "response_at": null,
                "created_at": "2024-07-01 09:45:13",
                "updated_at": "2024-07-01 09:45:13",
                "deleted_at": null,
                "tsm_current_state": "Pending",
                "uncollected_reason": null,
                "accepted_at": null,
                "declined_at": null,
                "transferred_at": null,
                "not_transferred_at": null,
                "receipt_sent": 0,
                "tsm_current_state_label": "pending",
                "charity_branch": {
                    "uuid": "b3d15e9f-1686-4d28-b8cc-930772d9f354",
                    "name": "Uchenna Charity 2*",
                    "countries_id": 2963597,
                    "provinces_id": 7521313,
                    "counties_id": 2962975,
                    "official_id": null,
                    "address_1": "1234, Xyz",
                    "address_2": "",
                    "city_town": "Here",
                    "post_code": "12345",
                    "phone": "+2347039892333",
                    "latitude": "1.00345300",
                    "longitude": "2.40345300",
                    "timezone": "Europe/Dublin",
                    "locale": "en_IE",
                    "is_active": 1,
                    "is_foodboard_allowed": 1,
                    "esign": 0,
                    "send_daily_donations_reminders": false,
                    "send_instant_donations_reminders": false,
                    "offers_token_counter": 0,
                    "prepare_donation_option": "l_product_and_category",
                    "default_categories_only": 0,
                    "approved_products_only": 0,
                    "geofilter_unit_of_distance": "l_kilometers",
                    "collection_delivery": null,
                    "created_at": "2024-06-12T13:42:52.000000Z",
                    "updated_at": "2024-06-12T13:44:49.000000Z",
                    "deleted_at": null,
                    "category_min": 0,
                    "category_max": 100,
                    "donation_window_cutoff": 12,
                    "transfer_window_cutoff": 24,
                    "max_collection_window": 1,
                    "in_line_address": "1234, Xyz, Here 12345, Co. Leitrim, Connaught, Ireland",
                    "local_admins": [
                        {
                            "uuid": "7ae1afcf-664b-419e-865f-7e40a5552ea7",
                            "first_name": "Uchenna",
                            "surname": "Ibekwe",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "availability": null,
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2024-06-12T13:42:53.000000Z",
                            "updated_at": "2024-06-12T13:44:09.000000Z",
                            "pickup_locations": null,
                            "mode_of_transport": null,
                            "full_name": "Uchenna Ibekwe",
                            "role": "admin",
                            "onesignal_player_ids": [],
                            "organisation": {
                                "uuid": "ed1d09bd-78b5-460c-9309-3bf82a1a142a",
                                "name": "Uchenna Charity 2",
                                "countries_id": 2963597,
                                "provinces_id": 7521313,
                                "counties_id": 2962975,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "vip_window": 30,
                                "is_vip_window_active": 1,
                                "phone": "+2347039892333",
                                "address_1": "1234, Xyz",
                                "address_2": "",
                                "city_town": "Here",
                                "post_code": "12345",
                                "latitude": "1.00345300",
                                "longitude": "2.40345300",
                                "description": null,
                                "food_safety_info": null,
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2024-06-12T13:42:52.000000Z",
                                "updated_at": "2024-06-12T13:43:42.000000Z",
                                "deleted_at": null,
                                "in_line_address": "1234, Xyz, Here 12345, Co. Leitrim, Connaught, Ireland"
                            }
                        }
                    ]
                },
                "items": [
                    {
                        "is_available": 1,
                        "created_at": "2024-07-01T09:45:13.000000Z",
                        "updated_at": "2024-07-01T09:45:13.000000Z",
                        "deleted_at": null
                    }
                ]
            }
        ],
        "collection_windows": [
            {
                "uuid": "8c9be6d3-4079-47d0-8177-674d9bb455ba",
                "transfer_types_name": "Collection",
                "transfer_types_label": "l_donation_transfer_type_collection",
                "max_collectors": 1,
                "collection_window_starts_at": "2024-07-01 07:30:19",
                "collection_window_ends_at": "2024-07-02 07:15:19",
                "charity_branches": {
                    "primary": 935,
                    "waitlist": [
                        933,
                        937
                    ]
                },
                "is_custom": 1,
                "created_at": "2024-07-01 07:23:19",
                "updated_at": "2024-07-01 07:23:19",
                "charity_branches_details": {
                    "primary": {
                        "uuid": "8afcb65a-8757-4efd-84d7-b20c13a058ce",
                        "name": "Uchenna Charity*",
                        "countries_id": 2963597,
                        "provinces_id": 7521313,
                        "counties_id": 2962975,
                        "official_id": null,
                        "address_1": "123, Street",
                        "address_2": "",
                        "city_town": "Abc",
                        "post_code": "XYZ",
                        "phone": "+2348039893299",
                        "latitude": "1.10345300",
                        "longitude": "2.10345300",
                        "timezone": "Europe/Dublin",
                        "locale": "en_IE",
                        "is_active": 1,
                        "is_foodboard_allowed": 1,
                        "esign": 0,
                        "send_daily_donations_reminders": false,
                        "send_instant_donations_reminders": false,
                        "offers_token_counter": 0,
                        "prepare_donation_option": "l_product_and_category",
                        "default_categories_only": 0,
                        "approved_products_only": 0,
                        "geofilter_unit_of_distance": "l_kilometers",
                        "collection_delivery": null,
                        "created_at": "2024-05-21T08:32:11.000000Z",
                        "updated_at": "2024-05-31T10:37:55.000000Z",
                        "deleted_at": null,
                        "category_min": 0,
                        "category_max": 100,
                        "donation_window_cutoff": 12,
                        "transfer_window_cutoff": 24,
                        "max_collection_window": 1,
                        "in_line_address": "123, Street, Abc XYZ, Co. Leitrim, Connaught, Ireland"
                    },
                    "waitlist": [
                        {
                            "uuid": "94ed878e-8125-4fd8-8386-a29c98648bf7",
                            "name": "Uchenna FB*",
                            "countries_id": 2963597,
                            "provinces_id": 7521313,
                            "counties_id": 2962975,
                            "official_id": null,
                            "address_1": "123, Street",
                            "address_2": "",
                            "city_town": "Abc",
                            "post_code": "XYZ",
                            "phone": "+2347039883288",
                            "latitude": "1.00345300",
                            "longitude": "2.40345300",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-05-21T08:27:56.000000Z",
                            "updated_at": "2024-06-06T12:47:43.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": null,
                            "in_line_address": "123, Street, Abc XYZ, Co. Leitrim, Connaught, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "8618f912-ef5d-42ee-b3e7-259718a5ce63",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                },
                                {
                                    "uuid": "da82e576-fbb0-4dd7-83e8-187e52c5aee2",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                },
                                {
                                    "uuid": "e7bb83cb-54e6-4624-8ff4-c4a2325ad882",
                                    "name": "l_frozen",
                                    "label": "l_frozen",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                },
                                {
                                    "uuid": "dd5d4a19-b102-40b9-a390-a4e134dd4f9f",
                                    "name": "l_hot",
                                    "label": "l_hot",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                }
                            ]
                        },
                        {
                            "uuid": "b3d15e9f-1686-4d28-b8cc-930772d9f354",
                            "name": "Uchenna Charity 2*",
                            "countries_id": 2963597,
                            "provinces_id": 7521313,
                            "counties_id": 2962975,
                            "official_id": null,
                            "address_1": "1234, Xyz",
                            "address_2": "",
                            "city_town": "Here",
                            "post_code": "12345",
                            "phone": "+2347039892333",
                            "latitude": "1.00345300",
                            "longitude": "2.40345300",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-06-12T13:42:52.000000Z",
                            "updated_at": "2024-06-12T13:44:49.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": null,
                            "in_line_address": "1234, Xyz, Here 12345, Co. Leitrim, Connaught, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "8618f912-ef5d-42ee-b3e7-259718a5ce63",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                },
                                {
                                    "uuid": "da82e576-fbb0-4dd7-83e8-187e52c5aee2",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                },
                                {
                                    "uuid": "e7bb83cb-54e6-4624-8ff4-c4a2325ad882",
                                    "name": "l_frozen",
                                    "label": "l_frozen",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                },
                                {
                                    "uuid": "dd5d4a19-b102-40b9-a390-a4e134dd4f9f",
                                    "name": "l_hot",
                                    "label": "l_hot",
                                    "is_active": 1,
                                    "created_at": "2024-05-18T17:19:46.000000Z",
                                    "updated_at": "2024-05-18T17:19:46.000000Z"
                                }
                            ]
                        }
                    ]
                },
                "charity_branches_uuid": {
                    "primary": "8afcb65a-8757-4efd-84d7-b20c13a058ce",
                    "waitlist": [
                        "94ed878e-8125-4fd8-8386-a29c98648bf7",
                        "b3d15e9f-1686-4d28-b8cc-930772d9f354"
                    ]
                }
            }
        ]
    },
    "frontendRedirect": false,
    "callTime": 1.1788749694824219,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

POST api/foodnet_admin/donations/{donation_uuid}/split

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

URL Parameters

donation_uuid   string  optional  

uuid required The UUID of the donation. Example: d9b49c91-0a23-4c50-acee-9636df6d8c94

Body Parameters

splits   string[]   

An array of splits, each containing a charity and its items.

*   object  optional  
charity_uuid   uuid   

The UUID of the charity. Example: 8afcb65a-8757-4efd-84d7-b20c13a058ce

items   string[]   

An array of items with their categories and quantities.

*   object  optional  
category_uuid   uuid   

The UUID of the category. Example: a9fcb65a-8757-4efd-84d7-b20c13a058ec

quantity   integer   

The quantity of the item. Example: 40

Get Food Board Offers

requires authentication

This endpoint retrieves food board offers associated with the current users branch based on whether Geofiltering is enabled or not For the field and search arrays multiple values can be defined according the backend requirements

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodboard/my_foodnets_donations?order%5Bfield%5D%5B%5D=donations.created_at&order%5Bdirection%5D%5B%5D=desc&parser=autocomplete&field%5B%5D=donor.county&search%5B%5D=2636561&max_distance=25&start=0&length=20&search%5Bvalue%5D=architecto&columns%5Bname%5D%5Bsearchable%5D=1&columns%5Bname%5D%5Bdata%5D=name&columns%5Bname%5D%5Bsearch%5D%5Bvalue%5D=%27%27&columns%5BminDate%5D%5Bsearchable%5D=1&columns%5BminDate%5D%5Bdata%5D=minDate&columns%5BminDate%5D%5Bsearch%5D%5Bvalue%5D=%27%27&columns%5BmaxDate%5D%5Bsearchable%5D=1&columns%5BmaxDate%5D%5Bdata%5D=maxDate&columns%5BmaxDate%5D%5Bsearch%5D%5Bvalue%5D=architecto" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodboard/my_foodnets_donations"
);

const params = {
    "order[field][]": "donations.created_at",
    "order[direction][]": "desc",
    "parser": "autocomplete",
    "field[]": "donor.county",
    "search[]": "2636561",
    "max_distance": "25",
    "start": "0",
    "length": "20",
    "search[value]": "architecto",
    "columns[name][searchable]": "1",
    "columns[name][data]": "name",
    "columns[name][search][value]": "''",
    "columns[minDate][searchable]": "1",
    "columns[minDate][data]": "minDate",
    "columns[minDate][search][value]": "''",
    "columns[maxDate][searchable]": "1",
    "columns[maxDate][data]": "maxDate",
    "columns[maxDate][search][value]": "architecto",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodboard/my_foodnets_donations';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
        'query' => [
            'order[field][]' => 'donations.created_at',
            'order[direction][]' => 'desc',
            'parser' => 'autocomplete',
            'field[]' => 'donor.county',
            'search[]' => '2636561',
            'max_distance' => '25',
            'start' => '0',
            'length' => '20',
            'search[value]' => 'architecto',
            'columns[name][searchable]' => '1',
            'columns[name][data]' => 'name',
            'columns[name][search][value]' => '''',
            'columns[minDate][searchable]' => '1',
            'columns[minDate][data]' => 'minDate',
            'columns[minDate][search][value]' => '''',
            'columns[maxDate][searchable]' => '1',
            'columns[maxDate][data]' => 'maxDate',
            'columns[maxDate][search][value]' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodboard/my_foodnets_donations'
params = {
  'order[field][]': 'donations.created_at',
  'order[direction][]': 'desc',
  'parser': 'autocomplete',
  'field[]': 'donor.county',
  'search[]': '2636561',
  'max_distance': '25',
  'start': '0',
  'length': '20',
  'search[value]': 'architecto',
  'columns[name][searchable]': '1',
  'columns[name][data]': 'name',
  'columns[name][search][value]': '''',
  'columns[minDate][searchable]': '1',
  'columns[minDate][data]': 'minDate',
  'columns[minDate][search][value]': '''',
  'columns[maxDate][searchable]': '1',
  'columns[maxDate][data]': 'maxDate',
  'columns[maxDate][search][value]': 'architecto',
}
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "data": [
            {
                "uuid": "706e92e0-10c6-499c-bb17-890c8e9e5cfb",
                "networks_id": 65,
                "branches_id": 35375,
                "external_id": "9aae2923-ef86-4697-9362-1fc0b3aa2eb8",
                "organisations_id": 97,
                "is_max_collectors_reached": null,
                "received_at": "2023-11-23 08:27:32",
                "created_at": "2023-11-23 08:27:32",
                "updated_at": "2023-11-23 08:27:46",
                "deleted_at": null,
                "accepted_by": "2023-11-23 09:15:09",
                "collect_by": null,
                "primary_available_at": "2023-11-23 08:27:32",
                "waitlist_available_at": null,
                "foodboard_available_at": "2023-11-23 08:27:32",
                "donation_window_start_at": "2023-11-23 08:27:32",
                "donation_window_end_at": "2023-11-23 09:15:09",
                "tsm_current_state": "Offering",
                "require_friends": 0,
                "rag_status": 0,
                "all_items_taken": 0,
                "esign": 0,
                "donor_name": "Dev testing branch 1",
                "donor_logo": null,
                "ambient_total": 27,
                "chilled_total": 0.5,
                "frozen_total": 0,
                "hot_total": 0,
                "total": 27.5,
                "charity_uuid": "",
                "foodnet_name": "DEV TESTING FOODBANK",
                "foodnet_logo": null,
                "style": {
                    "color": "outline-green",
                    "icon": "fas fa-play"
                },
                "transitions": [],
                "tsm_current_state_label": "offering",
                "donor": {
                    "uuid": "06f5d981-f826-4798-8145-98c066f8f254",
                    "name": "Dev testing branch 1",
                    "countries_id": 2963597,
                    "provinces_id": 7521316,
                    "counties_id": 11353077,
                    "official_id": "DEV:1234",
                    "address_1": "4 Downshire Close",
                    "address_2": "Downshire Road",
                    "city_town": "Newry",
                    "post_code": "BT34 1FD",
                    "phone": "+442830252324",
                    "latitude": "54.18228360",
                    "longitude": "-6.33244040",
                    "timezone": "Europe/Dublin",
                    "locale": "en_IE",
                    "is_active": 1,
                    "is_foodboard_allowed": 1,
                    "esign": 0,
                    "send_daily_donations_reminders": false,
                    "send_instant_donations_reminders": false,
                    "offers_token_counter": 0,
                    "prepare_donation_option": "l_product_and_category",
                    "default_categories_only": 0,
                    "approved_products_only": 0,
                    "geofilter_unit_of_distance": "l_kilometers",
                    "created_at": "2023-11-23T08:18:59.000000Z",
                    "updated_at": "2023-11-23T08:18:59.000000Z",
                    "deleted_at": null,
                    "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Co. Down, Ulster, Ireland",
                    "local_admins": [
                        {
                            "uuid": "818d8070-6dbc-43d5-935f-22139728124f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487040",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:45.000000Z",
                            "updated_at": "2023-11-23T08:20:45.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "0f2019dd-4d6a-45f5-857e-2aa884d5f7ce",
                            "first_name": "Lawrence",
                            "surname": "Kibirige",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487049",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:46.000000Z",
                            "updated_at": "2023-11-23T08:22:08.000000Z",
                            "full_name": "Lawrence Kibirige",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "74835ede-07e4-401d-891c-23d97563976c",
                            "first_name": "Dayo",
                            "surname": "Aderemi",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487041",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:46.000000Z",
                            "updated_at": "2023-11-23T08:20:46.000000Z",
                            "full_name": "Dayo Aderemi",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "5e42dbeb-b62c-405a-a3df-e5f8b1957284",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487043",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:46.000000Z",
                            "updated_at": "2023-11-23T08:20:46.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "5d5601bd-86fb-4b8d-8716-67f5dd26c1da",
                            "first_name": "James",
                            "surname": "Clifford",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487042",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:46.000000Z",
                            "updated_at": "2023-11-23T08:20:46.000000Z",
                            "full_name": "James Clifford",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "9e8bc106-de6e-4af7-b128-17633d5cd6e4",
                            "first_name": "Brice",
                            "surname": "Mehelo",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487044",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:46.000000Z",
                            "updated_at": "2023-11-23T08:20:46.000000Z",
                            "full_name": "Brice Mehelo",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "f56725c6-e712-4118-82f3-17d06546403d",
                            "first_name": "Uchenna",
                            "surname": "Ibekwe",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487048",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:46.000000Z",
                            "updated_at": "2023-11-23T08:20:46.000000Z",
                            "full_name": "Uchenna Ibekwe",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "266d8855-c6e2-4995-89e2-9394650df35d",
                            "first_name": "Devika",
                            "surname": "Kulkarni",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487050",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:46.000000Z",
                            "updated_at": "2023-11-23T08:20:46.000000Z",
                            "full_name": "Devika Kulkarni",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "c9e11ef9-b222-4555-bbdd-ad1d816f91f8",
                            "first_name": "Suhail",
                            "surname": "Mirji",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487047",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:47.000000Z",
                            "updated_at": "2023-11-23T08:20:47.000000Z",
                            "full_name": "Suhail Mirji",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "5550a03c-7cbd-4126-aa77-8f3329025da5",
                            "first_name": "Keith",
                            "surname": "Phelan",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487045",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:47.000000Z",
                            "updated_at": "2023-11-23T08:20:47.000000Z",
                            "full_name": "Keith Phelan",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        },
                        {
                            "uuid": "bea38170-c7f4-4519-8397-e3a5c3e34569",
                            "first_name": "Ji",
                            "surname": "Zhang",
                            "language_code": "en_IE",
                            "mobile_number": "+353890487046",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2023-11-23T08:20:47.000000Z",
                            "updated_at": "2023-11-23T08:20:47.000000Z",
                            "full_name": "Ji Zhang",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "68ed35ac-cc4f-44d9-aa62-7eca66fef005",
                                "name": "DEV TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+442830252324",
                                "address_1": "4 Downshire Close",
                                "address_2": "Downshire Road",
                                "city_town": "Newry",
                                "post_code": "BT34 1FD",
                                "latitude": "54.18228360",
                                "longitude": "-6.33244040",
                                "description": "This is a test org used for MRT",
                                "food_safety_info": "This is a test org used for MRT",
                                "is_active": true,
                                "is_featured": 0,
                                "is_friend_group": 0,
                                "receipt_sending_option": 1,
                                "created_at": "2023-11-23T08:18:59.000000Z",
                                "updated_at": "2023-11-23T08:18:59.000000Z",
                                "deleted_at": null,
                                "in_line_address": "4 Downshire Close, Downshire Road, Newry BT34 1FD, Dublin City, Leinster, Ireland",
                                "county": {
                                    "id": 7778677,
                                    "countries_id": 2963597,
                                    "provinces_id": 7521314,
                                    "name": "Dublin City",
                                    "latitude": 53.35512,
                                    "longitude": -6.24922
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE"
                                }
                            }
                        }
                    ],
                    "county": {
                        "id": 11353077,
                        "countries_id": 2635167,
                        "provinces_id": 2641364,
                        "name": "Co. Down",
                        "latitude": 54.3277,
                        "longitude": -5.7158
                    },
                    "province": {
                        "id": 7521316,
                        "countries_id": 2963597,
                        "name": "Ulster",
                        "latitude": 54.92732,
                        "longitude": -7.9395
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE"
                    }
                },
                "network": {
                    "uuid": "0576c29f-4ca7-4af4-a972-ec7fc713fa66",
                    "activate_membership_required": 1,
                    "description": null,
                    "max_donation_volume_kg": null,
                    "donation_interval": 30,
                    "requirements": null,
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2023-11-23T08:18:59.000000Z",
                    "updated_at": "2023-11-23T08:18:59.000000Z",
                    "deleted_at": null,
                    "is_public": false
                }
            }
        ],
        "recordsFiltered": 1,
        "recordsTotal": 1
    },
    "frontendRedirect": false,
    "callTime": 0.05941891670227051,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (401):


{
    "status": "error",
    "data": [
        "e_unauthorized"
    ],
    "frontendRedirect": false,
    "callTime": 0.03663492202758789,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app",
    "debug_error_message": "Unauthenticated.",
    "debug_error_trace": [
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php",
            "line": 68,
            "function": "unauthenticated",
            "class": "Illuminate\\Auth\\Middleware\\Authenticate",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php",
            "line": 42,
            "function": "authenticate",
            "class": "Illuminate\\Auth\\Middleware\\Authenticate",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 180,
            "function": "handle",
            "class": "Illuminate\\Auth\\Middleware\\Authenticate",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 126,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 57,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/var/www/html/app/Http/Middleware/ApiRequestRateLimit.php",
            "line": 16,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 180,
            "function": "handle",
            "class": "App\\Http\\Middleware\\ApiRequestRateLimit",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 116,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 797,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 776,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        }
    ]
}
 

Request      

GET api/foodboard/my_foodnets_donations

Headers

AuthorizationToken      

Example: Bearer {token}

Query Parameters

order[field][]   string  optional  

The field used to order the search. Example: donations.created_at

order[direction][]   string  optional  

The value used during query ordering. Example: desc

parser   string  optional  

The value used in parsing the query. Example: autocomplete

field[]   string  optional  

The field denoting the search column. Only used when geo-filtering is disabled. Example: donor.county

search[]   string  optional  

The value denoting the search parameter for the above field. Example: 2636561

max_distance   integer  optional  

The value used for the max distance around the branch for geo filtering. Required if geo-filtering is enabled. Example: 25

start   integer  optional  

The value used as the start of the paginator. Example: 0

length   integer  optional  

The value used as the total returned by the paginator. Example: 20

search[value]   string  optional  

The search value. Example: architecto

columns[name][searchable]   boolean  optional  

The column name to indicate whether it's searchable. Example: true

columns[name][data]   string  optional  

The column name indicated above. Example: name

columns[name][search][value]   string  optional  

The value used to search the above column: Example: ''

columns[minDate][searchable]   boolean  optional  

The field used to indicate the search ability of the minDate column. Example: true

columns[minDate][data]   string  optional  

The column name used with the search ability. Example: minDate

columns[minDate][search][value]   string  optional  

The value used to search the minDate. Example: ''

columns[maxDate][searchable]   boolean  optional  

The field used to indicate the search ability of the maxDate column. Example: true

columns[maxDate][data]   string  optional  

The column name used with the search ability. Example: maxDate

columns[maxDate][search][value]   string  optional  

The value used to search the maxDate. Example '' Example: architecto

Endpoints

requires authentication

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/network_branches/deep_search" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/network_branches/deep_search"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/network_branches/deep_search';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/network_branches/deep_search'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (500):

Show headers
cache-control: no-cache, private
content-type: text/html; charset=UTF-8
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1994
 

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Server Error</title>

        <style>
            /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a{background-color:transparent}code{font-family:monospace,monospace;font-size:1em}[hidden]{display:none}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}a{color:inherit;text-decoration:inherit}code{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.bg-white{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-gray-100{--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247,250,252,var(--bg-opacity))}.border-gray-200{--border-opacity:1;border-color:#edf2f7;border-color:rgba(237,242,247,var(--border-opacity))}.border-gray-400{--border-opacity:1;border-color:#cbd5e0;border-color:rgba(203,213,224,var(--border-opacity))}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.flex{display:flex}.grid{display:grid}.hidden{display:none}.items-center{align-items:center}.justify-center{justify-content:center}.font-semibold{font-weight:600}.h-5{height:1.25rem}.h-8{height:2rem}.h-16{height:4rem}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.leading-7{line-height:1.75rem}.mx-auto{margin-left:auto;margin-right:auto}.ml-1{margin-left:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.ml-4{margin-left:1rem}.mt-8{margin-top:2rem}.ml-12{margin-left:3rem}.-mt-px{margin-top:-1px}.max-w-xl{max-width:36rem}.max-w-6xl{max-width:72rem}.min-h-screen{min-height:100vh}.overflow-hidden{overflow:hidden}.p-6{padding:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.pt-8{padding-top:2rem}.fixed{position:fixed}.relative{position:relative}.top-0{top:0}.right-0{right:0}.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06)}.text-center{text-align:center}.text-gray-200{--text-opacity:1;color:#edf2f7;color:rgba(237,242,247,var(--text-opacity))}.text-gray-300{--text-opacity:1;color:#e2e8f0;color:rgba(226,232,240,var(--text-opacity))}.text-gray-400{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}.text-gray-500{--text-opacity:1;color:#a0aec0;color:rgba(160,174,192,var(--text-opacity))}.text-gray-600{--text-opacity:1;color:#718096;color:rgba(113,128,150,var(--text-opacity))}.text-gray-700{--text-opacity:1;color:#4a5568;color:rgba(74,85,104,var(--text-opacity))}.text-gray-900{--text-opacity:1;color:#1a202c;color:rgba(26,32,44,var(--text-opacity))}.uppercase{text-transform:uppercase}.underline{text-decoration:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tracking-wider{letter-spacing:.05em}.w-5{width:1.25rem}.w-8{width:2rem}.w-auto{width:auto}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@-webkit-keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}@keyframes ping{0%{transform:scale(1);opacity:1}75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){.sm\:rounded-lg{border-radius:.5rem}.sm\:block{display:block}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:h-20{height:5rem}.sm\:ml-0{margin-left:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-0{padding-top:0}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}}@media (min-width:768px){.md\:border-t-0{border-top-width:0}.md\:border-l{border-left-width:1px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1024px){.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:bg-gray-800{--bg-opacity:1;background-color:#2d3748;background-color:rgba(45,55,72,var(--bg-opacity))}.dark\:bg-gray-900{--bg-opacity:1;background-color:#1a202c;background-color:rgba(26,32,44,var(--bg-opacity))}.dark\:border-gray-700{--border-opacity:1;border-color:#4a5568;border-color:rgba(74,85,104,var(--border-opacity))}.dark\:text-white{--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity))}.dark\:text-gray-400{--text-opacity:1;color:#cbd5e0;color:rgba(203,213,224,var(--text-opacity))}}
        </style>

        <style>
            body {
                font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            }
        </style>
    </head>
    <body class="antialiased">
        <div class="relative flex items-top justify-center min-h-screen bg-gray-100 dark:bg-gray-900 sm:items-center sm:pt-0">
            <div class="max-w-xl mx-auto sm:px-6 lg:px-8">
                <div class="flex items-center pt-8 sm:justify-start sm:pt-0">
                    <div class="px-4 text-lg text-gray-500 border-r border-gray-400 tracking-wider">
                        500                    </div>

                    <div class="ml-4 text-lg text-gray-500 uppercase tracking-wider">
                        Server Error                    </div>
                </div>
            </div>
        </div>
    </body>
</html>

 

Membership Schedule

Get Schedules

requires authentication

This endpoint retrieves max 250 schedules for a given member.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules?page=16" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules"
);

const params = {
    "page": "16",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
        'query' => [
            'page' => '16',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules'
params = {
  'page': '16',
}
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "donation_windows": [
            [
                {
                    "uuid": "0f8111d6-caf9-42fc-950d-57ec5f439595",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 1,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:42",
                    "updated_at": "2024-02-22 16:30:42",
                    "day_of_week_label": "l_monday_full"
                }
            ],
            [
                {
                    "uuid": "8e285138-dc4c-4db0-88d7-fbab618ae10e",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 2,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:42",
                    "updated_at": "2024-02-22 16:30:42",
                    "day_of_week_label": "l_tuesday_full"
                }
            ],
            [
                {
                    "uuid": "da307f7d-b92f-4777-b782-6572e1f307fe",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 3,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:42",
                    "updated_at": "2024-02-22 16:30:42",
                    "day_of_week_label": "l_wednesday_full"
                }
            ],
            [
                {
                    "uuid": "cc833d54-95f4-4691-a626-2b4d198dffe3",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 4,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:43",
                    "updated_at": "2024-02-22 16:30:43",
                    "day_of_week_label": "l_thursday_full"
                }
            ],
            [
                {
                    "uuid": "c83c021a-f068-42df-9a1b-2e5dcd3579f1",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 5,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:43",
                    "updated_at": "2024-02-22 16:30:43",
                    "day_of_week_label": "l_friday_full"
                }
            ],
            [],
            []
        ],
        "collection_windows": [
            [
                {
                    "uuid": "a38ce123-5054-40bd-8aec-1d15617813dd",
                    "transfer_types_id": 1,
                    "starts_at": "18:00:00",
                    "ends_at": "19:30:00",
                    "day_of_week_start": 1,
                    "day_of_week_end": 1,
                    "is_temporary_schedule": 0,
                    "temporary_schedule_starts_at": null,
                    "temporary_schedule_ends_at": null,
                    "created_at": "2024-02-22 16:30:42",
                    "updated_at": "2024-02-22 16:30:42",
                    "max_collectors": 1,
                    "day_of_week_start_label": "l_monday_full",
                    "day_of_week_end_label": "l_monday_full",
                    "difference_in_days": 0,
                    "primary_charity_branch": {
                        "uuid": "ecda107b-e326-44c2-9563-b3dfbeae2dd8",
                        "expires_at": null,
                        "starts_at_x_days_from_acceptance": null,
                        "starts_at_date": null,
                        "created_at": "2024-02-22T16:30:42.000000Z",
                        "updated_at": "2024-02-22T16:30:42.000000Z",
                        "tsm_current_state": "Activated",
                        "scheduled_activation_date": null,
                        "tsm_current_state_label": "activated",
                        "charity_branch": {
                            "uuid": "0b266d66-edc3-422c-83c8-265ad9efb92e",
                            "name": "Green Planet Charity IOFN 1.5",
                            "countries_id": 2963597,
                            "provinces_id": 7521316,
                            "counties_id": 2962567,
                            "official_id": "GPC:2225",
                            "address_1": "16 Oriel Park",
                            "address_2": "Scarnageeragh",
                            "city_town": "Emyvale",
                            "post_code": "H18 VW65",
                            "phone": "+35316764758",
                            "latitude": "54.34100180",
                            "longitude": "-6.97874490",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-02-22T16:29:01.000000Z",
                            "updated_at": "2024-02-22T16:29:01.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": "666836f161a9bb05eb5eb.png",
                            "network_storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ],
                            "in_line_address": "16 Oriel Park, Scarnageeragh, Emyvale H18 VW65, Co. Monaghan, Ulster, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ]
                        }
                    },
                    "invited_branch": [],
                    "collection_window_waitlist": []
                }
            ],
            [
                {
                    "uuid": "fdaedad6-8ce1-4a49-9494-c0eea23d7f88",
                    "transfer_types_id": 1,
                    "starts_at": "18:00:00",
                    "ends_at": "19:30:00",
                    "day_of_week_start": 2,
                    "day_of_week_end": 2,
                    "is_temporary_schedule": 0,
                    "temporary_schedule_starts_at": null,
                    "temporary_schedule_ends_at": null,
                    "created_at": "2024-02-22 16:30:42",
                    "updated_at": "2024-02-22 16:30:42",
                    "max_collectors": 1,
                    "day_of_week_start_label": "l_tuesday_full",
                    "day_of_week_end_label": "l_tuesday_full",
                    "difference_in_days": 0,
                    "primary_charity_branch": {
                        "uuid": "30940b04-0ef2-4800-b754-d5ba9d046c42",
                        "expires_at": null,
                        "starts_at_x_days_from_acceptance": null,
                        "starts_at_date": null,
                        "created_at": "2024-02-22T16:30:42.000000Z",
                        "updated_at": "2024-02-22T16:30:42.000000Z",
                        "tsm_current_state": "Activated",
                        "scheduled_activation_date": null,
                        "tsm_current_state_label": "activated",
                        "charity_branch": {
                            "uuid": "0b266d66-edc3-422c-83c8-265ad9efb92e",
                            "name": "Green Planet Charity IOFN 1.5",
                            "countries_id": 2963597,
                            "provinces_id": 7521316,
                            "counties_id": 2962567,
                            "official_id": "GPC:2225",
                            "address_1": "16 Oriel Park",
                            "address_2": "Scarnageeragh",
                            "city_town": "Emyvale",
                            "post_code": "H18 VW65",
                            "phone": "+35316764758",
                            "latitude": "54.34100180",
                            "longitude": "-6.97874490",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-02-22T16:29:01.000000Z",
                            "updated_at": "2024-02-22T16:29:01.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": "666836f161a9bb05eb5eb.png",
                            "network_storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ],
                            "in_line_address": "16 Oriel Park, Scarnageeragh, Emyvale H18 VW65, Co. Monaghan, Ulster, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ]
                        }
                    },
                    "invited_branch": [],
                    "collection_window_waitlist": []
                }
            ],
            [
                {
                    "uuid": "e29846d1-7dd1-4b43-836b-1ceed4575bcc",
                    "transfer_types_id": 1,
                    "starts_at": "18:00:00",
                    "ends_at": "19:30:00",
                    "day_of_week_start": 3,
                    "day_of_week_end": 3,
                    "is_temporary_schedule": 0,
                    "temporary_schedule_starts_at": null,
                    "temporary_schedule_ends_at": null,
                    "created_at": "2024-02-22 16:30:42",
                    "updated_at": "2024-02-22 16:30:43",
                    "max_collectors": 1,
                    "day_of_week_start_label": "l_wednesday_full",
                    "day_of_week_end_label": "l_wednesday_full",
                    "difference_in_days": 0,
                    "primary_charity_branch": {
                        "uuid": "328c865c-d636-49ad-920e-19a990015951",
                        "expires_at": null,
                        "starts_at_x_days_from_acceptance": null,
                        "starts_at_date": null,
                        "created_at": "2024-02-22T16:30:43.000000Z",
                        "updated_at": "2024-02-22T16:30:43.000000Z",
                        "tsm_current_state": "Activated",
                        "scheduled_activation_date": null,
                        "tsm_current_state_label": "activated",
                        "charity_branch": {
                            "uuid": "0b266d66-edc3-422c-83c8-265ad9efb92e",
                            "name": "Green Planet Charity IOFN 1.5",
                            "countries_id": 2963597,
                            "provinces_id": 7521316,
                            "counties_id": 2962567,
                            "official_id": "GPC:2225",
                            "address_1": "16 Oriel Park",
                            "address_2": "Scarnageeragh",
                            "city_town": "Emyvale",
                            "post_code": "H18 VW65",
                            "phone": "+35316764758",
                            "latitude": "54.34100180",
                            "longitude": "-6.97874490",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-02-22T16:29:01.000000Z",
                            "updated_at": "2024-02-22T16:29:01.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": "666836f161a9bb05eb5eb.png",
                            "network_storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ],
                            "in_line_address": "16 Oriel Park, Scarnageeragh, Emyvale H18 VW65, Co. Monaghan, Ulster, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ]
                        }
                    },
                    "invited_branch": [],
                    "collection_window_waitlist": []
                }
            ],
            [
                {
                    "uuid": "0189f3ff-53ee-4e38-95e3-84ec7650bc0d",
                    "transfer_types_id": 1,
                    "starts_at": "18:00:00",
                    "ends_at": "19:30:00",
                    "day_of_week_start": 4,
                    "day_of_week_end": 4,
                    "is_temporary_schedule": 0,
                    "temporary_schedule_starts_at": null,
                    "temporary_schedule_ends_at": null,
                    "created_at": "2024-02-22 16:30:43",
                    "updated_at": "2024-02-22 16:30:43",
                    "max_collectors": 1,
                    "day_of_week_start_label": "l_thursday_full",
                    "day_of_week_end_label": "l_thursday_full",
                    "difference_in_days": 0,
                    "primary_charity_branch": {
                        "uuid": "e0100f80-30cc-4e47-b0cb-6c7ed5f0f35f",
                        "expires_at": null,
                        "starts_at_x_days_from_acceptance": null,
                        "starts_at_date": null,
                        "created_at": "2024-02-22T16:30:43.000000Z",
                        "updated_at": "2024-02-22T16:30:43.000000Z",
                        "tsm_current_state": "Activated",
                        "scheduled_activation_date": null,
                        "tsm_current_state_label": "activated",
                        "charity_branch": {
                            "uuid": "0b266d66-edc3-422c-83c8-265ad9efb92e",
                            "name": "Green Planet Charity IOFN 1.5",
                            "countries_id": 2963597,
                            "provinces_id": 7521316,
                            "counties_id": 2962567,
                            "official_id": "GPC:2225",
                            "address_1": "16 Oriel Park",
                            "address_2": "Scarnageeragh",
                            "city_town": "Emyvale",
                            "post_code": "H18 VW65",
                            "phone": "+35316764758",
                            "latitude": "54.34100180",
                            "longitude": "-6.97874490",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-02-22T16:29:01.000000Z",
                            "updated_at": "2024-02-22T16:29:01.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": "666836f161a9bb05eb5eb.png",
                            "network_storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ],
                            "in_line_address": "16 Oriel Park, Scarnageeragh, Emyvale H18 VW65, Co. Monaghan, Ulster, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ]
                        }
                    },
                    "invited_branch": [],
                    "collection_window_waitlist": []
                }
            ],
            [
                {
                    "uuid": "c833e1e3-2a31-4537-945d-55d06cea36ed",
                    "transfer_types_id": 1,
                    "starts_at": "18:00:00",
                    "ends_at": "19:30:00",
                    "day_of_week_start": 5,
                    "day_of_week_end": 5,
                    "is_temporary_schedule": 0,
                    "temporary_schedule_starts_at": null,
                    "temporary_schedule_ends_at": null,
                    "created_at": "2024-02-22 16:30:43",
                    "updated_at": "2024-02-22 16:30:43",
                    "max_collectors": 1,
                    "day_of_week_start_label": "l_friday_full",
                    "day_of_week_end_label": "l_friday_full",
                    "difference_in_days": 0,
                    "primary_charity_branch": {
                        "uuid": "34add23c-dda0-4991-b1a9-da1b027f1e18",
                        "expires_at": null,
                        "starts_at_x_days_from_acceptance": null,
                        "starts_at_date": null,
                        "created_at": "2024-02-22T16:30:43.000000Z",
                        "updated_at": "2024-02-22T16:30:43.000000Z",
                        "tsm_current_state": "Activated",
                        "scheduled_activation_date": null,
                        "tsm_current_state_label": "activated",
                        "charity_branch": {
                            "uuid": "0b266d66-edc3-422c-83c8-265ad9efb92e",
                            "name": "Green Planet Charity IOFN 1.5",
                            "countries_id": 2963597,
                            "provinces_id": 7521316,
                            "counties_id": 2962567,
                            "official_id": "GPC:2225",
                            "address_1": "16 Oriel Park",
                            "address_2": "Scarnageeragh",
                            "city_town": "Emyvale",
                            "post_code": "H18 VW65",
                            "phone": "+35316764758",
                            "latitude": "54.34100180",
                            "longitude": "-6.97874490",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-02-22T16:29:01.000000Z",
                            "updated_at": "2024-02-22T16:29:01.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": "666836f161a9bb05eb5eb.png",
                            "network_storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ],
                            "in_line_address": "16 Oriel Park, Scarnageeragh, Emyvale H18 VW65, Co. Monaghan, Ulster, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ]
                        }
                    },
                    "invited_branch": [],
                    "collection_window_waitlist": []
                }
            ],
            [],
            [
                {
                    "uuid": "1a84839c-99c9-4268-afec-6a179f4cc13d",
                    "transfer_types_id": 1,
                    "starts_at": "18:00:00",
                    "ends_at": "19:30:00",
                    "day_of_week_start": 7,
                    "day_of_week_end": 7,
                    "is_temporary_schedule": 0,
                    "temporary_schedule_starts_at": null,
                    "temporary_schedule_ends_at": null,
                    "created_at": "2024-02-22 16:30:43",
                    "updated_at": "2024-02-22 16:30:43",
                    "max_collectors": 1,
                    "day_of_week_start_label": "l_sunday_full",
                    "day_of_week_end_label": "l_sunday_full",
                    "difference_in_days": 0,
                    "primary_charity_branch": {
                        "uuid": "082386b2-d912-43e8-bccc-f6cb6b4fc539",
                        "expires_at": null,
                        "starts_at_x_days_from_acceptance": null,
                        "starts_at_date": null,
                        "created_at": "2024-02-22T16:30:43.000000Z",
                        "updated_at": "2024-02-22T16:30:43.000000Z",
                        "tsm_current_state": "Activated",
                        "scheduled_activation_date": null,
                        "tsm_current_state_label": "activated",
                        "charity_branch": {
                            "uuid": "0b266d66-edc3-422c-83c8-265ad9efb92e",
                            "name": "Green Planet Charity IOFN 1.5",
                            "countries_id": 2963597,
                            "provinces_id": 7521316,
                            "counties_id": 2962567,
                            "official_id": "GPC:2225",
                            "address_1": "16 Oriel Park",
                            "address_2": "Scarnageeragh",
                            "city_town": "Emyvale",
                            "post_code": "H18 VW65",
                            "phone": "+35316764758",
                            "latitude": "54.34100180",
                            "longitude": "-6.97874490",
                            "timezone": "Europe/Dublin",
                            "locale": "en_IE",
                            "is_active": 1,
                            "is_foodboard_allowed": 1,
                            "esign": 0,
                            "send_daily_donations_reminders": false,
                            "send_instant_donations_reminders": false,
                            "offers_token_counter": 0,
                            "prepare_donation_option": "l_product_and_category",
                            "default_categories_only": 0,
                            "approved_products_only": 0,
                            "geofilter_unit_of_distance": "l_kilometers",
                            "collection_delivery": null,
                            "created_at": "2024-02-22T16:29:01.000000Z",
                            "updated_at": "2024-02-22T16:29:01.000000Z",
                            "deleted_at": null,
                            "category_min": 0,
                            "category_max": 100,
                            "donation_window_cutoff": 12,
                            "transfer_window_cutoff": 24,
                            "max_collection_window": 1,
                            "organisation_logo": "666836f161a9bb05eb5eb.png",
                            "network_storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ],
                            "in_line_address": "16 Oriel Park, Scarnageeragh, Emyvale H18 VW65, Co. Monaghan, Ulster, Ireland",
                            "storage_types": [
                                {
                                    "uuid": "9df804bd-26c9-4b0b-8d33-5a88b58c8a9d",
                                    "name": "l_ambient",
                                    "label": "l_ambient",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                },
                                {
                                    "uuid": "6b70c833-2794-4252-b095-fb58a330fbee",
                                    "name": "l_chilled",
                                    "label": "l_chilled",
                                    "is_active": 1,
                                    "created_at": "2021-03-15T00:26:32.000000Z",
                                    "updated_at": "2021-03-15T00:26:32.000000Z"
                                }
                            ]
                        }
                    },
                    "invited_branch": [],
                    "collection_window_waitlist": []
                }
            ]
        ],
        "branch_closures": [
            [],
            [],
            [],
            [],
            [],
            [],
            []
        ]
    },
    "frontendRedirect": false,
    "callTime": 0.6122519969940186,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/schedules

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the network membership to get schedules for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Query Parameters

page   integer  optional  

The page number to return Example: 16

Network Membership

responseFile 200 api_docs_responses/network_memberships/network_membership_index_200.json

Get All Network Memberships

requires authentication

This endpoint retrieves all of a user's network memberships.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1991
 

{
    "status": "success",
    "data": {
        "data": [
            {
                "name": "FoodCloud branch 1",
                "collection_delivery": null,
                "tsm_current_state": "Activated",
                "uuid": "3ab0070b-f817-416a-b3ea-e06dc5c98e68",
                "created_at": "2021-03-15T00:26:32.000000Z",
                "updated_at": "2024-07-02T14:45:13.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "fbaf899a-c360-4dee-8618-a0bfefd8bace",
                "foodnet": "Deprecated",
                "is_removable": 0,
                "transitions": {
                    "pause": {
                        "color": "yellow",
                        "icon": "fas fa-pause-circle",
                        "name": "Pause",
                        "context": "foodnet_admin"
                    },
                    "expel": {
                        "color": "red",
                        "icon": "fas fa-trash",
                        "name": "Expel",
                        "context": "foodnet_admin"
                    },
                    "suspend": {
                        "color": "black",
                        "icon": "fas fa-pause-circle",
                        "name": "Suspend",
                        "context": "foodnet_admin"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "75449cc2-e106-40f0-845e-fbd06408be7b",
                    "activate_membership_required": 0,
                    "description": "A World Where No Good Food Goes To Waste",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "A World Where No Good Food Goes To Waste",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": 1,
                    "silence_network_membership_notifications": null,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-03-15T16:07:22.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                        "name": "FoodCloud",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7288565,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "vip_window": 30,
                        "is_vip_window_active": 1,
                        "phone": "+35315313478",
                        "address_1": "Unit 8 Broomhill Road",
                        "address_2": "",
                        "city_town": "South Dublin",
                        "post_code": "D24 CD32",
                        "latitude": "53.29635950",
                        "longitude": "-6.35568570",
                        "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                        "food_safety_info": null,
                        "is_active": true,
                        "is_featured": 1,
                        "is_friend_group": 0,
                        "receipt_sending_option": 1,
                        "created_at": "2021-03-15T00:26:30.000000Z",
                        "updated_at": "2024-01-24T14:11:16.000000Z",
                        "deleted_at": null,
                        "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                    }
                },
                "branch": {
                    "uuid": "fbaf899a-c360-4dee-8618-a0bfefd8bace",
                    "name": "FoodCloud branch 1",
                    "countries_id": 2963597,
                    "provinces_id": 7521313,
                    "counties_id": 2962666,
                    "official_id": "FC:880",
                    "address_1": "Pearse St,",
                    "address_2": "",
                    "city_town": "Ballina",
                    "post_code": "F26 A3C3",
                    "phone": "+353832226595",
                    "latitude": "54.11393380",
                    "longitude": "-9.15438930",
                    "timezone": "Europe/Dublin",
                    "locale": "en_IE",
                    "is_active": 1,
                    "is_foodboard_allowed": 1,
                    "esign": 0,
                    "send_daily_donations_reminders": false,
                    "send_instant_donations_reminders": false,
                    "offers_token_counter": 0,
                    "prepare_donation_option": "l_product_and_category",
                    "default_categories_only": 0,
                    "approved_products_only": 0,
                    "geofilter_unit_of_distance": "l_kilometers",
                    "collection_delivery": null,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-05-20T12:26:48.000000Z",
                    "deleted_at": null,
                    "category_min": 0,
                    "category_max": 100,
                    "donation_window_cutoff": 12,
                    "transfer_window_cutoff": 24,
                    "max_collection_window": 1,
                    "in_line_address": "Pearse St,, Ballina F26 A3C3, Co. Mayo, Connaught, Ireland",
                    "organisation": {
                        "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                        "name": "FoodCloud",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7288565,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "vip_window": 30,
                        "is_vip_window_active": 1,
                        "phone": "+35315313478",
                        "address_1": "Unit 8 Broomhill Road",
                        "address_2": "",
                        "city_town": "South Dublin",
                        "post_code": "D24 CD32",
                        "latitude": "53.29635950",
                        "longitude": "-6.35568570",
                        "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                        "food_safety_info": null,
                        "is_active": true,
                        "is_featured": 1,
                        "is_friend_group": 0,
                        "receipt_sending_option": 1,
                        "created_at": "2021-03-15T00:26:30.000000Z",
                        "updated_at": "2024-01-24T14:11:16.000000Z",
                        "deleted_at": null,
                        "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                    }
                }
            }
        ],
        "recordsFiltered": 1,
        "recordsTotal": 1
    },
    "frontendRedirect": false,
    "callTime": 0.019076108932495117,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships

Headers

AuthorizationToken      

Example: Bearer {token}

Get Network Membership

requires authentication

This endpoint retrieve details of the specified Network Membership.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "uuid": "89eb6d21-5725-4ab9-9073-53299b050d09",
        "tsm_current_state": "Activated",
        "created_at": "2022-07-27T13:30:59.000000Z",
        "updated_at": "2022-08-05T14:16:13.000000Z",
        "cancellation_requested": 0,
        "transitions": [],
        "status_style": {
            "color": "green",
            "icon": "far fa-play-circle"
        },
        "tsm_current_state_label": "activated",
        "network": {
            "uuid": "dcf25829-b101-4d07-b108-399989c8e87f",
            "description": null,
            "max_donation_volume_kg": null,
            "donation_interval": 30,
            "requirements": null,
            "default_co2e": 3.2,
            "default_meals_per_kg": 2.2,
            "silence_collection_window_invitation_notifications": null,
            "silence_network_membership_notifications": null,
            "created_at": "2022-07-27T13:30:58.000000Z",
            "updated_at": "2022-07-27T13:30:58.000000Z",
            "deleted_at": null,
            "is_public": false,
            "organisation": {
                "uuid": "c42c9046-3af9-4c16-bca3-768e0b7c1a5a",
                "name": "FoodCloud",
                "countries_id": 2963597,
                "provinces_id": null,
                "counties_id": null,
                "official_id": null,
                "accept_by_offset": 30,
                "phone": null,
                "address_1": null,
                "address_2": null,
                "city_town": null,
                "post_code": null,
                "latitude": "0.00000000",
                "longitude": "0.00000000",
                "description": null,
                "food_safety_info": null,
                "is_active": true,
                "is_friend_group": 0,
                "created_at": "2022-07-27T13:30:58.000000Z",
                "updated_at": "2022-07-27T13:30:58.000000Z",
                "deleted_at": null,
                "in_line_address": "Ireland",
                "county": null,
                "province": null,
                "country": {
                    "id": 2963597,
                    "name": "Ireland",
                    "latitude": 53,
                    "longitude": -8,
                    "code": "IE",
                    "created_at": "2022-07-27T13:30:57.000000Z",
                    "updated_at": "2022-07-27T13:30:57.000000Z",
                    "deleted_at": null
                }
            }
        },
        "branch": {
            "uuid": "108ea35b-0795-4db3-ac00-155a872e66d7",
            "name": "FoodCloud branch 1",
            "countries_id": 2963597,
            "provinces_id": null,
            "counties_id": 0,
            "official_id": null,
            "address_1": null,
            "address_2": null,
            "city_town": null,
            "post_code": null,
            "phone": null,
            "latitude": "0.00000000",
            "longitude": "0.00000000",
            "timezone": "Europe/Dublin",
            "locale": "en_IE",
            "is_active": 1,
            "is_foodboard_allowed": 1,
            "esign": 0,
            "send_daily_donations_reminders": false,
            "send_instant_donations_reminders": false,
            "offers_token_counter": 0,
            "created_at": "2022-07-27T13:30:58.000000Z",
            "updated_at": "2022-07-27T13:30:58.000000Z",
            "deleted_at": null,
            "in_line_address": "Ireland",
            "organisation": {
                "uuid": "c42c9046-3af9-4c16-bca3-768e0b7c1a5a",
                "name": "FoodCloud",
                "countries_id": 2963597,
                "provinces_id": null,
                "counties_id": null,
                "official_id": null,
                "accept_by_offset": 30,
                "phone": null,
                "address_1": null,
                "address_2": null,
                "city_town": null,
                "post_code": null,
                "latitude": "0.00000000",
                "longitude": "0.00000000",
                "description": null,
                "food_safety_info": null,
                "is_active": true,
                "is_friend_group": 0,
                "created_at": "2022-07-27T13:30:58.000000Z",
                "updated_at": "2022-07-27T13:30:58.000000Z",
                "deleted_at": null,
                "in_line_address": "Ireland",
                "organisation_type": {
                    "uuid": "12ff994e-46fe-40fe-8cb2-cec6ebf1a244",
                    "name": "FoodBank",
                    "created_at": "2022-07-27T13:30:58.000000Z",
                    "updated_at": "2022-07-27T13:30:58.000000Z"
                },
                "county": null,
                "province": null,
                "country": {
                    "id": 2963597,
                    "name": "Ireland",
                    "latitude": 53,
                    "longitude": -8,
                    "code": "IE",
                    "created_at": "2022-07-27T13:30:57.000000Z",
                    "updated_at": "2022-07-27T13:30:57.000000Z",
                    "deleted_at": null
                }
            },
            "country": {
                "id": 2963597,
                "name": "Ireland",
                "latitude": 53,
                "longitude": -8,
                "code": "IE",
                "created_at": "2022-07-27T13:30:57.000000Z",
                "updated_at": "2022-07-27T13:30:57.000000Z",
                "deleted_at": null
            },
            "province": null,
            "county": null,
            "local_users": [
                {
                    "uuid": "5261f93d-2412-45b2-9602-0e4318254e08",
                    "first_name": "First",
                    "surname": "Last",
                    "language_code": "en_IE",
                    "mobile_number": null,
                    "email": "[email protected]",
                    "email_verified_at": "2022-07-27T13:30:58.000000Z",
                    "activation_key": null,
                    "restoration_key": null,
                    "is_active": 1,
                    "failed_logins": 0,
                    "is_organisation_admin": 1,
                    "one_signal_id": null,
                    "created_at": "2022-07-27T13:30:58.000000Z",
                    "updated_at": "2022-08-05T14:16:13.000000Z",
                    "deleted_at": null,
                    "full_name": "First Last",
                    "role": "foodnet_administrator",
                    "organisation": {
                        "uuid": "c42c9046-3af9-4c16-bca3-768e0b7c1a5a",
                        "name": "FoodCloud",
                        "countries_id": 2963597,
                        "provinces_id": null,
                        "counties_id": null,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": null,
                        "address_1": null,
                        "address_2": null,
                        "city_town": null,
                        "post_code": null,
                        "latitude": "0.00000000",
                        "longitude": "0.00000000",
                        "description": null,
                        "food_safety_info": null,
                        "is_active": true,
                        "is_friend_group": 0,
                        "created_at": "2022-07-27T13:30:58.000000Z",
                        "updated_at": "2022-07-27T13:30:58.000000Z",
                        "deleted_at": null,
                        "in_line_address": "Ireland",
                        "county": null,
                        "province": null,
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2022-07-27T13:30:57.000000Z",
                            "updated_at": "2022-07-27T13:30:57.000000Z",
                            "deleted_at": null
                        }
                    }
                }
            ],
            "delegated_admins": []
        },
        "delegated_admins": [
            {
                "uuid": "5261f93d-2412-45b2-9602-0e4318254e08",
                "first_name": "First",
                "surname": "Last",
                "language_code": "en_IE",
                "mobile_number": null,
                "email": "[email protected]",
                "email_verified_at": "2022-07-27T13:30:58.000000Z",
                "activation_key": null,
                "restoration_key": null,
                "is_active": 1,
                "failed_logins": 0,
                "is_organisation_admin": 1,
                "one_signal_id": null,
                "created_at": "2022-07-27T13:30:58.000000Z",
                "updated_at": "2022-08-05T14:16:13.000000Z",
                "deleted_at": null,
                "full_name": "First Last",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "c42c9046-3af9-4c16-bca3-768e0b7c1a5a",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": null,
                    "counties_id": null,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "phone": null,
                    "address_1": null,
                    "address_2": null,
                    "city_town": null,
                    "post_code": null,
                    "latitude": "0.00000000",
                    "longitude": "0.00000000",
                    "description": null,
                    "food_safety_info": null,
                    "is_active": true,
                    "is_friend_group": 0,
                    "created_at": "2022-07-27T13:30:58.000000Z",
                    "updated_at": "2022-07-27T13:30:58.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Ireland",
                    "county": null,
                    "province": null,
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2022-07-27T13:30:57.000000Z",
                        "updated_at": "2022-07-27T13:30:57.000000Z",
                        "deleted_at": null
                    }
                }
            }
        ]
    },
    "frontendRedirect": false,
    "callTime": 0.02353215217590332,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (403):


{
    "status": "error",
    "data": [
        "e_forbidden"
    ],
    "frontendRedirect": false,
    "callTime": 0.004044055938720703,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership}

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership   string   

The UUID of the Network Membership to get. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Update Network Membership

requires authentication

This endpoint updates the specified Network Membership.

Example request:
curl --request PUT \
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04';
$response = $client->put(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        true
    ],
    "frontendRedirect": false,
    "callTime": 0.003061056137084961,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

PUT api/foodnet/network_memberships/{network_membership}

PATCH api/foodnet/network_memberships/{network_membership}

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership   string   

The UUID of the Network Membership to update. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Apply for Network Membership

requires authentication

This endpoint enables branches to apply for membership of a network.

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/apply" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"branches\": [
        \"e1adf699-172b-491f-922a-9e036aea94be\",
        \"c4d42056-680f-4747-9de9-8188c017a868\"
    ]
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/apply"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "branches": [
        "e1adf699-172b-491f-922a-9e036aea94be",
        "c4d42056-680f-4747-9de9-8188c017a868"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/apply';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'branches' => [
                'e1adf699-172b-491f-922a-9e036aea94be',
                'c4d42056-680f-4747-9de9-8188c017a868',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/apply'
payload = {
    "branches": [
        "e1adf699-172b-491f-922a-9e036aea94be",
        "c4d42056-680f-4747-9de9-8188c017a868"
    ]
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request      

POST api/foodnet/network_memberships/{network_uuid}/apply

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

URL Parameters

network_uuid   string   

The UUID of the network to apply for membership. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Body Parameters

branches   string[]   

The UUIDS of the Branches to apply for network membership.

Get statuses for Network Membership

requires authentication

This endpoint returns the membership statuses of branches for a given network.

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/statuses" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"branches\": [
        \"e1adf699-172b-491f-922a-9e036aea94be\",
        \"c4d42056-680f-4747-9de9-8188c017a868\"
    ]
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/statuses"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "branches": [
        "e1adf699-172b-491f-922a-9e036aea94be",
        "c4d42056-680f-4747-9de9-8188c017a868"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/statuses';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'branches' => [
                'e1adf699-172b-491f-922a-9e036aea94be',
                'c4d42056-680f-4747-9de9-8188c017a868',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/statuses'
payload = {
    "branches": [
        "e1adf699-172b-491f-922a-9e036aea94be",
        "c4d42056-680f-4747-9de9-8188c017a868"
    ]
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "1de15fbc-76fe-4ac4-adff-53a077927950": {
            "uuid": "c4e4b1a1-3b33-437f-b063-4775fc92db06",
            "tsm_current_state": "Withdrawn",
            "created_at": "2024-02-22T16:28:24.000000Z",
            "updated_at": "2024-06-20T13:24:38.000000Z",
            "cancellation_requested": 0,
            "tsm_current_state_label": "withdrawn",
            "network": {
                "uuid": "d143b1aa-1db8-47e2-9e1a-a4f37a26aec2",
                "activate_membership_required": 1,
                "description": "You can not activate new members in your Food Net on their behalf c",
                "max_donation_volume_kg": 500,
                "donation_interval": 30,
                "requirements": "You can not activate new members in your Food Net on their behalf",
                "default_co2e": 3.2,
                "default_meals_per_kg": 2.2,
                "silence_collection_window_invitation_notifications": null,
                "silence_network_membership_notifications": null,
                "created_at": "2024-02-22T16:28:23.000000Z",
                "updated_at": "2024-06-20T13:25:18.000000Z",
                "deleted_at": null,
                "is_public": false
            }
        },
        "7ac12895-6ee2-4362-836d-3bd96566ede0": {
            "uuid": "6b4bef0a-8bab-403e-8e78-28365a458c76",
            "tsm_current_state": "Activated",
            "created_at": "2024-02-22T16:28:24.000000Z",
            "updated_at": "2024-06-20T13:24:38.000000Z",
            "cancellation_requested": 0,
            "tsm_current_state_label": "activated",
            "network": {
                "uuid": "d143b1aa-1db8-47e2-9e1a-a4f37a26aec2",
                "activate_membership_required": 1,
                "description": "You can not activate new members in your Food Net on their behalf c",
                "max_donation_volume_kg": 500,
                "donation_interval": 30,
                "requirements": "You can not activate new members in your Food Net on their behalf",
                "default_co2e": 3.2,
                "default_meals_per_kg": 2.2,
                "silence_collection_window_invitation_notifications": null,
                "silence_network_membership_notifications": null,
                "created_at": "2024-02-22T16:28:23.000000Z",
                "updated_at": "2024-06-20T13:25:18.000000Z",
                "deleted_at": null,
                "is_public": false
            }
        }
    },
    "frontendRedirect": false,
    "callTime": 0.024251937866210938,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

POST api/foodnet/network_memberships/{network_uuid}/statuses

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

URL Parameters

network_uuid   string   

The UUID of the network. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Body Parameters

branches   string[]   

The UUIDS of the Branches to get membership status for.

Networking

Get Network Organisations

requires authentication

This endpoint retrieves all Network Organisations for a user

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/network_organisation?organisation_type=DONOR" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/network_organisation"
);

const params = {
    "organisation_type": "DONOR",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/network_organisation';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
        'query' => [
            'organisation_type' => 'DONOR',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/network_organisation'
params = {
  'organisation_type': 'DONOR',
}
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1993
 

{
    "status": "success",
    "data": [
        {
            "name": "FoodCloud",
            "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
            "in_line_address": ""
        }
    ],
    "frontendRedirect": false,
    "callTime": 0.006657838821411133,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/network_organisation

Headers

AuthorizationToken      

Example: Bearer {token}

Query Parameters

organisation_type   string  optional  

String The type of organisation to return. Example: DONOR

Offers

Create product level data

requires authentication

Add product level data to a donation response

Example request:
curl --request PUT \
    "https://api-qa.foodiverse.net/api/donation/responses/6ff8f7f6-1eb3-3525-be4a-3932c805afed/products" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"products\": \"architecto\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/donation/responses/6ff8f7f6-1eb3-3525-be4a-3932c805afed/products"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "products": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/donation/responses/6ff8f7f6-1eb3-3525-be4a-3932c805afed/products';
$response = $client->put(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'products' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/donation/responses/6ff8f7f6-1eb3-3525-be4a-3932c805afed/products'
payload = {
    "products": "architecto"
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "uuid": "c5a1c2a8-45c2-a338-1f4f-c39ac2bb0dc2",
        "products": [
            {
                "category_id": "ae3c1161-0b4c-48b0-a6e7-f054882d41b2",
                "brand": "Test Brand",
                "product_type": "Test Type",
                "units": "Kg",
                "name": "Test Name",
                "currency": "EUR",
                "code": "123456789",
                "quantity": "2",
                "total_weight": "2",
                "discounted_unit_price": "1.24",
                "original_unit_price": "1.24",
                "expiry_type": "l_use_by | l_best_before",
                "expiry_date": "2022-01-01 00:00:00",
                "batch_code": "123456789",
                "stock_code": "123456789",
                "ingredients": "Test ingredients",
                "allergens": "Test allergens",
                "nutrition": "Test nutrition"
            }
        ]
    },
    "callTime": 0.00594019889831543
}
 

Example response (400):


{
    "status": "error",
    "data": {
        "errors": [
            {
                "field": "products.0.category_id",
                "message": "e_category_id_required"
            },
            {
                "field": "products.0.units",
                "message": "e_units_required"
            },
            {
                "field": "products.0.name",
                "message": "e_name_required"
            },
            {
                "field": "products.0.code",
                "message": "e_code_required"
            },
            {
                "field": "products.0.quantity",
                "message": "e_quantity_required"
            },
            {
                "field": "products.0.weight",
                "message": "e_weight_required"
            }
        ]
    }
}
 

Example response (401):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

PUT api/donation/responses/{response_uuid}/products

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

URL Parameters

response_uuid   string   

Example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed

Body Parameters

products   Products   

Array Example: architecto

*   object  optional  
category_id   Uuid   

Example: architecto

normalised_products_id   Uuid   

Required without category_id Example: architecto

code   String   

The barcode or EAN of the product item. Required without normalised_products_id Example: architecto

name     optional  

String Example: architecto

brand   String  optional  

Example: architecto

product_type     optional  

String Example: architecto

units   String  optional  

Example: architecto

currency     optional  

String Example: architecto

quantity     optional  

Numeric Example: architecto

unit_weight   Numeric  optional  

Example: architecto

total_weight   Numeric  optional  

Example: architecto

original_unit_price   Numeric  optional  

Example: architecto

discounted_unit_price     optional  

Numeric Example: architecto

total_price     optional  

Numeric Example: architecto

expiry_type   String  optional  

l_use_by or l_best_before Example: architecto

expiry_date     optional  

Date Example: architecto

batch_code   String  optional  

Example: architecto

stock_code   String  optional  

Example: architecto

ingredients     optional  

String Example: architecto

allergens   String  optional  

Example: architecto

nutrition   String  optional  

Example: architecto

Get offers for Network Membership

requires authentication

This endpoint retrieves offers associated with a Network Membership.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/offers" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/offers"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/offers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/offers'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "data": [],
        "recordsFiltered": 0,
        "recordsTotal": 0
    },
    "frontendRedirect": false,
    "callTime": 0.006829977035522461,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/offers

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get offers for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

OneSignal

Get All OneSignal IDs for user

requires authentication

This endpoint retrieves all user's OneSignal IDs.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/one_signal" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/one_signal"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/one_signal';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/one_signal'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "data": [
            {
                "player_id": "e9866105-0aaa-4657-99cf-3700137faaf2",
                "created_at": null,
                "updated_at": null
            }
        ],
        "recordsFiltered": 1,
        "recordsTotal": 1
    },
    "callTime": 0.0011870861053466797
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/user/one_signal

Headers

AuthorizationToken      

Example: Bearer {token}

Add OneSignal ID

requires authentication

This endpoint add's a specific user's OneSignal ID.

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/user/one_signal" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"player_id\": \"5ce3a914-8a20-4e83-9e5a-059361de5d04\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/one_signal"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "player_id": "5ce3a914-8a20-4e83-9e5a-059361de5d04"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/one_signal';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'player_id' => '5ce3a914-8a20-4e83-9e5a-059361de5d04',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/one_signal'
payload = {
    "player_id": "5ce3a914-8a20-4e83-9e5a-059361de5d04"
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "player_id": "e9866105-0aaa-4657-99cf-3700137faafd",
        "updated_at": "2020-05-19 13:20:35",
        "created_at": "2020-05-19 13:20:35",
        "id": 0
    },
    "callTime": 0.003256082534790039
}
 

Example response (400):


{
    "status": "error",
    "data": [
        {
            "field": "player_id",
            "message": "e_player_id_must_be_unique"
        }
    ],
    "callTime": 0.001772165298461914
}
 

Request      

POST api/user/one_signal

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

player_id   String   

The Player ID to add to the user. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Delete OneSignal ID

requires authentication

This endpoint removes an authenticated user's OneSignal player_id

Example request:
curl --request DELETE \
    "https://api-qa.foodiverse.net/api/user/one_signal/5ce3a914-8a20-4e83-9e5a-059361de5d04" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/one_signal/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/one_signal/5ce3a914-8a20-4e83-9e5a-059361de5d04';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/one_signal/5ce3a914-8a20-4e83-9e5a-059361de5d04'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "player_id": "5ce3a914-8a20-4e83-9e5a-059361de5d04"
    },
    "frontendRedirect": false,
    "callTime": 0.006357908248901367,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (404):


{
    "status": "error",
    "data": [
        "l_not_found"
    ],
    "frontendRedirect": false,
    "callTime": 0.003927946090698242,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

DELETE api/user/one_signal/{id}

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

id   string   

The Player ID to delete. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Registration

Register

Register as an organization admin using your personal and organization details.

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/user/register" \
    --header "Content-Type: application/json" \
    --data "{
    \"first_name\": \"Test\",
    \"surname\": \"User\",
    \"email\": \"[email protected]\",
    \"mobile_number\": \"+353861234567\",
    \"mobile_number_country_code\": \"IE\",
    \"phone\": \"+353868730746\",
    \"phone_country_code\": \"IE\",
    \"name\": \"Test FoodBank\",
    \"organisation_type\": \"{}\",
    \"address_1\": \"8 Broom hill road\",
    \"address_2\": \"Tallaght\",
    \"postcode\": \"D24 CD32\",
    \"city_town\": \"Dublin\",
    \"country\": [],
    \"province\": [],
    \"county\": [],
    \"latitude\": 53.2939631,
    \"longitude\": -6.3621539,
    \"language_code\": \"en_IE\",
    \"foodnet_organisation_uuid\": \"66529e01-d113-3473-8d6f-9e11e09332ea\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "Test",
    "surname": "User",
    "email": "[email protected]",
    "mobile_number": "+353861234567",
    "mobile_number_country_code": "IE",
    "phone": "+353868730746",
    "phone_country_code": "IE",
    "name": "Test FoodBank",
    "organisation_type": "{}",
    "address_1": "8 Broom hill road",
    "address_2": "Tallaght",
    "postcode": "D24 CD32",
    "city_town": "Dublin",
    "country": [],
    "province": [],
    "county": [],
    "latitude": 53.2939631,
    "longitude": -6.3621539,
    "language_code": "en_IE",
    "foodnet_organisation_uuid": "66529e01-d113-3473-8d6f-9e11e09332ea"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/register';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'first_name' => 'Test',
            'surname' => 'User',
            'email' => '[email protected]',
            'mobile_number' => '+353861234567',
            'mobile_number_country_code' => 'IE',
            'phone' => '+353868730746',
            'phone_country_code' => 'IE',
            'name' => 'Test FoodBank',
            'organisation_type' => '{}',
            'address_1' => '8 Broom hill road',
            'address_2' => 'Tallaght',
            'postcode' => 'D24 CD32',
            'city_town' => 'Dublin',
            'country' => [],
            'province' => [],
            'county' => [],
            'latitude' => 53.2939631,
            'longitude' => -6.3621539,
            'language_code' => 'en_IE',
            'foodnet_organisation_uuid' => '66529e01-d113-3473-8d6f-9e11e09332ea',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/register'
payload = {
    "first_name": "Test",
    "surname": "User",
    "email": "[email protected]",
    "mobile_number": "+353861234567",
    "mobile_number_country_code": "IE",
    "phone": "+353868730746",
    "phone_country_code": "IE",
    "name": "Test FoodBank",
    "organisation_type": "{}",
    "address_1": "8 Broom hill road",
    "address_2": "Tallaght",
    "postcode": "D24 CD32",
    "city_town": "Dublin",
    "country": [],
    "province": [],
    "county": [],
    "latitude": 53.2939631,
    "longitude": -6.3621539,
    "language_code": "en_IE",
    "foodnet_organisation_uuid": "66529e01-d113-3473-8d6f-9e11e09332ea"
}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        "m_account_registered"
    ],
    "callTime": 0.1523888111114502
}
 

Example response (400):


{
    "status": "error",
    "data": [
        {
            "field": "email",
            "message": "e_email_unique"
        }
    ],
    "callTime": 0.04615497589111328
}
 

Request      

POST api/user/register

Headers

Content-Type      

Example: application/json

Body Parameters

first_name   String   

First name of the user. Example: Test

surname   String   

Surname of the user. Example: User

email   String   

The email of the user. Example: [email protected]

mobile_number   String   

Mobile number of the user. Example: +353861234567

mobile_number_country_code   String   

The country code of the mobile_number provided. Example: IE

phone   String   

Organization phone number Example: +353868730746

phone_country_code   String   

Organization phone number. Example: IE

name   String   

Organization Name. Example: Test FoodBank

organisation_type   Object   

Organisation Type Object. Example: {}

address_1   String   

Organisation address line 1. Example: 8 Broom hill road

address_2   String  optional  

Organisation address line 2. Example: Tallaght

postcode   String   

Organisations Eir Code. Example: D24 CD32

city_town   String   

Organisation city / town. Example: Dublin

country   object   

Country Object containing details about country where organisation resides.

province   object   

Province Object containing details about province where organisation resides.

county   object   

County Object containing details about county where organisation resides.

latitude   number  optional  

Organisation latitude. Example: 53.2939631

longitude   number  optional  

Organisation longitude. Example: -6.3621539

language_code   String  optional  

Preferred language. Example: en_IE

foodnet_organisation_uuid   String  optional  

The UUID of a FoodNet Organisation to apply to for membership. Example: 66529e01-d113-3473-8d6f-9e11e09332ea

Reports

Get Donations by status report

requires authentication

This endpoint returns a report of donations by status for a network membership

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_status" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_status"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_status';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_status'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1990
 

{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.011649131774902344,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/reports/donations_by_status

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get the report for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get donations by storage type report

requires authentication

This endpoint returns a report of donations by storage type for a network membership

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_storage_type" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_storage_type"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_storage_type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_storage_type'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1989
 

{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.0018551349639892578,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/reports/donations_by_storage_type

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get the report for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get donations by parent category report

requires authentication

This endpoint returns a report of donations by parent category for a network membership

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_parent_category" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_parent_category"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_parent_category';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_parent_category'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1988
 

{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.002852201461791992,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/reports/donations_by_parent_category

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get the report for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get offers by storage type report

requires authentication

This endpoint returns a report of offers by storage type for a network membership

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_storage_type" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_storage_type"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_storage_type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_storage_type'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1987
 

{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.003403186798095703,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/reports/offers_by_storage_type

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get the report for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get offers by parent category report

requires authentication

This endpoint returns a report of offers by parent category for a network membership

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_parent_category" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_parent_category"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_parent_category';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_parent_category'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1986
 

{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.0015451908111572266,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/reports/offers_by_parent_category

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get the report for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get offers by status report

requires authentication

This endpoint returns a report of offers by status for a network membership

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_status" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_status"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_status';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_status'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1985
 

{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.0017290115356445312,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/foodnet/network_memberships/{network_membership_uuid}/reports/offers_by_status

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

network_membership_uuid   string   

The UUID of the Network Membership to get the report for. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Schedules

Get branches within the user's network

requires authentication

Get branches within the user's network

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/network_branches" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/network_branches"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/network_branches';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/network_branches'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1995
 

{
    "status": "success",
    "data": [
        {
            "name": "FoodCloud branch 1",
            "uuid": "fbaf899a-c360-4dee-8618-a0bfefd8bace",
            "in_line_address": ""
        }
    ],
    "frontendRedirect": false,
    "callTime": 0.02674102783203125,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/network_branches

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get Quick Donation Schedule

requires authentication

Returns the nearest donation windows and next collection window schedule for a branch

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/quick-donation/schedules" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/quick-donation/schedules"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/quick-donation/schedules';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/quick-donation/schedules'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "nearest_donation_windows": [
            {
                "uuid": "db89f7e2-9d66-4654-86bf-15e8813be9f6",
                "starts_at": "09:00:00",
                "ends_at": "17:00:00",
                "day_of_week": 4,
                "is_active": 1,
                "is_temporary_schedule": 0,
                "temporary_scheduled_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "day_of_week_label": "l_thursday_full",
                "days_to_add": 0,
                "starts_at_date": "2024-07-04T08:00:00.000000Z",
                "ends_at_date": "2024-07-04T16:00:00.000000Z",
                "time_diff": 12229,
                "default": true,
                "donation_count": 0
            },
            {
                "uuid": "ec388de5-679b-453e-bd9a-da6aec6354df",
                "starts_at": "09:00:00",
                "ends_at": "17:00:00",
                "day_of_week": 5,
                "is_active": 1,
                "is_temporary_schedule": 0,
                "temporary_scheduled_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "day_of_week_label": "l_friday_full",
                "days_to_add": 1,
                "starts_at_date": "2024-07-05T08:00:00.000000Z",
                "ends_at_date": "2024-07-05T16:00:00.000000Z",
                "time_diff": 74170
            },
            {
                "uuid": "e2311bae-9631-4b6b-9928-d24f06472cc3",
                "starts_at": "09:00:00",
                "ends_at": "17:00:00",
                "day_of_week": 6,
                "is_active": 1,
                "is_temporary_schedule": 0,
                "temporary_scheduled_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "day_of_week_label": "l_saturday_full",
                "days_to_add": 2,
                "starts_at_date": "2024-07-06T08:00:00.000000Z",
                "ends_at_date": "2024-07-06T16:00:00.000000Z",
                "time_diff": 160570
            },
            {
                "uuid": "b54d4e86-3fbf-4545-ae14-e90f2c5274b6",
                "starts_at": "09:00:00",
                "ends_at": "17:00:00",
                "day_of_week": 7,
                "is_active": 1,
                "is_temporary_schedule": 0,
                "temporary_scheduled_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "day_of_week_label": "l_sunday_full",
                "days_to_add": 3,
                "starts_at_date": "2024-07-07T08:00:00.000000Z",
                "ends_at_date": "2024-07-07T16:00:00.000000Z",
                "time_diff": 246970
            },
            {
                "uuid": "69183570-505e-4d56-a876-eae956714d3a",
                "starts_at": "09:00:00",
                "ends_at": "17:00:00",
                "day_of_week": 1,
                "is_active": 1,
                "is_temporary_schedule": 0,
                "temporary_scheduled_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "day_of_week_label": "l_monday_full",
                "days_to_add": 4,
                "starts_at_date": "2024-07-08T08:00:00.000000Z",
                "ends_at_date": "2024-07-08T16:00:00.000000Z",
                "time_diff": 333370
            },
            {
                "uuid": "e3af60f3-3397-415c-ae71-ae763c39a823",
                "starts_at": "09:00:00",
                "ends_at": "17:00:00",
                "day_of_week": 2,
                "is_active": 1,
                "is_temporary_schedule": 0,
                "temporary_scheduled_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "day_of_week_label": "l_tuesday_full",
                "days_to_add": 5,
                "starts_at_date": "2024-07-09T08:00:00.000000Z",
                "ends_at_date": "2024-07-09T16:00:00.000000Z",
                "time_diff": 419770
            }
        ],
        "next_collection_windows": [
            {
                "uuid": "12e307e9-a026-4a5a-987e-10bd3dad6022",
                "transfer_types_id": 1,
                "starts_at": "07:00:00",
                "ends_at": "07:30:00",
                "day_of_week_start": 5,
                "day_of_week_end": 5,
                "is_temporary_schedule": 0,
                "temporary_schedule_starts_at": null,
                "temporary_schedule_ends_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "max_collectors": 1,
                "day_of_week_start_label": "l_friday_full",
                "day_of_week_end_label": "l_friday_full",
                "starts_at_date": "2024-07-05T06:00:00.000000Z",
                "ends_at_date": "2024-07-05T06:30:00.000000Z",
                "transfer_types_label": "l_donation_transfer_type_collection",
                "transfer_types_name": "Collection",
                "time_diff": 68770,
                "default": true,
                "difference_in_days": 0,
                "transfer_type": {
                    "uuid": "486d8432-b916-4c47-9d3d-6cd55a210fc3",
                    "name": "Collection",
                    "label": "l_donation_transfer_type_collection",
                    "created_at": "2021-03-15T00:26:39.000000Z",
                    "updated_at": "2021-03-15T00:26:39.000000Z"
                },
                "primary_charity_branch": null,
                "collection_window_waitlist": []
            },
            {
                "uuid": "b18b7935-c3e3-42e4-bb6f-2885d0553b0a",
                "transfer_types_id": 1,
                "starts_at": "07:00:00",
                "ends_at": "07:30:00",
                "day_of_week_start": 6,
                "day_of_week_end": 6,
                "is_temporary_schedule": 0,
                "temporary_schedule_starts_at": null,
                "temporary_schedule_ends_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "max_collectors": 1,
                "day_of_week_start_label": "l_saturday_full",
                "day_of_week_end_label": "l_saturday_full",
                "starts_at_date": "2024-07-06T06:00:00.000000Z",
                "ends_at_date": "2024-07-06T06:30:00.000000Z",
                "transfer_types_label": "l_donation_transfer_type_collection",
                "transfer_types_name": "Collection",
                "time_diff": 155170,
                "difference_in_days": 0,
                "transfer_type": {
                    "uuid": "486d8432-b916-4c47-9d3d-6cd55a210fc3",
                    "name": "Collection",
                    "label": "l_donation_transfer_type_collection",
                    "created_at": "2021-03-15T00:26:39.000000Z",
                    "updated_at": "2021-03-15T00:26:39.000000Z"
                },
                "primary_charity_branch": null,
                "collection_window_waitlist": []
            },
            {
                "uuid": "6d4261a0-d8fb-4060-9f10-040a0a10f404",
                "transfer_types_id": 1,
                "starts_at": "07:00:00",
                "ends_at": "07:30:00",
                "day_of_week_start": 7,
                "day_of_week_end": 7,
                "is_temporary_schedule": 0,
                "temporary_schedule_starts_at": null,
                "temporary_schedule_ends_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "max_collectors": 1,
                "day_of_week_start_label": "l_sunday_full",
                "day_of_week_end_label": "l_sunday_full",
                "starts_at_date": "2024-07-07T06:00:00.000000Z",
                "ends_at_date": "2024-07-07T06:30:00.000000Z",
                "transfer_types_label": "l_donation_transfer_type_collection",
                "transfer_types_name": "Collection",
                "time_diff": 241570,
                "difference_in_days": 0,
                "transfer_type": {
                    "uuid": "486d8432-b916-4c47-9d3d-6cd55a210fc3",
                    "name": "Collection",
                    "label": "l_donation_transfer_type_collection",
                    "created_at": "2021-03-15T00:26:39.000000Z",
                    "updated_at": "2021-03-15T00:26:39.000000Z"
                },
                "primary_charity_branch": null,
                "collection_window_waitlist": []
            },
            {
                "uuid": "82137f1b-8bfe-4f48-ad1b-1d23fd2fb0cb",
                "transfer_types_id": 1,
                "starts_at": "07:00:00",
                "ends_at": "07:30:00",
                "day_of_week_start": 1,
                "day_of_week_end": 1,
                "is_temporary_schedule": 0,
                "temporary_schedule_starts_at": null,
                "temporary_schedule_ends_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "max_collectors": 1,
                "day_of_week_start_label": "l_monday_full",
                "day_of_week_end_label": "l_monday_full",
                "starts_at_date": "2024-07-08T06:00:00.000000Z",
                "ends_at_date": "2024-07-08T06:30:00.000000Z",
                "transfer_types_label": "l_donation_transfer_type_collection",
                "transfer_types_name": "Collection",
                "time_diff": 327970,
                "difference_in_days": 0,
                "transfer_type": {
                    "uuid": "486d8432-b916-4c47-9d3d-6cd55a210fc3",
                    "name": "Collection",
                    "label": "l_donation_transfer_type_collection",
                    "created_at": "2021-03-15T00:26:39.000000Z",
                    "updated_at": "2021-03-15T00:26:39.000000Z"
                },
                "primary_charity_branch": null,
                "collection_window_waitlist": []
            },
            {
                "uuid": "acc8f99d-acea-46c2-be3f-530b07ff6991",
                "transfer_types_id": 1,
                "starts_at": "07:00:00",
                "ends_at": "07:30:00",
                "day_of_week_start": 2,
                "day_of_week_end": 2,
                "is_temporary_schedule": 0,
                "temporary_schedule_starts_at": null,
                "temporary_schedule_ends_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "max_collectors": 1,
                "day_of_week_start_label": "l_tuesday_full",
                "day_of_week_end_label": "l_tuesday_full",
                "starts_at_date": "2024-07-09T06:00:00.000000Z",
                "ends_at_date": "2024-07-09T06:30:00.000000Z",
                "transfer_types_label": "l_donation_transfer_type_collection",
                "transfer_types_name": "Collection",
                "time_diff": 414370,
                "difference_in_days": 0,
                "transfer_type": {
                    "uuid": "486d8432-b916-4c47-9d3d-6cd55a210fc3",
                    "name": "Collection",
                    "label": "l_donation_transfer_type_collection",
                    "created_at": "2021-03-15T00:26:39.000000Z",
                    "updated_at": "2021-03-15T00:26:39.000000Z"
                },
                "primary_charity_branch": null,
                "collection_window_waitlist": []
            },
            {
                "uuid": "0c4414b3-1ee3-4d46-8c61-11a98f02d9e1",
                "transfer_types_id": 1,
                "starts_at": "07:00:00",
                "ends_at": "07:30:00",
                "day_of_week_start": 3,
                "day_of_week_end": 3,
                "is_temporary_schedule": 0,
                "temporary_schedule_starts_at": null,
                "temporary_schedule_ends_at": null,
                "created_at": "2024-02-22 16:31:32",
                "updated_at": "2024-02-22 16:31:32",
                "max_collectors": 1,
                "day_of_week_start_label": "l_wednesday_full",
                "day_of_week_end_label": "l_wednesday_full",
                "starts_at_date": "2024-07-10T06:00:00.000000Z",
                "ends_at_date": "2024-07-10T06:30:00.000000Z",
                "transfer_types_label": "l_donation_transfer_type_collection",
                "transfer_types_name": "Collection",
                "time_diff": 500770,
                "difference_in_days": 0,
                "transfer_type": {
                    "uuid": "486d8432-b916-4c47-9d3d-6cd55a210fc3",
                    "name": "Collection",
                    "label": "l_donation_transfer_type_collection",
                    "created_at": "2021-03-15T00:26:39.000000Z",
                    "updated_at": "2021-03-15T00:26:39.000000Z"
                },
                "primary_charity_branch": null,
                "collection_window_waitlist": []
            }
        ]
    },
    "frontendRedirect": false,
    "callTime": 0.10132122039794922,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "e_error_retrieving_data"
    ],
    "frontendRedirect": false,
    "callTime": 0.005608081817626953,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/branches/{branch}/quick-donation/schedules

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Get Branch Schedules

requires authentication

Get all the branch schedules across all the foodnets

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "donation_windows": [
            [
                {
                    "uuid": "b380baf4-560e-46fa-b5b5-351a234f0275",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 1,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:46",
                    "updated_at": "2024-02-22 16:30:46",
                    "day_of_week_label": "l_monday_full"
                }
            ],
            [
                {
                    "uuid": "ce5fd5ea-7d46-4e97-b2c3-e5284b3d3570",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 2,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:46",
                    "updated_at": "2024-02-22 16:30:46",
                    "day_of_week_label": "l_tuesday_full"
                }
            ],
            [
                {
                    "uuid": "3fdfeba2-d956-49f6-92a7-e2fab27d21cd",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 3,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:46",
                    "updated_at": "2024-02-22 16:30:46",
                    "day_of_week_label": "l_wednesday_full"
                }
            ],
            [
                {
                    "uuid": "e29de0d0-e945-49d0-86f2-dbaf64eebfd3",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 4,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:46",
                    "updated_at": "2024-02-22 16:30:46",
                    "day_of_week_label": "l_thursday_full"
                }
            ],
            [
                {
                    "uuid": "b504ebcf-92a0-4459-a31d-496d5929df29",
                    "starts_at": "09:00:00",
                    "ends_at": "17:00:00",
                    "day_of_week": 5,
                    "is_active": 1,
                    "is_temporary_schedule": 0,
                    "temporary_scheduled_at": null,
                    "created_at": "2024-02-22 16:30:46",
                    "updated_at": "2024-02-22 16:30:46",
                    "day_of_week_label": "l_friday_full"
                }
            ],
            [],
            []
        ],
        "collection_windows": [
            [],
            [],
            [],
            [],
            [],
            [],
            []
        ],
        "branch_closures": [
            [],
            [],
            [],
            [],
            [],
            [],
            []
        ]
    },
    "frontendRedirect": false,
    "callTime": 0.36569786071777344,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/branches/{branch}/schedules

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

Units of Measure

Get All Units of Measure for a Branch

requires authentication

This endpoint retrieves all branch's units of measure.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/measure_units" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/measure_units"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/measure_units';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/measure_units'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "data": [
            {
                "uuid": "20202020-8950-4e47-0d0a-1a0a00000000",
                "name": "Tray",
                "kg_weight_per_unit": 6.5,
                "created_at": "2019-11-22 21:29:08",
                "updated_at": "2019-11-22 21:29:08",
                "deleted_at": null
            },
            {
                "uuid": "3ea609e7-bb67-45c1-a158-a18364fa67c3",
                "name": "Kg",
                "kg_weight_per_unit": 1,
                "created_at": "2019-11-22 21:29:08",
                "updated_at": "2019-11-22 21:29:08",
                "deleted_at": null
            }
        ],
        "recordsFiltered": 2,
        "recordsTotal": 2
    },
    "callTime": 0.006726980209350586
}
 

Example response (400):


{
    "status": "error",
    "data": [
        "Unauthorized"
    ],
    "callTime": 0.0020160675048828125
}
 

Request      

GET api/user/branches/{branch}/measure_units

Headers

AuthorizationToken      

Example: Bearer {token}

URL Parameters

branch   string   

The UUID of the branch. Example: 5ce3a914-8a20-4e83-9e5a-059361de5d04

User

Resend user invite

requires authentication

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/user/invite/resend" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/invite/resend"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/invite/resend';
$response = $client->post(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/invite/resend'
payload = {
    "email": "[email protected]"
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request      

POST api/user/invite/resend

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

email   String   

The email of the user. Example: [email protected]

Activate account This endpoint activates the account

Example request:
curl --request PUT \
    "https://api-qa.foodiverse.net/api/user/activate" \
    --header "Content-Type: application/json" \
    --data "{
    \"activation_key\": \"ffabe0be80b0539b0d1b2ee68270f43cea0234628769564557781055eb94bbf7\",
    \"expires\": \"1720007944\",
    \"password\": \"|]|{+-\",
    \"password_confirmation\": \"architecto\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/activate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "activation_key": "ffabe0be80b0539b0d1b2ee68270f43cea0234628769564557781055eb94bbf7",
    "expires": "1720007944",
    "password": "|]|{+-",
    "password_confirmation": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/activate';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'activation_key' => 'ffabe0be80b0539b0d1b2ee68270f43cea0234628769564557781055eb94bbf7',
            'expires' => '1720007944',
            'password' => '|]|{+-',
            'password_confirmation' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/activate'
payload = {
    "activation_key": "ffabe0be80b0539b0d1b2ee68270f43cea0234628769564557781055eb94bbf7",
    "expires": "1720007944",
    "password": "|]|{+-",
    "password_confirmation": "architecto"
}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        "s_auth_activated"
    ],
    "frontendRedirect": false,
    "callTime": 0.10659193992614746
}
 

Request      

PUT api/user/activate

Headers

Content-Type      

Example: application/json

Body Parameters

activation_key   String   

Example: ffabe0be80b0539b0d1b2ee68270f43cea0234628769564557781055eb94bbf7

expires   String   

Example: 1720007944

password   String   

Example: |]|{+-

password_confirmation   String   

Example: architecto

Generate restoration key and send an email with reset password link to a user

Example request:
curl --request POST \
    "https://api-qa.foodiverse.net/api/user/password/reset" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/password/reset"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/password/reset';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/password/reset'
payload = {
    "email": "[email protected]"
}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        "s_password_sent"
    ],
    "frontendRedirect": false,
    "callTime": 0.263275146484375
}
 

Request      

POST api/user/password/reset

Headers

Content-Type      

Example: application/json

Body Parameters

email   String   

The email of the user. Example: [email protected]

Reset user password

Example request:
curl --request PUT \
    "https://api-qa.foodiverse.net/api/user/password/reset" \
    --header "Content-Type: application/json" \
    --data "{
    \"password\": \"|]|{+-\",
    \"password_confirmation\": \"architecto\",
    \"restoration_key\": \"12f78fab0eab140feeef8bf9d8534924cf2a16119ceb3aaff58cf1953d662d8d\",
    \"expires\": \"1720007944\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/password/reset"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": "|]|{+-",
    "password_confirmation": "architecto",
    "restoration_key": "12f78fab0eab140feeef8bf9d8534924cf2a16119ceb3aaff58cf1953d662d8d",
    "expires": "1720007944"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/password/reset';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'password' => '|]|{+-',
            'password_confirmation' => 'architecto',
            'restoration_key' => '12f78fab0eab140feeef8bf9d8534924cf2a16119ceb3aaff58cf1953d662d8d',
            'expires' => '1720007944',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/password/reset'
payload = {
    "password": "|]|{+-",
    "password_confirmation": "architecto",
    "restoration_key": "12f78fab0eab140feeef8bf9d8534924cf2a16119ceb3aaff58cf1953d662d8d",
    "expires": "1720007944"
}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        "s_password_reset"
    ],
    "callTime": 0.3715510368347168
}
 

Request      

PUT api/user/password/reset

Headers

Content-Type      

Example: application/json

Body Parameters

password   String   

Example: |]|{+-

password_confirmation   String   

Example: architecto

restoration_key   String   

Example: 12f78fab0eab140feeef8bf9d8534924cf2a16119ceb3aaff58cf1953d662d8d

expires   String   

Example: 1720007944

Get active user's organisation details

requires authentication

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/organisation" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/organisation"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/organisation';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/organisation'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1999
 

{
    "status": "success",
    "data": {
        "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
        "name": "FoodCloud",
        "countries_id": 2963597,
        "provinces_id": 7521314,
        "counties_id": 7288565,
        "official_id": null,
        "accept_by_offset": 30,
        "vip_window": 30,
        "is_vip_window_active": 1,
        "phone": "+35315313478",
        "address_1": "Unit 8 Broomhill Road",
        "address_2": "",
        "city_town": "South Dublin",
        "post_code": "D24 CD32",
        "latitude": "53.29635950",
        "longitude": "-6.35568570",
        "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
        "food_safety_info": null,
        "is_active": true,
        "is_featured": 1,
        "is_friend_group": 0,
        "receipt_sending_option": 1,
        "created_at": "2021-03-15T00:26:30.000000Z",
        "updated_at": "2024-01-24T14:11:16.000000Z",
        "deleted_at": null,
        "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland",
        "users": [
            {
                "uuid": "9e90e7f3-b68b-482d-9eea-1f00ebb4a762",
                "first_name": "Integration User",
                "surname": "DO NOT EDIT",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Integration User DO NOT EDIT",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "edb50ba5-1d9e-4be1-bde6-cd4fcd81e855",
                "first_name": "Copia",
                "surname": "Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Copia Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "54600b1e-8a0f-43a6-964d-65bcba13609a",
                "first_name": "Uk",
                "surname": "Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Uk Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "be5c9e0b-2e78-4fe3-9082-eb400500aa4a",
                "first_name": "Ie",
                "surname": "Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Ie Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "5fc9c994-46ce-4f87-a07b-25ecad5fbfb8",
                "first_name": "Carla",
                "surname": "McSorley ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Carla McSorley ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "3557a7f9-bdf6-4d6a-9346-d4aa607b0380",
                "first_name": "Iseult",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Iseult ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "96243d0e-67d4-4279-ad01-cea97b0e4da5",
                "first_name": "Jamesclifford",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Jamesclifford ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "43ce3182-8881-4098-8998-de12153e9fa2",
                "first_name": "Manx",
                "surname": "Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Manx Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "4debc6dc-1dba-4225-852c-4636e2ab3d17",
                "first_name": "Fcs",
                "surname": "Yvonne Fallon ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Yvonne Fallon ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "0259f40b-5c73-4be6-aaaf-f1a9a7a4c805",
                "first_name": "Rory",
                "surname": "Fallon ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Rory Fallon ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "a6a75333-f972-461e-b31b-f414b9207dd3",
                "first_name": "Catherine",
                "surname": "Delaney",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Catherine Delaney",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "644362f1-f165-4190-aa4d-9109a62fe9c4",
                "first_name": "Fcs",
                "surname": "RorySupport ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs RorySupport ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "0bcd59cf-dbb7-4890-a316-857a4abcec1b",
                "first_name": "Eimear",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Eimear ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "6b7554c1-3fde-4d71-b2cb-bdcbb54de0d9",
                "first_name": "Karen",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Karen ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "25fb084c-14a2-4965-9376-581509cea581",
                "first_name": "Fcs",
                "surname": "Muirne Mac Manamon ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Muirne Mac Manamon ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "151cf991-42b4-4121-ace4-2135fdcc9cbb",
                "first_name": "Rory",
                "surname": "O'Connell",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Rory O'Connell",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "36aab3fd-c36e-4d54-bc67-9760bc7f41a1",
                "first_name": "OzHarvest",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "OzHarvest ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "36b56997-7416-4337-91ff-f8ab28678559",
                "first_name": "FoodCloud",
                "surname": "Tech Demo ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "FoodCloud Tech Demo ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "c4c48ae4-e743-42dd-a2d6-cc72d2f4b873",
                "first_name": "Steven",
                "surname": "Pettigrew",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Steven Pettigrew",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "5760a1cd-98af-4a03-bc15-b82c8fd22027",
                "first_name": "Rosie",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Rosie ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "76145941-e6ad-4277-bed1-19232d1cc10f",
                "first_name": "Polish",
                "surname": "Demo Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Polish Demo Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "74bccb4f-cac6-4ec1-aa9f-be788a55860d",
                "first_name": "Polish",
                "surname": "Test Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Polish Test Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "1635b37f-8d56-4e34-9223-0fccbf8c2f8d",
                "first_name": "Robyn",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Robyn ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "83bdc772-9f08-4d90-b29f-f6d92f5645ba",
                "first_name": "Chill",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Chill ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "ad5f9c31-0f4b-48d1-b358-7d53ddc68460",
                "first_name": "Australian",
                "surname": "Test Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Australian Test Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "e916b8d9-2650-4ab1-9e58-7ef39f8a45db",
                "first_name": "Czech",
                "surname": "Test Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Czech Test Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "587fd580-e077-4fe4-a9df-a294e8aa32e4",
                "first_name": "Ciara",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Ciara ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "2a287e42-7ffb-41ea-be1d-0548429b142f",
                "first_name": "Fcs",
                "surname": "Evan Meehan ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Evan Meehan ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "95962e1f-4333-4639-89ac-957eba8de0e4",
                "first_name": "Fcs",
                "surname": "Maria Gibalova ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Maria Gibalova ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "cee19fe1-5836-45b6-a74c-e6c0789c7c0f",
                "first_name": "Steven",
                "surname": "Admin ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Steven Admin ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "545a5a55-b86f-4359-9061-0cf9915737b6",
                "first_name": "Threadable",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Threadable ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "6fec8ae4-0c7e-42ad-a4ae-c6dd90e04e56",
                "first_name": "Maudrag",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Maudrag ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "31262a7b-a7db-46f5-bdfb-5bc695ba43b1",
                "first_name": "Brendan",
                "surname": "Walsh ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Brendan Walsh ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "0786855f-4260-4862-95b3-cc0577d177ea",
                "first_name": "Aditya",
                "surname": "Arora ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Aditya Arora ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "2235d973-0626-4b96-82dc-c1bcc42d8afb",
                "first_name": "Shaunagh",
                "surname": "Newman ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Shaunagh Newman ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "2b08724d-5418-4229-a856-ddb21e5b0775",
                "first_name": "Fcs",
                "surname": "Eoin OF ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Eoin OF ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "3cba186e-c33c-45fc-ba83-16ae85c17e12",
                "first_name": "Fcs",
                "surname": "Vicki Byrne ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Vicki Byrne ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "346c1448-aa4e-424f-8f06-769244fa07f9",
                "first_name": "Rodrigo",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Rodrigo ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "47046ca1-9060-4224-95c6-ba08cbebe901",
                "first_name": "Integration User",
                "surname": "DO NOT EDIT",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Integration User DO NOT EDIT",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "9454ec72-d025-41ae-a713-1352b3de3778",
                "first_name": "Cecilie",
                "surname": "",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Cecilie ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "7b5ea935-f0ee-4f17-aca9-f731d9ed63f2",
                "first_name": "Fcs",
                "surname": "Miranda ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Miranda ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "a8c73f27-6294-482c-a86f-bee86f164b32",
                "first_name": "Vivienne",
                "surname": "Lawlor ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Vivienne Lawlor ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "8bb70fc1-2665-4a1c-8b78-b697d757ec2c",
                "first_name": "Fsc",
                "surname": "Noreen ",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fsc Noreen ",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "334574a2-babe-40f0-bfb6-12524bf55bb7",
                "first_name": "Rourke",
                "surname": "Bradley",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Rourke Bradley",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "c78a23d1-3da8-43e1-be54-1e62a357f903",
                "first_name": "Ebby",
                "surname": "Stafford",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Ebby Stafford",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "01ad3553-6cb1-4f48-aa2c-82f56bcb75bf",
                "first_name": "Padraig",
                "surname": "O'Connor",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Padraig O'Connor",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "aafbb4b0-929e-4ee4-abe1-49fd0d4c7ab6",
                "first_name": "Aisling",
                "surname": "Mulvaney",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Aisling Mulvaney",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "9dd40887-3f0b-4253-9493-eec5c7001f70",
                "first_name": "Emma",
                "surname": "Rowley",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Emma Rowley",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "6c6fd975-2124-4cbc-8e03-13bae51e9fc2",
                "first_name": "Paul",
                "surname": "Deegan",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Paul Deegan",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "ef341bc2-95e4-4a21-8d80-584fc2d762e5",
                "first_name": "Srilaxmi",
                "surname": "Gandikota",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Srilaxmi Gandikota",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "a7964b22-c76b-440f-95fe-2de92415d065",
                "first_name": "Elizabeth",
                "surname": "Stewart",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Elizabeth Stewart",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "81da13ff-4fe6-495d-9744-2354a5fd4822",
                "first_name": "Aoife",
                "surname": "Forrestal",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Aoife Forrestal",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "329c2e30-0f18-410c-877b-fa2fd5a26a0d",
                "first_name": "Harry",
                "surname": "Talty",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Harry Talty",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "c44af3a1-61d7-4974-9f55-65fd9dbde266",
                "first_name": "Dixie",
                "surname": "Chai Yu En",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Dixie Chai Yu En",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "f882874f-8090-4fd7-8987-302d51158bdd",
                "first_name": "Melanie",
                "surname": "Zitka",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Melanie Zitka",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "ca988018-fd2e-4963-8bd4-25a97f2e31ba",
                "first_name": "Megan",
                "surname": "O'Brien",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Megan O'Brien",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "0e040982-147b-4011-a09f-ac5afc42688d",
                "first_name": "Mary Ellen",
                "surname": "Angland",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Mary Ellen Angland",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "db98c1a0-2cd8-4d5b-86c4-4b54cda7d079",
                "first_name": "Sheena",
                "surname": "Forde",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Sheena Forde",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "62e9ef7c-53f4-4e37-bc5b-8cb428891391",
                "first_name": "Devika",
                "surname": "Kulkarni",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Devika Kulkarni",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "0ff9aab2-7516-4193-af1b-d9f5a01bfeb1",
                "first_name": "Luke",
                "surname": "Corr",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Luke Corr",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "49ca9fe8-4693-4e4c-9109-fbaec47eb37a",
                "first_name": "Fcs Fatima",
                "surname": "Shafique",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Fatima Shafique",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "824bb556-c888-42f8-8543-c6c62141b81b",
                "first_name": "Keith",
                "surname": "Phelan",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Keith Phelan",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "ca36253c-6243-4373-84e8-fb98b4fa5754",
                "first_name": "Nadia",
                "surname": "Stokes",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Nadia Stokes",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "9bf48363-a1f4-4926-a150-a9ebc49b455d",
                "first_name": "Dayo",
                "surname": "Aderemi",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Dayo Aderemi",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "0a6cffe8-6cc8-4a1e-ae4d-72e12e5a4103",
                "first_name": "Fcs Adriana",
                "surname": "Wiedeheft",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Fcs Adriana Wiedeheft",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "219a4d2f-d160-4075-878c-145206f8c1f4",
                "first_name": "Adrian",
                "surname": "Young",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Adrian Young",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "81d9f413-d87c-45d1-aaf4-49c36f5bcdb9",
                "first_name": "Lorraine",
                "surname": "Bourke",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Lorraine Bourke",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "994dc772-3d06-4347-9edb-e78dc311c044",
                "first_name": "Joana",
                "surname": "Guttler",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Joana Guttler",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "c29c9db1-51dd-4a52-9eca-d3777587333c",
                "first_name": "Eva",
                "surname": "Soler",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Eva Soler",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "7c6d2318-d753-4a9e-b502-054d8ad79477",
                "first_name": "Molly",
                "surname": "Nee",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Molly Nee",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "ba3cd469-302c-412a-be83-6593ce2fbee2",
                "first_name": "Chris",
                "surname": "O'Kane",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Chris O'Kane",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "550ebcb3-490c-470e-84ca-039df1c36d47",
                "first_name": "Prachi",
                "surname": "Patkar",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Prachi Patkar",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "65b5b552-fa57-4de7-8ce4-4a307cbb7bbd",
                "first_name": "Niall",
                "surname": "Moran",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Niall Moran",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "40e620d3-1a54-46ee-8a8c-fec5ee5afe78",
                "first_name": "Killian",
                "surname": "Waldron",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Killian Waldron",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "37116e51-84d3-4a65-9f70-e4004c91bda5",
                "first_name": "Christopher",
                "surname": "O'Kane",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Christopher O'Kane",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "c795331f-b690-4a20-bff1-7c83508ec5d3",
                "first_name": "Catherine",
                "surname": "Roche",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Catherine Roche",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "f60f57f8-b833-44f3-9437-5ad313243a92",
                "first_name": "Mo",
                "surname": "Zier",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Mo Zier",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            },
            {
                "uuid": "666466eb-8e93-4c3e-b88e-932ab3ce7967",
                "first_name": "Simone",
                "surname": "Paganini",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Simone Paganini",
                "role": "foodnet_administrator",
                "organisation": {
                    "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
                    "name": "FoodCloud",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7288565,
                    "official_id": null,
                    "accept_by_offset": 30,
                    "vip_window": 30,
                    "is_vip_window_active": 1,
                    "phone": "+35315313478",
                    "address_1": "Unit 8 Broomhill Road",
                    "address_2": "",
                    "city_town": "South Dublin",
                    "post_code": "D24 CD32",
                    "latitude": "53.29635950",
                    "longitude": "-6.35568570",
                    "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
                    "food_safety_info": null,
                    "is_active": true,
                    "is_featured": 1,
                    "is_friend_group": 0,
                    "receipt_sending_option": 1,
                    "created_at": "2021-03-15T00:26:30.000000Z",
                    "updated_at": "2024-01-24T14:11:16.000000Z",
                    "deleted_at": null,
                    "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
                }
            }
        ],
        "organisation_type": {
            "name": "FoodBank"
        },
        "image": {
            "filename": "65b11a8160fb1a2b56883.png"
        },
        "measure_units": [],
        "country": {
            "id": 2963597,
            "name": "Ireland",
            "latitude": 53,
            "longitude": -8,
            "code": "IE",
            "is_constituency_based": 0
        },
        "county": {
            "id": 7288565,
            "countries_id": 2963597,
            "provinces_id": 7521314,
            "name": "South Dublin",
            "latitude": 53.28595,
            "longitude": -6.37739
        },
        "province": {
            "id": 7521314,
            "countries_id": 2963597,
            "name": "Leinster",
            "latitude": 53.16667,
            "longitude": -7.02121
        }
    },
    "frontendRedirect": false,
    "callTime": 0.4128379821777344,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/organisation

Headers

AuthorizationToken      

Example: Bearer {token}

Get active user details

requires authentication

This endpoint returns the information for the authenticated user.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1999
 

{
    "status": "success",
    "data": {
        "uuid": "9e90e7f3-b68b-482d-9eea-1f00ebb4a762",
        "first_name": "Integration User",
        "surname": "DO NOT EDIT",
        "language_code": "en_IE",
        "mobile_number": null,
        "email": "[email protected]",
        "availability": null,
        "mode_of_transport": null,
        "pickup_locations": null,
        "is_active": 1,
        "is_organisation_admin": 1,
        "created_at": "2021-03-15T00:26:30.000000Z",
        "updated_at": "2024-07-02T14:45:13.000000Z",
        "full_name": "Integration User DO NOT EDIT",
        "role": "foodnet_administrator",
        "branches": [
            {
                "name": "FoodCloud branch 1",
                "uuid": "fbaf899a-c360-4dee-8618-a0bfefd8bace",
                "in_line_address": ""
            }
        ],
        "image": {
            "filename": "60580d695be1792a9c03a.png"
        },
        "organisation": {
            "uuid": "eaf34aa3-d609-4e4a-898f-213d6ad3b730",
            "name": "FoodCloud",
            "countries_id": 2963597,
            "provinces_id": 7521314,
            "counties_id": 7288565,
            "official_id": null,
            "accept_by_offset": 30,
            "vip_window": 30,
            "is_vip_window_active": 1,
            "phone": "+35315313478",
            "address_1": "Unit 8 Broomhill Road",
            "address_2": "",
            "city_town": "South Dublin",
            "post_code": "D24 CD32",
            "latitude": "53.29635950",
            "longitude": "-6.35568570",
            "description": "FoodCloud is a non-profit social enterprise with a vision of a world where no good food goes to waste",
            "food_safety_info": null,
            "is_active": true,
            "is_featured": 1,
            "is_friend_group": 0,
            "receipt_sending_option": 1,
            "created_at": "2021-03-15T00:26:30.000000Z",
            "updated_at": "2024-01-24T14:11:16.000000Z",
            "deleted_at": null,
            "in_line_address": "Unit 8 Broomhill Road, South Dublin D24 CD32, South Dublin, Leinster, Ireland"
        }
    },
    "frontendRedirect": false,
    "callTime": 0.03569602966308594,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user

Headers

AuthorizationToken      

Example: Bearer {token}

Update active user information

requires authentication

This endpoint updates the information for the authenticated user.

Example request:
curl --request PUT \
    "https://api-qa.foodiverse.net/api/user" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"first_name\": \"Test\",
    \"surname\": \"User\",
    \"email\": \"[email protected]\",
    \"mobile_number\": \"+353861234567\",
    \"language_code\": \"en_IE\",
    \"is_organisation_admin\": \"0\",
    \"password\": \"|]|{+-\",
    \"password_confirmation\": \"architecto\",
    \"password_current\": \"architecto\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "Test",
    "surname": "User",
    "email": "[email protected]",
    "mobile_number": "+353861234567",
    "language_code": "en_IE",
    "is_organisation_admin": "0",
    "password": "|]|{+-",
    "password_confirmation": "architecto",
    "password_current": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user';
$response = $client->put(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'first_name' => 'Test',
            'surname' => 'User',
            'email' => '[email protected]',
            'mobile_number' => '+353861234567',
            'language_code' => 'en_IE',
            'is_organisation_admin' => '0',
            'password' => '|]|{+-',
            'password_confirmation' => 'architecto',
            'password_current' => 'architecto',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user'
payload = {
    "first_name": "Test",
    "surname": "User",
    "email": "[email protected]",
    "mobile_number": "+353861234567",
    "language_code": "en_IE",
    "is_organisation_admin": "0",
    "password": "|]|{+-",
    "password_confirmation": "architecto",
    "password_current": "architecto"
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/user

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

first_name   String   

First name of the user. Example: Test

surname   String   

Surname of the user. Example: User

email   String  optional  

The email of the user. Example: [email protected]

mobile_number   String   

Mobile number of the user. Example: +353861234567

language_code   String   

The language code of the user. Example: en_IE

is_organisation_admin   Boolean  optional  

(Can only be set by an organisation admin) Example: 0

password   String  optional  

New password Example: |]|{+-

password_confirmation   String  optional  

New password confirmation (Required if 'password' is set) Example: architecto

password_current   String  optional  

Old password (Required if 'password' is set) Example: architecto

Get my files

requires authentication

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/file/my-files" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/file/my-files"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/file/my-files';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/file/my-files'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1998
 

{
    "status": "success",
    "data": {
        "data": [],
        "recordsFiltered": 0,
        "recordsTotal": 4021
    },
    "frontendRedirect": false,
    "callTime": 0.33341312408447266,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/file/my-files

Headers

AuthorizationToken      

Example: Bearer {token}

Get active user Locale

requires authentication

This endpoint returns the locale for the authenticated user.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/locale" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/locale"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/locale';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/locale'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1997
 

{
    "status": "success",
    "data": {
        "language_code": "en_IE"
    },
    "frontendRedirect": false,
    "callTime": 0.0032091140747070312,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/locale

Headers

AuthorizationToken      

Example: Bearer {token}

Update active user Locale

requires authentication

This endpoint updates the locale for the authenticated user.

Example request:
curl --request PUT \
    "https://api-qa.foodiverse.net/api/user/locale" \
    --header "AuthorizationToken: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"language_code\": \"en_IE\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/locale"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "language_code": "en_IE"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/locale';
$response = $client->put(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'language_code' => 'en_IE',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/locale'
payload = {
    "language_code": "en_IE"
}
headers = {
  'AuthorizationToken': 'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/user/locale

Headers

AuthorizationToken      

Example: Bearer {token}

Content-Type      

Example: application/json

Body Parameters

language_code   String   

The language code of the user. Example: en_IE

Get env feature flags

requires authentication

This endpoint returns the feature flags set in the environment for the authenticated user.

Example request:
curl --request GET \
    --get "https://api-qa.foodiverse.net/api/user/feature_flags" \
    --header "AuthorizationToken: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/feature_flags"
);

const headers = {
    "AuthorizationToken": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://api-qa.foodiverse.net/api/user/feature_flags';
$response = $client->get(
    $url,
    [
        'headers' => [
            'AuthorizationToken' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/user/feature_flags'
headers = {
  'AuthorizationToken': 'Bearer {token}'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1996
 

{
    "status": "success",
    "data": {
        "geofilter": true,
        "pldvisible": true,
        "fvpushnotifications": true,
        "temporaryclosure": true,
        "donationsplitting": true,
        "donation_split_automation": false
    },
    "frontendRedirect": false,
    "callTime": 3.600120544433594e-5,
    "charityIosVersion": "1.0.0",
    "charityAndroidVersion": "1.0.0",
    "donorIosVersion": "1.0.0",
    "donorAndroidVersion": "1.0.0",
    "foodbankIosVersion": "1.0.0",
    "foodbankAndroidVersion": "1.0.0",
    "newAppUrl": "http://food.cloud/new-app"
}
 

Request      

GET api/user/feature_flags

Headers

AuthorizationToken      

Example: Bearer {token}