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

This API is authenticated by sending an Authorization 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();
$response = $client->post(
    'https://api-qa.foodiverse.net/api/user/login',
    [
        '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

Body Parameters

email  String  

The email of the user.

password  String  

The password of the user.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/logout"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/logout',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": {
        "data": [
            {
                "name": "Little Extra Grocer IOFN 1.5",
                "tsm_current_state": "Activated",
                "uuid": "06d2eba5-d3bb-498a-b20d-61960fa3e106",
                "created_at": "2022-09-12T10:39:50.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "cfcdad83-aaf4-40f3-a30a-db669c6491d2",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "cfcdad83-aaf4-40f3-a30a-db669c6491d2",
                    "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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "36 Main Street, District A4, Bundoran F94 YHR6, Co. Donegal, Ulster, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ad18f733-9af9-4ff7-b692-d693fe6371de",
                            "first_name": "Duty 04",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-12T10:39:57.000000Z",
                            "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": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:39.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521316,
                        "countries_id": 2963597,
                        "name": "Ulster",
                        "latitude": 54.92732,
                        "longitude": -7.9395,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer IOFN 1.7",
                "tsm_current_state": "Activated",
                "uuid": "7519c138-d45e-4f22-a382-5fb67a029ff2",
                "created_at": "2022-09-12T10:39:50.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "ecd761d0-be28-45f7-be38-8318c60b1162",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "ecd761d0-be28-45f7-be38-8318c60b1162",
                    "name": "Little Extra Grocer IOFN 1.7",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7778677,
                    "official_id": "LEG:2226",
                    "address_1": "37 Main Street",
                    "address_2": "District A5",
                    "city_town": "Dublin",
                    "post_code": "D08 HY100",
                    "phone": null,
                    "latitude": "53.35512000",
                    "longitude": "-6.24922000",
                    "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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "37 Main Street, District A5, Dublin D08 HY100, Dublin City, Leinster, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "f0f46948-3b31-4810-9305-4c5d208c4584",
                            "first_name": "Duty 05",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-12T10:39:57.000000Z",
                            "full_name": "Duty 05 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 7778677,
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "name": "Dublin City",
                        "latitude": 53.35512,
                        "longitude": -6.24922,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521314,
                        "countries_id": 2963597,
                        "name": "Leinster",
                        "latitude": 53.16667,
                        "longitude": -7.02121,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer IOFN 1.8",
                "tsm_current_state": "Activated",
                "uuid": "0a915e40-1353-4a21-b6ff-c5b19e35e71a",
                "created_at": "2022-09-12T10:39:50.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "fed39ad5-ebfb-4cbb-acd1-786dd9271ff6",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "fed39ad5-ebfb-4cbb-acd1-786dd9271ff6",
                    "name": "Little Extra Grocer IOFN 1.8",
                    "countries_id": 2963597,
                    "provinces_id": 7521313,
                    "counties_id": 2964179,
                    "official_id": "LEG:2227",
                    "address_1": "38 Main Street",
                    "address_2": "District A6",
                    "city_town": "Galway",
                    "post_code": "H91 CYN4",
                    "phone": null,
                    "latitude": "53.33333000",
                    "longitude": "-9.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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "38 Main Street, District A6, Galway H91 CYN4, Galway, Connaught, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "38f7adc6-84da-4991-8b84-bfce9df102ff",
                            "first_name": "Duty 06",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-12T10:39:57.000000Z",
                            "full_name": "Duty 06 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 2964179,
                        "countries_id": 2963597,
                        "provinces_id": 7521313,
                        "name": "Galway",
                        "latitude": 53.33333,
                        "longitude": -9,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521313,
                        "countries_id": 2963597,
                        "name": "Connaught",
                        "latitude": 53.87,
                        "longitude": -8.63333,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer SchD 1.0",
                "tsm_current_state": "Activated",
                "uuid": "e258b048-c296-4652-9e53-542fbf131be3",
                "created_at": "2022-09-12T10:39:50.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "aa8f632d-b3c6-42e3-a1db-a7671410595d",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "aa8f632d-b3c6-42e3-a1db-a7671410595d",
                    "name": "Little Extra Grocer SchD 1.0",
                    "countries_id": 2963597,
                    "provinces_id": 7521315,
                    "counties_id": 2961191,
                    "official_id": "LEG:2228",
                    "address_1": "39 Main Street",
                    "address_2": "District A7",
                    "city_town": "Thurles",
                    "post_code": "E41 D5K9",
                    "phone": null,
                    "latitude": "52.66667000",
                    "longitude": "-7.83333000",
                    "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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "39 Main Street, District A7, Thurles E41 D5K9, Co. Tipperary, Munster, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "0dc95eda-7d03-4e66-b8ae-4bd266ff5316",
                            "first_name": "Duty 07",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:58.000000Z",
                            "updated_at": "2022-09-12T10:39:58.000000Z",
                            "full_name": "Duty 07 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 2961191,
                        "countries_id": 2963597,
                        "provinces_id": 7521315,
                        "name": "Co. Tipperary",
                        "latitude": 52.66667,
                        "longitude": -7.83333,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:39.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521315,
                        "countries_id": 2963597,
                        "name": "Munster",
                        "latitude": 52.34333,
                        "longitude": -8.71667,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer SchD 1.1",
                "tsm_current_state": "Activated",
                "uuid": "5d0c630b-5ed7-4d6c-9dcd-e226c1c1fd96",
                "created_at": "2022-09-12T10:39:50.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "9627a4ee-cd50-44f9-b2e4-8cda1bc8f962",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "9627a4ee-cd50-44f9-b2e4-8cda1bc8f962",
                    "name": "Little Extra Grocer SchD 1.1",
                    "countries_id": 2963597,
                    "provinces_id": 7521316,
                    "counties_id": 2964751,
                    "official_id": "LEG:2229",
                    "address_1": "40 Main Street",
                    "address_2": "District A8",
                    "city_town": "Bundoran",
                    "post_code": "F94 YHR7",
                    "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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "40 Main Street, District A8, Bundoran F94 YHR7, Co. Donegal, Ulster, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8bb6d545-a634-4957-b6a1-072bcf8a201f",
                            "first_name": "Duty 08",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:58.000000Z",
                            "updated_at": "2022-09-12T10:39:58.000000Z",
                            "full_name": "Duty 08 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 2964751,
                        "countries_id": 2963597,
                        "provinces_id": 7521316,
                        "name": "Co. Donegal",
                        "latitude": 54.91667,
                        "longitude": -8,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:39.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521316,
                        "countries_id": 2963597,
                        "name": "Ulster",
                        "latitude": 54.92732,
                        "longitude": -7.9395,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer SchD 1.7",
                "tsm_current_state": "Activated",
                "uuid": "8eb42ef2-2ac7-400b-81d5-1c61c1bdbca4",
                "created_at": "2022-09-12T10:39:50.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "1e685bde-4384-4a9b-8706-22c6ca2c02be",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "1e685bde-4384-4a9b-8706-22c6ca2c02be",
                    "name": "Little Extra Grocer SchD 1.7",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7778677,
                    "official_id": "LEG:2230",
                    "address_1": "41 Main Street",
                    "address_2": "District A9",
                    "city_town": "Dublin",
                    "post_code": "D08 HY101",
                    "phone": null,
                    "latitude": "53.35512000",
                    "longitude": "-6.24922000",
                    "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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "41 Main Street, District A9, Dublin D08 HY101, Dublin City, Leinster, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "a1e6f8f7-2145-491b-9a76-fa1a632a66e1",
                            "first_name": "Duty 09",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:58.000000Z",
                            "updated_at": "2022-09-12T10:39:58.000000Z",
                            "full_name": "Duty 09 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 7778677,
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "name": "Dublin City",
                        "latitude": 53.35512,
                        "longitude": -6.24922,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521314,
                        "countries_id": 2963597,
                        "name": "Leinster",
                        "latitude": 53.16667,
                        "longitude": -7.02121,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer SchD 1.8",
                "tsm_current_state": "Activated",
                "uuid": "ce4456d1-c765-407e-a396-9006de7d2026",
                "created_at": "2022-09-12T10:39:50.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "90009bcb-01bd-4f06-b44f-118cb60f9603",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "90009bcb-01bd-4f06-b44f-118cb60f9603",
                    "name": "Little Extra Grocer SchD 1.8",
                    "countries_id": 2963597,
                    "provinces_id": 7521313,
                    "counties_id": 2964179,
                    "official_id": "LEG:2231",
                    "address_1": "42 Main Street",
                    "address_2": "District A10",
                    "city_town": "Galway",
                    "post_code": "H91 CYN5",
                    "phone": null,
                    "latitude": "53.33333000",
                    "longitude": "-9.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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "42 Main Street, District A10, Galway H91 CYN5, Galway, Connaught, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "85690659-d18b-4232-a9e0-55c2408f9fd6",
                            "first_name": "Duty 10",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:58.000000Z",
                            "updated_at": "2022-09-12T10:39:58.000000Z",
                            "full_name": "Duty 10 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 2964179,
                        "countries_id": 2963597,
                        "provinces_id": 7521313,
                        "name": "Galway",
                        "latitude": 53.33333,
                        "longitude": -9,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521313,
                        "countries_id": 2963597,
                        "name": "Connaught",
                        "latitude": 53.87,
                        "longitude": -8.63333,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer SchD 1.9",
                "tsm_current_state": "Activated",
                "uuid": "ddd78cd6-04ae-4cb7-937a-78b5ab08a925",
                "created_at": "2022-09-12T10:39:51.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "3b560e25-c606-4aa6-92d6-b5fb269a63de",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "3b560e25-c606-4aa6-92d6-b5fb269a63de",
                    "name": "Little Extra Grocer SchD 1.9",
                    "countries_id": 2963597,
                    "provinces_id": 7521313,
                    "counties_id": 2964179,
                    "official_id": "LEG:2232",
                    "address_1": "43 Main Street",
                    "address_2": "District A11",
                    "city_town": "Galway",
                    "post_code": "H91 CYN6",
                    "phone": null,
                    "latitude": "53.33333000",
                    "longitude": "-9.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-09-12T10:39:50.000000Z",
                    "updated_at": "2022-09-12T10:39:50.000000Z",
                    "deleted_at": null,
                    "in_line_address": "43 Main Street, District A11, Galway H91 CYN6, Galway, Connaught, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "b4bf52c7-bc50-4cb7-a585-952d21b7c545",
                            "first_name": "Duty 11",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:58.000000Z",
                            "updated_at": "2022-09-12T10:39:58.000000Z",
                            "full_name": "Duty 11 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 2964179,
                        "countries_id": 2963597,
                        "provinces_id": 7521313,
                        "name": "Galway",
                        "latitude": 53.33333,
                        "longitude": -9,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521313,
                        "countries_id": 2963597,
                        "name": "Connaught",
                        "latitude": 53.87,
                        "longitude": -8.63333,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer SchD 1.13",
                "tsm_current_state": "Activated",
                "uuid": "9f254932-8cd1-49ae-9911-656abb575224",
                "created_at": "2022-09-12T10:39:51.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "8cadb59f-52c5-44ab-9146-182ae7c3bc75",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "8cadb59f-52c5-44ab-9146-182ae7c3bc75",
                    "name": "Little Extra Grocer SchD 1.13",
                    "countries_id": 2963597,
                    "provinces_id": 7521316,
                    "counties_id": 2964751,
                    "official_id": "LEG:2233",
                    "address_1": "44 Main Street",
                    "address_2": "District A12",
                    "city_town": "Bundoran",
                    "post_code": "F94 YHR8",
                    "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-09-12T10:39:51.000000Z",
                    "updated_at": "2022-09-12T10:39:51.000000Z",
                    "deleted_at": null,
                    "in_line_address": "44 Main Street, District A12, Bundoran F94 YHR8, Co. Donegal, Ulster, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "1ae93836-e35d-49c5-a4e8-442d8e7e2bcf",
                            "first_name": "Duty 12",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:58.000000Z",
                            "updated_at": "2022-09-21T10:56:13.000000Z",
                            "full_name": "Duty 12 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 2964751,
                        "countries_id": 2963597,
                        "provinces_id": 7521316,
                        "name": "Co. Donegal",
                        "latitude": 54.91667,
                        "longitude": -8,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:39.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521316,
                        "countries_id": 2963597,
                        "name": "Ulster",
                        "latitude": 54.92732,
                        "longitude": -7.9395,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "name": "Little Extra Grocer SchD 1.17",
                "tsm_current_state": "Activated",
                "uuid": "761f37d4-446c-43bf-b4d3-284e52f0ad07",
                "created_at": "2022-09-12T10:39:51.000000Z",
                "updated_at": "2022-09-23T08:22:35.000000Z",
                "cancellation_requested": 0,
                "branch_uuid": "b9b39ebd-0232-46aa-91ac-14c51d4fa291",
                "foodnet": "Deprecated",
                "is_removable": 1,
                "transitions": {
                    "request_membership_cancellation": {
                        "color": "green",
                        "icon": "far fa-play-circle",
                        "name": "Request Membership Cancellation",
                        "context": "foodnets"
                    }
                },
                "status_style": {
                    "color": "green",
                    "icon": "far fa-play-circle"
                },
                "tsm_current_state_label": "activated",
                "network": {
                    "uuid": "b71cc33d-8e36-4220-82d1-ac2ec61083cf",
                    "description": "test test test",
                    "max_donation_volume_kg": 500,
                    "donation_interval": 30,
                    "requirements": "test test test",
                    "default_co2e": 3.2,
                    "default_meals_per_kg": 2.2,
                    "silence_collection_window_invitation_notifications": null,
                    "silence_network_membership_notifications": null,
                    "created_at": "2022-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-23T11:28:37.000000Z",
                    "deleted_at": null,
                    "is_public": false,
                    "organisation": {
                        "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                        "name": "MRT TESTING FOODBANK",
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "counties_id": 7778677,
                        "official_id": null,
                        "accept_by_offset": 30,
                        "phone": "+353857654321",
                        "address_1": "Test Address Line 1",
                        "address_2": "Test Address Line 2",
                        "city_town": "Dublin",
                        "post_code": "FV12345",
                        "latitude": "53.34980530",
                        "longitude": "-6.26030970",
                        "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-09-12T10:39:48.000000Z",
                        "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    }
                },
                "branch": {
                    "uuid": "b9b39ebd-0232-46aa-91ac-14c51d4fa291",
                    "name": "Little Extra Grocer SchD 1.17",
                    "countries_id": 2963597,
                    "provinces_id": 7521314,
                    "counties_id": 7778677,
                    "official_id": "LEG:2234",
                    "address_1": "45 Main Street",
                    "address_2": "District A13",
                    "city_town": "Dublin",
                    "post_code": "D08 HY102",
                    "phone": null,
                    "latitude": "53.35512000",
                    "longitude": "-6.24922000",
                    "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-09-12T10:39:51.000000Z",
                    "updated_at": "2022-09-12T10:39:51.000000Z",
                    "deleted_at": null,
                    "in_line_address": "45 Main Street, District A13, Dublin D08 HY102, Dublin City, Leinster, Ireland",
                    "organisation": {
                        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                        "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-09-12T10:39:49.000000Z",
                        "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "province": {
                            "id": 7521314,
                            "countries_id": 2963597,
                            "name": "Leinster",
                            "latitude": 53.16667,
                            "longitude": -7.02121,
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        },
                        "country": {
                            "id": 2963597,
                            "name": "Ireland",
                            "latitude": 53,
                            "longitude": -8,
                            "code": "IE",
                            "created_at": "2021-03-15T00:26:09.000000Z",
                            "updated_at": "2021-03-15T00:26:09.000000Z",
                            "deleted_at": null
                        }
                    },
                    "users": [
                        {
                            "uuid": "e02783ae-1ae2-4e1b-9803-46a9d9fa5a4f",
                            "first_name": "Catherine super",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": "+353897896789",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:06:03.000000Z",
                            "full_name": "Catherine super Delaney",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "5b7d3c94-302b-4e1c-8624-a6ef749e82db",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-12T11:31:04.000000Z",
                            "full_name": "Org Admin",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "8ea9dccf-01e0-41e1-a415-f8c1289fba0d",
                            "first_name": "Rourke",
                            "surname": "Bradley",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:49.000000Z",
                            "updated_at": "2022-09-23T11:09:55.000000Z",
                            "full_name": "Rourke Bradley",
                            "role": "foodnet_administrator",
                            "organisation": {
                                "uuid": "2fb94827-d98b-4424-b6fa-4612fc273c29",
                                "name": "MRT TESTING FOODBANK",
                                "countries_id": 2963597,
                                "provinces_id": 7521314,
                                "counties_id": 7778677,
                                "official_id": null,
                                "accept_by_offset": 30,
                                "phone": "+353857654321",
                                "address_1": "Test Address Line 1",
                                "address_2": "Test Address Line 2",
                                "city_town": "Dublin",
                                "post_code": "FV12345",
                                "latitude": "53.34980530",
                                "longitude": "-6.26030970",
                                "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-09-12T10:39:48.000000Z",
                                "updated_at": "2022-09-19T14:26:23.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                            "first_name": "Catherine",
                            "surname": "Delaney",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-13T21:37:55.000000Z",
                            "full_name": "Catherine Delaney",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                            "first_name": "Org",
                            "surname": "Admin",
                            "language_code": "cs_CZ",
                            "mobile_number": "+353859874000",
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 1,
                            "created_at": "2022-09-12T10:39:57.000000Z",
                            "updated_at": "2022-09-23T08:22:35.000000Z",
                            "full_name": "Org Admin",
                            "role": "admin",
                            "organisation": {
                                "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                                "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-09-12T10:39:49.000000Z",
                                "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "province": {
                                    "id": 7521314,
                                    "countries_id": 2963597,
                                    "name": "Leinster",
                                    "latitude": 53.16667,
                                    "longitude": -7.02121,
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                },
                                "country": {
                                    "id": 2963597,
                                    "name": "Ireland",
                                    "latitude": 53,
                                    "longitude": -8,
                                    "code": "IE",
                                    "created_at": "2021-03-15T00:26:09.000000Z",
                                    "updated_at": "2021-03-15T00:26:09.000000Z",
                                    "deleted_at": null
                                }
                            }
                        },
                        {
                            "uuid": "170c14f2-b5d2-4fe8-ba28-7d6ef5f4d641",
                            "first_name": "Duty 13",
                            "surname": "Manager",
                            "language_code": "en_IE",
                            "mobile_number": null,
                            "email": "[email protected]",
                            "is_active": 1,
                            "is_organisation_admin": 0,
                            "created_at": "2022-09-12T10:39:58.000000Z",
                            "updated_at": "2022-09-12T10:39:58.000000Z",
                            "full_name": "Duty 13 Manager",
                            "role": "user"
                        }
                    ],
                    "county": {
                        "id": 7778677,
                        "countries_id": 2963597,
                        "provinces_id": 7521314,
                        "name": "Dublin City",
                        "latitude": 53.35512,
                        "longitude": -6.24922,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521314,
                        "countries_id": 2963597,
                        "name": "Leinster",
                        "latitude": 53.16667,
                        "longitude": -7.02121,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            }
        ],
        "recordsFiltered": 129,
        "recordsTotal": 129
    },
    "frontendRedirect": false,
    "callTime": 0.14541316032409668,
    "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

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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}

URL Parameters

network_membership  string  

The UUID of the Network Membership to get.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

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

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': 'Bearer {token}'
}

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

Example response (200):

Show headers
content-type: text/html; charset=UTF-8
cache-control: no-cache, private
 

 

Request      

PUT api/foodnet/network_memberships/{network_membership}

PATCH api/foodnet/network_memberships/{network_membership}

URL Parameters

network_membership  string  

The UUID of the Network Membership to update.

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 "Authorization: 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 = {
    "Authorization": "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();
$response = $client->post(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/apply',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': 'Bearer {token}',
  'Content-Type': 'application/json'
}

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

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        "e_error_retrieving_data"
    ],
    "frontendRedirect": false,
    "callTime": 0.00940704345703125,
    "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}/apply

URL Parameters

network_uuid  string  

The UUID of the network to apply for membership.

Body Parameters

branches  string[]  

The UUIDS of the Branches to apply for network membership.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/measure_units"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/measure_units',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

URL Parameters

branch  string  

The UUID of the branch.

Schedules

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/quick-donation/schedules"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/quick-donation/schedules',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': 'Bearer {token}'
}

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

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        "e_error_retrieving_data"
    ],
    "frontendRedirect": false,
    "callTime": 0.008047103881835938,
    "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

URL Parameters

branch  string  

The UUID of the branch.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': 'Bearer {token}'
}

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

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        "e_error_retrieving_data"
    ],
    "frontendRedirect": false,
    "callTime": 0.005945920944213867,
    "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

URL Parameters

branch  string  

The UUID of the branch.

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 "Authorization: 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 = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_status',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.004707813262939453,
    "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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get the report for.

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 "Authorization: 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 = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_storage_type',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.0044498443603515625,
    "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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get the report for.

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 "Authorization: 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 = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/donations_by_parent_category',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.0044820308685302734,
    "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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get the report for.

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 "Authorization: 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 = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_storage_type',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.0050160884857177734,
    "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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get the report for.

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 "Authorization: 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 = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_parent_category',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.004553794860839844,
    "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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get the report for.

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 "Authorization: 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 = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/reports/offers_by_status',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": [],
    "frontendRedirect": false,
    "callTime": 0.004712104797363281,
    "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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get the report for.

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
}"
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
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-qa.foodiverse.net/api/user/register',
    [
        '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,
        ],
    ]
);
$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
}
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

Body Parameters

first_name  String  

First name of the user.

surname  String  

Surname of the user.

email  String  

The email of the user.

mobile_number  String  

Mobile number of the user.

mobile_number_country_code  String  

The country code of the mobile_number provided.

phone  String  

Organization phone number

phone_country_code  String  

Organization phone number.

name  String  

Organization Name.

organisation_type  Object  

Organisation Type Object.

address_1  String  

Organisation address line 1.

address_2  String optional  

Organisation address line 2.

postcode  String  

Organisations Eir Code.

city_town  String  

Organisation city / town.

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.

longitude  number optional  

Organisation longitude.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/one_signal"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/one_signal',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

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 "Authorization: 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 = {
    "Authorization": "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();
$response = $client->post(
    'https://api-qa.foodiverse.net/api/user/one_signal',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

Body Parameters

player_id  String  

The Player ID to add to the user.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/one_signal/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-qa.foodiverse.net/api/user/one_signal/5ce3a914-8a20-4e83-9e5a-059361de5d04',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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}

URL Parameters

id  string  

The Player ID to delete.

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/consequatur/products" \
    --header "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/donation/responses/consequatur/products"
);

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

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-qa.foodiverse.net/api/donation/responses/consequatur/products',
    [
        'headers' => [
            'Authorization' => 'Bearer {token}',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://api-qa.foodiverse.net/api/donation/responses/consequatur/products'
headers = {
  'Authorization': 'Bearer {token}'
}

response = requests.request('PUT', url, headers=headers)
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

URL Parameters

response_uuid  string  

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/offers"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/offers',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get offers for.

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=17" \
    --header "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules"
);

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

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/schedules',
    [
        'headers' => [
            'Authorization' => 'Bearer {token}',
        ],
        'query' => [
            'page'=> '17',
        ],
    ]
);
$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': '17',
}
headers = {
  'Authorization': 'Bearer {token}'
}

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

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        "e_error_retrieving_data"
    ],
    "frontendRedirect": false,
    "callTime": 0.005814075469970703,
    "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

URL Parameters

network_membership_uuid  string  

The UUID of the network membership to get schedules for.

Query Parameters

page  integer optional  

The page number to return

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/branches',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

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/17" \
    --header "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/17"
);

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

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

url = 'https://api-qa.foodiverse.net/api/user/branches/17'
headers = {
  'Authorization': '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,
        "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}

URL Parameters

id  integer  

The ID of the branch.

branch  string  

The UUID of the branch.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/charities"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/charities',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

URL Parameters

branch  string  

The UUID of the branch.

Endpoints

Rest user password

requires authentication

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

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

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

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

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

Example response (422):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        {
            "field": "email",
            "message": "e_email_required"
        }
    ],
    "frontendRedirect": false,
    "callTime": 0.005491018295288086,
    "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/user/invite/resend

PUT api/user/activate

requires authentication

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

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

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

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

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        "Undefined index: activation_key"
    ],
    "frontendRedirect": false,
    "callTime": 0.0022499561309814453,
    "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/user/activate

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

requires authentication

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

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

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

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

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        {
            "field": "email",
            "message": "e_email_required"
        }
    ],
    "frontendRedirect": false,
    "callTime": 0.002232074737548828,
    "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/user/password/reset

Rest user password

requires authentication

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

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

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

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

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        "Undefined index: restoration_key"
    ],
    "frontendRedirect": false,
    "callTime": 0.002877950668334961,
    "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/user/password/reset

Get active user details

requires authentication

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

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/organisation',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": {
        "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
        "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-09-12T10:39:49.000000Z",
        "updated_at": "2022-09-12T10:39:49.000000Z",
        "deleted_at": null,
        "in_line_address": "Test Address Line 1, Test Address Line 2, Dublin FV12345, Dublin City, Leinster, Ireland",
        "users": [
            {
                "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
                "first_name": "Catherine",
                "surname": "Delaney",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Catherine Delaney",
                "role": "admin",
                "organisation": {
                    "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                    "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-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521314,
                        "countries_id": 2963597,
                        "name": "Leinster",
                        "latitude": 53.16667,
                        "longitude": -7.02121,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            },
            {
                "uuid": "88c32971-87f7-43f9-a714-061c07fdac5f",
                "first_name": "Org",
                "surname": "Admin",
                "email": "[email protected]",
                "is_organisation_admin": 1,
                "full_name": "Org Admin",
                "role": "admin",
                "organisation": {
                    "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
                    "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-09-12T10:39:49.000000Z",
                    "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "province": {
                        "id": 7521314,
                        "countries_id": 2963597,
                        "name": "Leinster",
                        "latitude": 53.16667,
                        "longitude": -7.02121,
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    },
                    "country": {
                        "id": 2963597,
                        "name": "Ireland",
                        "latitude": 53,
                        "longitude": -8,
                        "code": "IE",
                        "created_at": "2021-03-15T00:26:09.000000Z",
                        "updated_at": "2021-03-15T00:26:09.000000Z",
                        "deleted_at": null
                    }
                }
            }
        ],
        "organisation_type": {
            "name": "Donor"
        },
        "image": null,
        "measure_units": [],
        "country": {
            "id": 2963597,
            "name": "Ireland",
            "latitude": 53,
            "longitude": -8,
            "code": "IE",
            "created_at": "2021-03-15T00:26:09.000000Z",
            "updated_at": "2021-03-15T00:26:09.000000Z",
            "deleted_at": null
        },
        "county": {
            "id": 7778677,
            "countries_id": 2963597,
            "provinces_id": 7521314,
            "name": "Dublin City",
            "latitude": 53.35512,
            "longitude": -6.24922,
            "created_at": "2021-03-15T00:26:09.000000Z",
            "updated_at": "2021-03-15T00:26:09.000000Z",
            "deleted_at": null
        },
        "province": {
            "id": 7521314,
            "countries_id": 2963597,
            "name": "Leinster",
            "latitude": 53.16667,
            "longitude": -7.02121,
            "created_at": "2021-03-15T00:26:09.000000Z",
            "updated_at": "2021-03-15T00:26:09.000000Z",
            "deleted_at": null
        }
    },
    "frontendRedirect": false,
    "callTime": 0.03968310356140137,
    "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

GET api/user/file/my-files

requires authentication

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

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/file/my-files',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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
 
{
    "status": "success",
    "data": {
        "data": [],
        "recordsFiltered": 0,
        "recordsTotal": 841
    },
    "frontendRedirect": false,
    "callTime": 0.008779048919677734,
    "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

GET api/user/network_organisation

requires authentication

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

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

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

url = 'https://api-qa.foodiverse.net/api/user/network_organisation'
headers = {
  'Authorization': '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
 
{
    "status": "success",
    "data": [
        {
            "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
            "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-09-12T10:39:49.000000Z",
            "updated_at": "2022-09-12T10:39:49.000000Z",
            "deleted_at": null,
            "in_line_address": "Test Address Line 1, Test Address Line 2, Dublin FV12345, Dublin City, Leinster, Ireland",
            "pivot": {
                "users_organisations_id": 17154,
                "branches_organisations_id": 17154
            },
            "county": {
                "id": 7778677,
                "countries_id": 2963597,
                "provinces_id": 7521314,
                "name": "Dublin City",
                "latitude": 53.35512,
                "longitude": -6.24922,
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            },
            "province": {
                "id": 7521314,
                "countries_id": 2963597,
                "name": "Leinster",
                "latitude": 53.16667,
                "longitude": -7.02121,
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            },
            "country": {
                "id": 2963597,
                "name": "Ireland",
                "latitude": 53,
                "longitude": -8,
                "code": "IE",
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            }
        }
    ],
    "frontendRedirect": false,
    "callTime": 0.1022038459777832,
    "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

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/donations"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/foodnet/network_memberships/5ce3a914-8a20-4e83-9e5a-059361de5d04/donations',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

URL Parameters

network_membership_uuid  string  

The UUID of the Network Membership to get donations for.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/donation_windows"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/donation_windows',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

URL Parameters

branch  string  

The UUID of the branch.

Donation Response

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/donation_responses/5ce3a914-8a20-4e83-9e5a-059361de5d04',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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}

URL Parameters

uuid  string  

The UUID of the donation response.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/collection_windows"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/user/branches/5ce3a914-8a20-4e83-9e5a-059361de5d04/collection_windows',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

URL Parameters

branch  string  

The UUID of the branch.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/categories"
);

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

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

url = 'https://api-qa.foodiverse.net/api/categories'
headers = {
  'Authorization': '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

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/categories/5ce3a914-8a20-4e83-9e5a-059361de5d04"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/categories/5ce3a914-8a20-4e83-9e5a-059361de5d04',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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}

URL Parameters

id  string  

The UUID of the category.

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/admin/organisation/default_categories"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-qa.foodiverse.net/api/admin/organisation/default_categories',
    [
        'headers' => [
            'Authorization' => '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 = {
  'Authorization': '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

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 "Authorization: Bearer {token}" \
    --header "Content-Type: application/json" \
    --data "{
    \"categories\": [
        \"consequatur\"
    ]
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/admin/organisation/default_categories"
);

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

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

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-qa.foodiverse.net/api/admin/organisation/default_categories',
    [
        'headers' => [
            'Authorization' => 'Bearer {token}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'categories' => [
                'consequatur',
            ],
        ],
    ]
);
$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": [
        "consequatur"
    ]
}
headers = {
  'Authorization': 'Bearer {token}',
  'Content-Type': 'application/json'
}

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

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "success",
    "data": {
        "attached": [],
        "detached": [],
        "updated": []
    },
    "frontendRedirect": false,
    "callTime": 0.04095602035522461,
    "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/admin/organisation/default_categories

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/organisation/default_categories"
);

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

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

url = 'https://api-qa.foodiverse.net/api/organisation/default_categories'
headers = {
  'Authorization': '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/organisation/default_categories

User

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 "Authorization: Bearer {token}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user"
);

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

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

url = 'https://api-qa.foodiverse.net/api/user'
headers = {
  'Authorization': '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
 
{
    "status": "success",
    "data": {
        "uuid": "ebcceb24-fd35-4abb-b8f0-e824fea20783",
        "first_name": "Catherine",
        "surname": "Delaney",
        "language_code": "en_IE",
        "mobile_number": null,
        "email": "[email protected]",
        "is_active": 1,
        "is_organisation_admin": 1,
        "created_at": "2022-09-12T10:39:57.000000Z",
        "updated_at": "2022-09-13T21:37:55.000000Z",
        "full_name": "Catherine Delaney",
        "role": "admin",
        "branches": [
            {
                "name": "Little Extra Grocer JFN 1.0",
                "uuid": "3643a3ee-b4e3-4d51-a19a-b61d32d9bc66",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer IOFN 1.1",
                "uuid": "6609189f-d45d-4902-a0d8-a298fd3ecd63",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer IOFN 1.2",
                "uuid": "befdf4ef-f90e-495f-8779-b7dc36538b58",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer IOFN 1.5",
                "uuid": "cfcdad83-aaf4-40f3-a30a-db669c6491d2",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer IOFN 1.7",
                "uuid": "ecd761d0-be28-45f7-be38-8318c60b1162",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer IOFN 1.8",
                "uuid": "fed39ad5-ebfb-4cbb-acd1-786dd9271ff6",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.0",
                "uuid": "aa8f632d-b3c6-42e3-a1db-a7671410595d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.1",
                "uuid": "9627a4ee-cd50-44f9-b2e4-8cda1bc8f962",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.7",
                "uuid": "1e685bde-4384-4a9b-8706-22c6ca2c02be",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.8",
                "uuid": "90009bcb-01bd-4f06-b44f-118cb60f9603",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.9",
                "uuid": "3b560e25-c606-4aa6-92d6-b5fb269a63de",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.13",
                "uuid": "8cadb59f-52c5-44ab-9146-182ae7c3bc75",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.17",
                "uuid": "b9b39ebd-0232-46aa-91ac-14c51d4fa291",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.18",
                "uuid": "27dd566d-6e4f-45c8-9b39-95be06d442fe",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SchD 1.19",
                "uuid": "7e2334e9-a0ab-4643-9c46-1845cac02d52",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.0",
                "uuid": "12471cba-09bc-4773-ac9b-4d070332e69e",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.1",
                "uuid": "a888aafe-cd4a-4e05-bf63-c3a012d249db",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.4",
                "uuid": "c70235a4-5a72-4eb5-b8c9-38b8eeee2466",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.5",
                "uuid": "cd1708a6-9b2f-414a-a249-142e47a0a634",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.6",
                "uuid": "47cf02d5-920d-498f-b043-ab0a7fccd5ab",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.7",
                "uuid": "a7f5a8d5-fba4-42b6-9de4-660ed7ab0a62",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.8",
                "uuid": "a583617d-0713-467b-a617-bc4b68801097",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.9",
                "uuid": "e82be9b0-f7f6-477f-a3b9-75ca8f5511fc",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.12",
                "uuid": "106eeeba-1a5b-4ff3-a479-1b65e86756b0",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.13",
                "uuid": "f405a68a-7365-44ce-b66c-c659e908df21",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.15",
                "uuid": "ca11f978-861a-4c01-a7e9-7b836b4b1c0f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.16",
                "uuid": "393fdc5c-6423-43e5-9489-29a09a72da30",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DP 1.17",
                "uuid": "2491866c-35bc-4b39-ba46-9a084948365e",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 1.0",
                "uuid": "7478e97f-a00c-4975-8c92-a964dec4dd9d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 1.1",
                "uuid": "28066d0f-9239-4ffd-acc5-d9dfd2715897",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 1.2",
                "uuid": "dbd23f4b-e57e-4786-8ace-3b710f914040",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 1.3",
                "uuid": "7eb9f5e0-4df9-4e90-813b-81cd834a1421",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 1.4",
                "uuid": "3b5066dc-8502-49e2-b1cc-c6a517ec0318",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 1.10",
                "uuid": "a5c6bee2-5b15-4736-a3ff-934a6c802c68",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 1.11",
                "uuid": "71ad720f-50f2-4ab9-829c-7ba6eb338d9b",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.0",
                "uuid": "1a71105e-6853-44a2-9c8f-8d0b7aba76d4",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.1",
                "uuid": "3372110a-203d-4e09-b21a-054c0ec95977",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.3",
                "uuid": "46dd2f1b-7c24-476d-8ea0-bd33d3d5d981",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.5",
                "uuid": "38eb31e8-9648-4778-b8a9-c589563efeb4",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.6",
                "uuid": "629aae91-14f9-4668-8e86-11c5e230944a",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.7",
                "uuid": "1b1c7e59-a439-425d-a951-bf7ff7cfd6ab",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.8",
                "uuid": "7753d807-2f6b-4d03-928e-ed0eb524161d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.9",
                "uuid": "2671f6b6-30b5-40b5-876a-82b16c577e86",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer WMFB 2.10",
                "uuid": "ca4117e7-1fcd-49a1-85eb-6bf4d9a60c4f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer RAG 1.0",
                "uuid": "f758804d-e3f0-4d4b-8cef-6e10931f150b",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer RAG 1.1",
                "uuid": "cd311383-dae1-472a-8f27-9e69245a34f8",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer RAG 1.2",
                "uuid": "49706a43-efe1-459e-9cd0-a47fb479d9c5",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer RAG 1.3",
                "uuid": "3723b911-818b-4306-ac4e-e06c8395b6d7",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer RAG 1.4",
                "uuid": "da7c3e54-a75e-4dc2-a0c5-b3e15366ae13",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer RAG 1.5",
                "uuid": "5f74066e-8c8d-4d8a-8e93-047aca9bb5fe",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.3",
                "uuid": "8dfde990-ad35-42c3-ab70-a8ae152d8303",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.4",
                "uuid": "4cab3f46-ed08-4287-93c6-2f12c8b81e45",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.5",
                "uuid": "261069e0-0af5-4034-9e0a-eaeabcb24fa1",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.6",
                "uuid": "c1482749-399c-407a-8f54-24ebaa2fd1bc",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.8",
                "uuid": "4ee3787d-344c-4609-b137-35513b9c5aae",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.9",
                "uuid": "c694e7f1-0aa6-44a0-b9ee-7abd4cf2db8e",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.10",
                "uuid": "826d570a-4b26-4b2f-a4e8-b2565aa81c46",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.11",
                "uuid": "e2fa7e66-f796-462e-aa4e-5148c7e4b239",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DS 1.12",
                "uuid": "2bafd080-9d52-4c29-9ef3-c5478b57ca5e",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TS 1.4",
                "uuid": "12ba9da1-6158-4c02-aed7-c6eeaafdf392",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TS 1.5",
                "uuid": "99212887-398b-421a-9729-64caf0b8f5e8",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TS 1.7",
                "uuid": "8115f445-5421-421e-81bf-833d96651c27",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer DUP 1.0",
                "uuid": "b54ec259-c505-45c5-b204-7006f5a67eef",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer AAR 1.2",
                "uuid": "131f5d25-e997-426d-ad6e-4fb2b72eba47",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer AAR 1.3",
                "uuid": "fc57e967-28d7-4bf2-9725-3ffff3e300c3",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer AAR 1.4",
                "uuid": "ae45de28-9e1c-468b-98ba-1d563f6d8969",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer AAR 1.5",
                "uuid": "56a1bc92-936d-43dd-952e-7dbd76406ca1",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SMS 1.0",
                "uuid": "71e90b12-c46e-43af-9356-8573f7216b4c",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SMS 1.1",
                "uuid": "8a98dee1-62e7-4cec-a86e-f34d86ef2c7d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SMS 1.2",
                "uuid": "7a02880c-89b3-411b-b053-4fdacd88be55",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SMS 1.3",
                "uuid": "b95191d4-6ea2-4718-a9ed-d496c3ee3885",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SMS 1.4",
                "uuid": "76f9e464-1434-410f-8efc-e2534f4d0d16",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SMS 1.5",
                "uuid": "91cdc87e-dfb1-4d94-8282-ab7cb62fb64d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer SMS 1.6",
                "uuid": "018eb9e8-1ae5-4824-849b-5e1d36dd8549",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.0",
                "uuid": "e7f9c9df-0440-488c-8d15-aafa0d63db83",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.0.1",
                "uuid": "63d48e1b-9287-44d6-8972-b6cfd226901b",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.1",
                "uuid": "6b67b0c7-b601-4952-a0b5-4e05849654c4",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.1.1",
                "uuid": "26628f49-fe4d-4679-ab0c-88b86e20636a",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.3",
                "uuid": "cb1bebff-1ad3-43e5-bd89-67328e7457bf",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.3.1",
                "uuid": "67cd85aa-6125-42c3-9b91-91087333768d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.4",
                "uuid": "a931aaca-3015-4e38-9e0f-8aafd0bd5c60",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.4.1",
                "uuid": "d9f7ce54-db88-4d1d-9298-40e9fcd0793f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.5",
                "uuid": "28e91581-aa55-4f5a-863d-afa2f202a78a",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.5.1",
                "uuid": "f6ba3e1d-fb14-49d2-8ff6-10ce94f537ba",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.6",
                "uuid": "8daf6262-b7d2-4db3-963b-6861e6387821",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.6.1",
                "uuid": "63b36406-e105-4ee2-a8d6-759a0c1d2eee",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.7",
                "uuid": "02a3c98e-224c-4dd1-811e-335948e84012",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.7.1",
                "uuid": "3957de35-0185-40c8-80bf-dacc5fd336bf",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.11",
                "uuid": "b9be5658-426e-4157-b610-be6ad13f0de4",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.11.1",
                "uuid": "d594f5e8-812c-4185-8483-c10d005f060a",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.13",
                "uuid": "408ff2d8-6f0c-4045-aa86-04d653f84b2f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPC 1.13.1",
                "uuid": "f5e5c96d-1fe1-4455-8e17-708474322346",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.0",
                "uuid": "755ca46b-c6d3-4719-aeeb-912b5ed10f3f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.0.1",
                "uuid": "f1b11e84-b49d-4825-a336-b325555bb5a2",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.1",
                "uuid": "28f9aeff-dcab-490b-84f0-f799acb86a72",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.1.1",
                "uuid": "947425da-860b-4e8e-b48e-a06b5b8176d2",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.2",
                "uuid": "55408366-4794-4d84-9052-0ad666e3db53",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.2.1",
                "uuid": "ecf9622a-4182-4302-acbc-a22865e12a57",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.3",
                "uuid": "bee0e4b2-67c1-458f-9b9e-35b45908a92d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.3.1",
                "uuid": "9518e27b-b207-4b62-8e07-d5e24f2cdcff",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.12",
                "uuid": "a5c65dac-5ba9-4678-a029-37fbaaaefe20",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.12.1",
                "uuid": "998adaad-037a-40e7-95a9-ffcc52b0a27b",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.14",
                "uuid": "0a299d2a-30b7-49b1-9edc-3cdb93794cf7",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.14.1",
                "uuid": "956e9377-9f51-405c-b99f-e23ca7b022a4",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.15",
                "uuid": "3926b520-f116-4937-adc6-266832771d78",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer APPD 1.15.1",
                "uuid": "228006ac-0a46-4287-a532-29efcd46d2af",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.0",
                "uuid": "d3759381-b256-4a92-b945-daaacc03a6bb",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.1",
                "uuid": "4bdbfe97-0f90-4d87-9e22-238d3427d90c",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.2",
                "uuid": "e1a2cd3d-e00e-4b3b-8758-eea8672ace2b",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.3",
                "uuid": "996af05f-a033-47d3-9cdd-b078aecba57a",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.4",
                "uuid": "ca83e043-88d1-4453-a052-2a044164959a",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.5",
                "uuid": "143f9b37-3042-4362-8dcc-af8cfcf0e0ed",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.6",
                "uuid": "dd23437d-8357-483d-a3a7-4d12085885ee",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.7",
                "uuid": "dd83b497-037c-44fb-9cdd-1980ea8a8291",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.8",
                "uuid": "b1b7b864-ab3a-4553-9579-65c0e9ab04da",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer TEMP 1.9",
                "uuid": "29c54b1c-a053-438c-8f49-536b66e3f00e",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer PLD 1.1",
                "uuid": "9eed79f2-41cd-49b9-a072-75077a1e626f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer PLD 1.4",
                "uuid": "a7427332-4e62-40f7-a812-1f646a303505",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer PLD 1.5",
                "uuid": "67a8b7d8-1add-447d-8cf3-a5da8611ea29",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer PLD 1.6",
                "uuid": "b445ae38-cb44-4dac-8b28-013879b42465",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer PLD 1.7",
                "uuid": "c8a80e93-ff25-41f0-9be7-100b007b3f73",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Reports 1.0",
                "uuid": "553cbf13-9f27-4392-a79e-a2ed1fae1224",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Reports 1.1",
                "uuid": "00e61e44-3f90-4970-839d-9403047dab6e",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Reports 1.2",
                "uuid": "c4702d3a-3121-474c-b82f-11e70676fcc2",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Reports 1.3",
                "uuid": "fcd671bc-2372-4649-b88c-0287be2c9558",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Plus One 1.0",
                "uuid": "7214794a-ad12-486c-895c-2536352a832f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Plus One 1.1",
                "uuid": "15e4ec73-e604-4a47-9215-dbd66b888f7b",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Plus One 1.2",
                "uuid": "fed0adb9-7b72-4ffb-9f77-f77a4e7412e7",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Plus One 1.3",
                "uuid": "733c13b2-f55c-4422-936f-ab2c4fa66a3f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Plus One 1.4",
                "uuid": "34d01839-62f8-43f3-942b-956563eeb33d",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Plus One 1.5",
                "uuid": "471c9373-6cb0-4dc3-874f-425e6e7a5acf",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            },
            {
                "name": "Little Extra Grocer Plus One 1.6",
                "uuid": "b10ad8ae-b8cf-464f-80b5-c47991a0de2f",
                "in_line_address": "",
                "county": null,
                "province": null,
                "country": null
            }
        ],
        "image": {
            "filename": "6320f8335e895d33bf665.png"
        },
        "organisation": {
            "uuid": "99e0acfd-b411-44cb-ae67-351a5f254a1e",
            "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-09-12T10:39:49.000000Z",
            "updated_at": "2022-09-12T10:39:49.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": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            },
            "province": {
                "id": 7521314,
                "countries_id": 2963597,
                "name": "Leinster",
                "latitude": 53.16667,
                "longitude": -7.02121,
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            },
            "country": {
                "id": 2963597,
                "name": "Ireland",
                "latitude": 53,
                "longitude": -8,
                "code": "IE",
                "created_at": "2021-03-15T00:26:09.000000Z",
                "updated_at": "2021-03-15T00:26:09.000000Z",
                "deleted_at": null
            }
        }
    },
    "frontendRedirect": false,
    "callTime": 0.023612022399902344,
    "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

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 "Authorization: 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\": \"consequatur\",
    \"password_confirmation\": \"consequatur\",
    \"password_current\": \"consequatur\"
}"
const url = new URL(
    "https://api-qa.foodiverse.net/api/user"
);

