Skip to content

Instantly share code, notes, and snippets.

@prdanelli
Created August 9, 2023 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prdanelli/f25591218f5d0c2d8725203474152614 to your computer and use it in GitHub Desktop.
Save prdanelli/f25591218f5d0c2d8725203474152614 to your computer and use it in GitHub Desktop.
Inbound Webhook Payload 3
{
"EntityId":"0688705d-ea53-4010-8cb6-570fcb44e0d4",
"OrganisationId":"dce2c439-040b-448c-879c-045d99da9193",
"BranchId":"4aa26861-251d-46bc-9261-194d7a343e94",
"ExternalDonorBranchId":"TESCO:6316",
"DonationId":"67fe8dca-de31-4500-9729-1857f450888c",
"ExternalDonationId":"d565d704-2d3b-4297-992e-68b7577c779f",
"DonationCreatedAt":"2023-08-07T18:29:37.000000Z",
"Metadata":null,
"MessageType":"OfferPending",
"metadata":{
"status":"success",
"data":{
"uuid":"0688705d-ea53-4010-8cb6-570fcb44e0d4",
"type":"W",
"token":null,
"response_at":"2023-08-07 18:49:53",
"created_at":"2023-08-07 18:29:48",
"updated_at":"2023-08-07 18:49:53",
"deleted_at":null,
"tsm_current_state":"Accepted",
"uncollected_reason":null,
"accepted_at":"2023-08-07 18:49:53",
"declined_at":null,
"transferred_at":null,
"not_transferred_at":null,
"receipt_sent":0,
"total":0,
"style":{
"color":"green",
"icon":"fas fa-thumbs-up"
},
"transitions":{
"refuse":{
"color":"black",
"icon":"fas fa-times-circle",
"name":"Refuse",
"context":"charity"
},
"no_food_at_branch_reported":{
"color":"red",
"icon":"fas fa-exclamation-triangle",
"name":"No Food At Branch Reported",
"context":"charity"
}
},
"tsm_current_state_label":"accepted",
"donation_collection_window":{
"uuid":"96b00223-0ac6-4ce4-94ed-c7dba7cbe9ce",
"transfer_types_name":"Collection",
"transfer_types_label":"l_donation_transfer_type_collection",
"max_collectors":1,
"collection_window_starts_at":"2023-08-07 19:30:00",
"collection_window_ends_at":"2023-08-07 20:30:00",
"charity_branches":{
"primary":24787,
"waitlist":[
19825,
23568
]
},
"is_custom":0,
"created_at":"2023-08-07 18:29:37",
"updated_at":"2023-08-07 18:29:37",
"charity_branches_uuid":{
"primary":"41a1bc42-4e11-4712-881a-27af39e3af92",
"waitlist":[
"8c98ee2b-cfc1-46b5-88b2-91e1d97335f5",
"1f7be9de-eddf-439e-b251-a70d64d7b7e2"
]
}
},
"charity_branch":{
"name":"Olio - Waitlist",
"in_line_address":"",
"local_admins":[
{
"uuid":"0625e70f-3c8d-4f38-8873-24620c201cf1",
"first_name":"Integration User",
"surname":"do Not Edit",
"language_code":"en_GB",
"mobile_number":"+447795273090",
"email":"tech-foodiverse-inbound@olioex.com",
"is_active":1,
"is_organisation_admin":1,
"created_at":"2020-08-24T10:06:32.000000Z",
"updated_at":"2022-11-14T11:51:17.000000Z",
"full_name":"Integration User do Not Edit",
"role":"admin",
"organisation":{
"uuid":"750b8893-a276-4da1-ad2f-f33a71184563",
"name":"Olio Admin",
"countries_id":2635167,
"provinces_id":6269131,
"counties_id":2648110,
"official_id":null,
"accept_by_offset":30,
"phone":null,
"address_1":"Hartspring Cottage",
"address_2":"",
"city_town":"",
"post_code":"WD25 8HB",
"latitude":"51.58991960",
"longitude":"-0.12922470",
"description":null,
"food_safety_info":null,
"is_active":true,
"is_featured":0,
"is_friend_group":0,
"receipt_sending_option":1,
"created_at":"2020-03-16T16:20:15.000000Z",
"updated_at":"2021-03-15T00:55:03.000000Z",
"deleted_at":null,
"in_line_address":"Hartspring Cottage, WD25 8HB, Greater London, England, United Kingdom",
"county":{
"id":2648110,
"countries_id":2635167,
"provinces_id":6269131,
"name":"Greater London",
"latitude":51.5,
"longitude":-0.16667
},
"province":{
"id":6269131,
"countries_id":2635167,
"name":"England",
"latitude":52.16045,
"longitude":-0.70312
},
"country":{
"id":2635167,
"name":"United Kingdom",
"latitude":54.75844,
"longitude":-2.69531,
"code":"GB"
}
}
},
{
"uuid":"53e2b7d8-0946-4ee6-8786-c97afafd0d62",
"first_name":"Delia",
"surname":"Gadea",
"language_code":"en_IE",
"mobile_number":"+447700000000",
"email":"foodiverse-inbound@olioex.com",
"is_active":1,
"is_organisation_admin":1,
"created_at":"2021-03-23T14:51:56.000000Z",
"updated_at":"2022-01-26T12:19:45.000000Z",
"full_name":"Delia Gadea",
"role":"admin",
"organisation":{
"uuid":"750b8893-a276-4da1-ad2f-f33a71184563",
"name":"Olio Admin",
"countries_id":2635167,
"provinces_id":6269131,
"counties_id":2648110,
"official_id":null,
"accept_by_offset":30,
"phone":null,
"address_1":"Hartspring Cottage",
"address_2":"",
"city_town":"",
"post_code":"WD25 8HB",
"latitude":"51.58991960",
"longitude":"-0.12922470",
"description":null,
"food_safety_info":null,
"is_active":true,
"is_featured":0,
"is_friend_group":0,
"receipt_sending_option":1,
"created_at":"2020-03-16T16:20:15.000000Z",
"updated_at":"2021-03-15T00:55:03.000000Z",
"deleted_at":null,
"in_line_address":"Hartspring Cottage, WD25 8HB, Greater London, England, United Kingdom",
"county":{
"id":2648110,
"countries_id":2635167,
"provinces_id":6269131,
"name":"Greater London",
"latitude":51.5,
"longitude":-0.16667
},
"province":{
"id":6269131,
"countries_id":2635167,
"name":"England",
"latitude":52.16045,
"longitude":-0.70312
},
"country":{
"id":2635167,
"name":"United Kingdom",
"latitude":54.75844,
"longitude":-2.69531,
"code":"GB"
}
}
},
{
"uuid":"082a770a-caa5-11eb-89cd-02b78ea58fdc",
"first_name":"Olio",
"surname":"SupportAdmin",
"language_code":"en_IE",
"mobile_number":null,
"email":"fvsupport+OLIO0011p00002gwllUAAX@foodcloud.ie",
"is_active":1,
"is_organisation_admin":1,
"created_at":"2021-06-11T11:08:37.000000Z",
"updated_at":"2023-03-07T14:51:04.000000Z",
"full_name":"Olio SupportAdmin",
"role":"admin",
"organisation":{
"uuid":"750b8893-a276-4da1-ad2f-f33a71184563",
"name":"Olio Admin",
"countries_id":2635167,
"provinces_id":6269131,
"counties_id":2648110,
"official_id":null,
"accept_by_offset":30,
"phone":null,
"address_1":"Hartspring Cottage",
"address_2":"",
"city_town":"",
"post_code":"WD25 8HB",
"latitude":"51.58991960",
"longitude":"-0.12922470",
"description":null,
"food_safety_info":null,
"is_active":true,
"is_featured":0,
"is_friend_group":0,
"receipt_sending_option":1,
"created_at":"2020-03-16T16:20:15.000000Z",
"updated_at":"2021-03-15T00:55:03.000000Z",
"deleted_at":null,
"in_line_address":"Hartspring Cottage, WD25 8HB, Greater London, England, United Kingdom",
"county":{
"id":2648110,
"countries_id":2635167,
"provinces_id":6269131,
"name":"Greater London",
"latitude":51.5,
"longitude":-0.16667
},
"province":{
"id":6269131,
"countries_id":2635167,
"name":"England",
"latitude":52.16045,
"longitude":-0.70312
},
"country":{
"id":2635167,
"name":"United Kingdom",
"latitude":54.75844,
"longitude":-2.69531,
"code":"GB"
}
}
},
{
"uuid":"2f3cf8c2-caa5-11eb-89cd-02b78ea58fdc",
"first_name":"Olio",
"surname":"SupportAdmin",
"language_code":"en_IE",
"mobile_number":null,
"email":"fvsupport+OLIO0011p00002gwllUAAY@foodcloud.ie",
"is_active":1,
"is_organisation_admin":1,
"created_at":"2021-06-11T11:09:43.000000Z",
"updated_at":"2021-08-09T16:16:12.000000Z",
"full_name":"Olio SupportAdmin",
"role":"admin",
"organisation":{
"uuid":"750b8893-a276-4da1-ad2f-f33a71184563",
"name":"Olio Admin",
"countries_id":2635167,
"provinces_id":6269131,
"counties_id":2648110,
"official_id":null,
"accept_by_offset":30,
"phone":null,
"address_1":"Hartspring Cottage",
"address_2":"",
"city_town":"",
"post_code":"WD25 8HB",
"latitude":"51.58991960",
"longitude":"-0.12922470",
"description":null,
"food_safety_info":null,
"is_active":true,
"is_featured":0,
"is_friend_group":0,
"receipt_sending_option":1,
"created_at":"2020-03-16T16:20:15.000000Z",
"updated_at":"2021-03-15T00:55:03.000000Z",
"deleted_at":null,
"in_line_address":"Hartspring Cottage, WD25 8HB, Greater London, England, United Kingdom",
"county":{
"id":2648110,
"countries_id":2635167,
"provinces_id":6269131,
"name":"Greater London",
"latitude":51.5,
"longitude":-0.16667
},
"province":{
"id":6269131,
"countries_id":2635167,
"name":"England",
"latitude":52.16045,
"longitude":-0.70312
},
"country":{
"id":2635167,
"name":"United Kingdom",
"latitude":54.75844,
"longitude":-2.69531,
"code":"GB"
}
}
}
],
"county":null,
"province":null,
"country":null
},
"items":[
{
"is_available":1,
"created_at":"2023-08-07T18:29:48.000000Z",
"updated_at":"2023-08-07T18:29:48.000000Z",
"deleted_at":null,
"donation_item":null
},
{
"is_available":1,
"created_at":"2023-08-07T18:29:48.000000Z",
"updated_at":"2023-08-07T18:29:48.000000Z",
"deleted_at":null,
"donation_item":null
},
{
"is_available":1,
"created_at":"2023-08-07T18:29:48.000000Z",
"updated_at":"2023-08-07T18:29:48.000000Z",
"deleted_at":null,
"donation_item":null
}
],
"donation":{
"uuid":"67fe8dca-de31-4500-9729-1857f450888c",
"networks_id":9,
"branches_id":1614,
"external_id":"d565d704-2d3b-4297-992e-68b7577c779f",
"organisations_id":16,
"is_max_collectors_reached":1,
"received_at":"2023-08-07 18:29:37",
"created_at":"2023-08-07 18:29:37",
"updated_at":"2023-08-07 18:50:01",
"deleted_at":null,
"accepted_by":"2023-08-07 20:29:58",
"collect_by":null,
"primary_available_at":"2023-08-07 18:29:37",
"waitlist_available_at":null,
"foodboard_available_at":"2023-08-07 18:34:00",
"donation_window_start_at":"2023-08-07 18:15:00",
"donation_window_end_at":"2023-08-07 18:50:00",
"tsm_current_state":"Ended",
"require_friends":0,
"rag_status":2,
"all_items_taken":1,
"esign":0,
"tsm_current_state_label":"ended",
"network":{
"is_public":false,
"organisation":{
"name":"FareShare UK",
"in_line_address":"",
"image":null,
"county":null,
"province":null,
"country":null
}
},
"donor":{
"uuid":"4aa26861-251d-46bc-9261-194d7a343e94",
"name":"Tesco Brnmout Holden Rd Exp",
"countries_id":2635167,
"provinces_id":6269131,
"counties_id":2647554,
"official_id":"TESCO:6316",
"address_1":"69 - 89 Holdenhurst R, Lyme Regis House, Bournemouth, Dorset",
"address_2":"",
"city_town":"",
"post_code":"BH8 8FT",
"phone":null,
"latitude":"50.72419000",
"longitude":"-1.86457000",
"timezone":"Europe/Dublin",
"locale":"en_IE",
"is_active":1,
"is_foodboard_allowed":1,
"esign":0,
"send_daily_donations_reminders":false,
"send_instant_donations_reminders":false,
"offers_token_counter":0,
"prepare_donation_option":"l_product_and_category",
"default_categories_only":0,
"approved_products_only":0,
"created_at":"2017-04-03T12:31:09.000000Z",
"updated_at":"2021-07-23T17:49:42.000000Z",
"deleted_at":null,
"in_line_address":"69 - 89 Holdenhurst R, Lyme Regis House, Bournemouth, Dorset, BH8 8FT, Hampshire, England, United Kingdom",
"organisation":{
"name":"Tesco UK",
"in_line_address":"",
"image":null,
"county":null,
"province":null,
"country":null
},
"county":{
"id":2647554,
"countries_id":2635167,
"provinces_id":6269131,
"name":"Hampshire",
"latitude":51,
"longitude":-1.25
},
"province":{
"id":6269131,
"countries_id":2635167,
"name":"England",
"latitude":52.16045,
"longitude":-0.70312
},
"country":{
"id":2635167,
"name":"United Kingdom",
"latitude":54.75844,
"longitude":-2.69531,
"code":"GB"
}
},
"collection_windows":[
{
"uuid":"96b00223-0ac6-4ce4-94ed-c7dba7cbe9ce",
"transfer_types_name":"Collection",
"transfer_types_label":"l_donation_transfer_type_collection",
"max_collectors":1,
"collection_window_starts_at":"2023-08-07 19:30:00",
"collection_window_ends_at":"2023-08-07 20:30:00",
"charity_branches":{
"primary":24787,
"waitlist":[
19825,
23568
]
},
"is_custom":0,
"created_at":"2023-08-07 18:29:37",
"updated_at":"2023-08-07 18:29:37",
"is_scheduled":1,
"charity_branches_uuid":{
"primary":"41a1bc42-4e11-4712-881a-27af39e3af92",
"waitlist":[
"8c98ee2b-cfc1-46b5-88b2-91e1d97335f5",
"1f7be9de-eddf-439e-b251-a70d64d7b7e2"
]
}
}
]
}
},
"frontendRedirect":false,
"callTime":0.06136798858642578,
"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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment