Skip to content

Instantly share code, notes, and snippets.

@rosswilson
Created February 21, 2018 14:23
Show Gist options
  • Save rosswilson/9823c97bf2800f7e0736c911570ee22a to your computer and use it in GitHub Desktop.
Save rosswilson/9823c97bf2800f7e0736c911570ee22a to your computer and use it in GitHub Desktop.
Monzo Webhook Payloads
{
"type": "transaction.created",
"data": {
"id": "tx_00009TnTFcG7cG6bxxxxxx",
"created": "2018-02-19T17:32:03.234Z",
"description": "pot_00009Qoyee0RPU0sxxxxxx",
"amount": -40000,
"fees": {},
"currency": "GBP",
"merchant": null,
"notes": "",
"metadata": {
"ledger_insertion_id": "entryset_00009TnTFbB7dMVoxxxxxx",
"pot_id": "pot_00009Qoyee0RPU0sxxxxxx"
},
"labels": null,
"account_balance": 0,
"attachments": null,
"category": "general",
"is_load": false,
"settled": "2018-02-19T17:32:03.234Z",
"local_amount": -40000,
"local_currency": "GBP",
"updated": "2018-02-19T17:32:03.286Z",
"account_id": "acc_00009OVwmmZ1UapYxxxxxx",
"counterparty": {},
"scheme": "uk_retail_pot",
"dedupe_id": "pot_00009Qoyee0RPU0sxxxxxx:acc_00009OVwmmZ1UapYxxxxxx:user_0000995fpUHGUdl8xxxxxx:4C2DCF45-1A6A-4E8C-99A7-19078Axxxxxx",
"originator": true,
"include_in_spending": false
}
}
{
"type": "transaction.created",
"data": {
"id": "tx_00009Tn9cuCz34qOxxxxxx",
"created": "2018-02-19T13:52:09.644Z",
"description": "TESCO STORES 2761 LONDON GBR",
"amount": -225,
"fees": {},
"currency": "GBP",
"merchant": {
"id": "merch_0000945gEu6dMve5M2vmgz",
"group_id": "grp_000092JYpvjM7VZJ1X0Ukr",
"created": "2016-01-12T19:47:45.774Z",
"name": "Tesco",
"logo": "https://mondo-logo-cache.appspot.com/twitter/@Tesco/?size=large",
"emoji": "🍏",
"category": "groceries",
"online": false,
"atm": false,
"address": {
"short_formatted": "2-8 Station Parade, Richmond TW9 3PZ",
"formatted": "2-8 Station Parade, Richmond TW9 3PZ, United Kingdom",
"address": "2-8 Station Parade",
"city": "Richmond",
"region": "Greater London",
"country": "GBR",
"postcode": "TW9 3PZ",
"latitude": 51.47675900462436,
"longitude": -0.2859020233154297,
"zoom_level": 17,
"approximate": false
},
"updated": "2016-01-29T14:51:27.02Z",
"metadata": {
"created_for_merchant": "merch_000092JYpvhEFProxxxxxx",
"created_for_transaction": "tx_0000945gEtuE74Cbxxxxxx",
"foursquare_category": "Grocery Store",
"foursquare_category_icon": "https://ss3.4sqi.net/img/categories_v2/shops/food_grocery_88.png",
"foursquare_id": "4fa002a07beb7ebce8fb6ffb",
"foursquare_website": "http://www.tesco.com",
"google_places_icon": "https://maps.gstatic.com/mapfiles/place_api/icons/shopping-71.png",
"google_places_id": "ChIJ0RTLO9QNdkgR2Kcxoyn8ka0",
"google_places_name": "Tesco Kew Gardens Express",
"suggested_name": "Tesco Express",
"suggested_tags": "",
"twitter_id": "@Tesco",
"website": "tesco.com"
},
"disable_feedback": false
},
"notes": "",
"metadata": {
"ledger_insertion_id": "entryset_00009Tn9cs90isOZxxxxxx",
"mastercard_auth_message_id": "mcauthmsg_00009Tn9cr8GU9xMxxxxxx",
"mastercard_lifecycle_id": "mclifecycle_00009Tn9crdoarC3xxxxxx"
},
"labels": null,
"account_balance": 0,
"attachments": null,
"category": "groceries",
"is_load": false,
"settled": "",
"local_amount": -225,
"local_currency": "GBP",
"updated": "2018-02-19T13:52:09.808Z",
"account_id": "acc_00009OVwmmZ1UapYxxxxxx",
"counterparty": {},
"scheme": "mastercard",
"dedupe_id": "mclifecycle:mclifecycle_00009Tn9crdoarC3xxxxxx:MASTERCARD_AUTH:mcauthmsg_00009Tn9cr8GU9xMxxxxxx",
"originator": false,
"include_in_spending": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment