{
	"info": {
		"_postman_id": "2fd1f1d1-696c-4cb4-95f4-b1c862ff5447",
		"name": "FinGoal Enrichment",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "4847405"
	},
	"item": [
		{
			"name": "Get Auth Token",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "client_id",
							"value": "{{client_id}}",
							"type": "text"
						},
						{
							"key": "client_secret",
							"value": "{{client_secret}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{base_url}}/v3/authentication",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"v3",
						"authentication"
					]
				}
			},
			"response": []
		},
		{
			"name": "Cleanup Async",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{auth_token\n}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"transactions\": [\n        {\n            \"uid\": \"testuser1\",\n            \"transactionid\": \"54f31987abd16ee6ee2589d359a77e823b5d9e6c477212482d02a4c3bd9\",\n            \"date\": \"2024-02-23\",\n            \"original_description\": \"#320428108290 TMOBILE*AUTO PAY 800-937-8997 WA\",\n            \"accountType\": \"checking\",\n            \"settlement\": \"debit\",\n            \"amountnum\": -50.00\n        },\n        {\n            \"uid\": \"testuser1\",\n            \"transactionid\": \"54f31987abd16ee6ee2589d359a77e823b5482d02a4c3bd9\",\n            \"date\": \"2024-03-22\",\n            \"original_description\": \"#32042290 PETSMART 1234fda7\",\n            \"accountType\": \"checking\",\n            \"settlement\": \"debit\",\n            \"amountnum\": -23.30\n        },\n        {\n            \"uid\": \"testuser1\",\n            \"transactionid\": \"54f31987abd16ee6ee2589d359a77e823b5d9e6c477212482d02a4c3bd9adaf\",\n            \"date\": \"2024-07-23\",\n            \"original_description\": \"#3204290 Home DEPOT_#3217\",\n            \"accountType\": \"checking\",\n            \"settlement\": \"debit\",\n            \"amountnum\": -751.01\n        }\n\n    ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/v3/cleanup",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"v3",
						"cleanup"
					]
				}
			},
			"response": []
		},
		{
			"name": "Cleanup Sync",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{auth_token\n}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"transactions\": [\n        {\n            \"uid\": \"testuser1\",\n            \"transactionid\": \"54f31987abd16ee6ee2589d359a77e823b5d9e6c477212482d02a4c3bd9\",\n            \"date\": \"2024-02-23\",\n            \"original_description\": \"#320428108290 TMOBILE*AUTO PAY 800-937-8997 WA\",\n            \"accountType\": \"checking\",\n            \"settlement\": \"debit\",\n            \"amountnum\": -50.00\n        },\n        {\n            \"uid\": \"testuser1\",\n            \"transactionid\": \"54f31987abd16ee6ee2589d359a77e823b5482d02a4c3bd9\",\n            \"date\": \"2024-03-22\",\n            \"original_description\": \"#32042290 PETSMART 1234fda7\",\n            \"accountType\": \"checking\",\n            \"settlement\": \"debit\",\n            \"amountnum\": -23.30\n        },\n        {\n            \"uid\": \"testuser1\",\n            \"transactionid\": \"54f31987abd16ee6ee2589d359a77e823b5d9e6c477212482d02a4c3bd9adaf\",\n            \"date\": \"2024-07-23\",\n            \"original_description\": \"#3204290 Home DEPOT_#3217\",\n            \"accountType\": \"checking\",\n            \"settlement\": \"debit\",\n            \"amountnum\": -751.01\n        }\n\n    ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{base_url}}/v3/cleanup/sync",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"v3",
						"cleanup",
						"sync"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get User Tags",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{auth_token\n}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "include_tagged_transactions",
						"value": "true",
						"type": "text",
						"disabled": true
					}
				],
				"url": {
					"raw": "{{base_url}}/v3/users/{{user_id}}",
					"host": [
						"{{base_url}}"
					],
					"path": [
						"v3",
						"users",
						"{{user_id}}"
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "client_id",
			"value": "",
			"type": "string"
		},
		{
			"key": "client_secret",
			"value": "",
			"type": "string"
		},
		{
			"key": "auth_token\n",
			"value": "",
			"type": "string"
		},
		{
			"key": "base_url",
			"value": "https://findmoney-dev.fingoal.com",
			"type": "string"
		},
		{
			"key": "user_id",
			"value": "",
			"type": "string"
		}
	]
}