const headers = {
    "Authorization": "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": "consequatur",
    "password_confirmation": "consequatur",
    "password_current": "consequatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-qa.foodiverse.net/api/user',
    [
        'headers' => [
            'Authorization' => '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' => 'consequatur',
            'password_confirmation' => 'consequatur',
            'password_current' => 'consequatur',
        ],
    ]
);
$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": "consequatur",
    "password_confirmation": "consequatur",
    "password_current": "consequatur"
}
headers = {
  'Authorization': 'Bearer {token}',
  'Content-Type': 'application/json'
}

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

Example response (400):

Show headers
cache-control: no-cache, private
content-type: application/json
 
{
    "status": "error",
    "data": [
        {
            "field": "email",
            "message": "e_email_unique"
        },
        {
            "field": "password",
            "message": "e_password_regex"
        },
        {
            "field": "password_current",
            "message": "e_password_current_invalid"
        }
    ],
    "frontendRedirect": false,
    "callTime": 0.07673406600952148,
    "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/user

Body Parameters

first_name  String  

First name of the user.

surname  String  

Surname of the user.

email  String optional  

The email of the user.

mobile_number  String  

Mobile number of the user.

language_code  String  

The language code of the user.

is_organisation_admin  Boolean optional  

(Can only be set by an organisation admin)

password  String optional  

New password

password_confirmation  String optional  

New password confirmation (Required if 'password' is set)

password_current  String optional  

Old password (Required if 'password' is set)