{"info":{"_postman_id":"eb7e6149-eae8-44ee-8a33-b81c6bd19459","name":"Pleo API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"263074","collectionId":"eb7e6149-eae8-44ee-8a33-b81c6bd19459","publishedId":"UVknubhG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-02-23T19:36:33.000Z"},"item":[{"name":"Get a user expenses","id":"2081ec66-2cd2-4fa3-b18a-a3259a7be31c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"\nlocalhost:9001/expense/v1/get-user-expenses?userId=da140a29-ae80-4f0e-a62d-6c2d2bc8a474","urlObject":{"path":["expense","v1","get-user-expenses"],"host":["\nlocalhost:9001"],"query":[{"key":"userId","value":"da140a29-ae80-4f0e-a62d-6c2d2bc8a474"}],"variable":[]}},"response":[],"_postman_id":"2081ec66-2cd2-4fa3-b18a-a3259a7be31c"},{"name":"Get a list of user expenses in sorted order","id":"2aaa795b-7400-49e4-9b48-eaf07ee42676","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"\nlocalhost:9001/expense/v1/get-user-expenses?userId=da140a29-ae80-4f0e-a62d-6c2d2bc8a474&sortBy=amount_in_cents","urlObject":{"path":["expense","v1","get-user-expenses"],"host":["\nlocalhost:9001"],"query":[{"key":"userId","value":"da140a29-ae80-4f0e-a62d-6c2d2bc8a474"},{"key":"sortBy","value":"amount_in_cents"}],"variable":[]}},"response":[],"_postman_id":"2aaa795b-7400-49e4-9b48-eaf07ee42676"},{"name":"Get User expenses filtered by status","id":"4ea2f4c9-9046-4f40-b842-6933970ead0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"\nlocalhost:9001/expense/v1/get-user-expenses?userId=da140a29-ae80-4f0e-a62d-6c2d2bc8a474&status=processed","urlObject":{"path":["expense","v1","get-user-expenses"],"host":["\nlocalhost:9001"],"query":[{"key":"userId","value":"da140a29-ae80-4f0e-a62d-6c2d2bc8a474"},{"key":"status","value":"processed"}],"variable":[]}},"response":[],"_postman_id":"4ea2f4c9-9046-4f40-b842-6933970ead0c"},{"name":"Get user expenses filtered by merchant name","id":"f65bb7ff-7b3b-498f-8989-5d635a93f396","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"\nlocalhost:9001/expense/v1/get-user-expenses?userId=da140a29-ae80-4f0e-a62d-6c2d2bc8a474&merchantName=Sliders","urlObject":{"path":["expense","v1","get-user-expenses"],"host":["\nlocalhost:9001"],"query":[{"key":"userId","value":"da140a29-ae80-4f0e-a62d-6c2d2bc8a474"},{"key":"merchantName","value":"Sliders"}],"variable":[]}},"response":[],"_postman_id":"f65bb7ff-7b3b-498f-8989-5d635a93f396"},{"name":"Get user expenses filtered by currency","id":"405d44e8-2a71-4cba-b9a1-5aa391c84965","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"\nlocalhost:9001/expense/v1/get-user-expenses?userId=da140a29-ae80-4f0e-a62d-6c2d2bc8a474&currency=DKK","urlObject":{"path":["expense","v1","get-user-expenses"],"host":["\nlocalhost:9001"],"query":[{"key":"userId","value":"da140a29-ae80-4f0e-a62d-6c2d2bc8a474"},{"key":"currency","value":"DKK"}],"variable":[]}},"response":[],"_postman_id":"405d44e8-2a71-4cba-b9a1-5aa391c84965"},{"name":"Get user expenses filtered by currency and status","id":"5eb72ad0-b6c6-4dab-ba55-b741c516895e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"\nlocalhost:9001/expense/v1/get-user-expenses?userId=da140a29-ae80-4f0e-a62d-6c2d2bc8a474&currency=DKK&status=pending","urlObject":{"path":["expense","v1","get-user-expenses"],"host":["\nlocalhost:9001"],"query":[{"key":"userId","value":"da140a29-ae80-4f0e-a62d-6c2d2bc8a474"},{"key":"currency","value":"DKK"},{"key":"status","value":"pending"}],"variable":[]}},"response":[],"_postman_id":"5eb72ad0-b6c6-4dab-ba55-b741c516895e"},{"name":"Get paginated  result of a user expenses","id":"bf9a3785-40dc-4275-8620-10e487ab357c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"\nlocalhost:9001/expense/v1/get-user-expenses?userId=da140a29-ae80-4f0e-a62d-6c2d2bc8a474&page=2&pageSize=2","urlObject":{"path":["expense","v1","get-user-expenses"],"host":["\nlocalhost:9001"],"query":[{"key":"userId","value":"da140a29-ae80-4f0e-a62d-6c2d2bc8a474"},{"key":"page","value":"2"},{"key":"pageSize","value":"2"}],"variable":[]}},"response":[],"_postman_id":"bf9a3785-40dc-4275-8620-10e487ab357c"},{"name":"Get user expense using graphQL","id":"7ea6d68e-d319-40a6-bb26-b0687d169072","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query{\n  expenses(userId: \"da140a29-ae80-4f0e-a62d-6c2d2bc8a474\"){\n    date_created,\n    amount_in_cents,\n    merchant_name,\n    user_id,\n  }\n}","variables":""}},"url":"\nlocalhost:9001/expense/graphql","urlObject":{"path":["expense","graphql"],"host":["\nlocalhost:9001"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ea6d68e-d319-40a6-bb26-b0687d169072"},{"name":"Store user expense","id":"8e82e161-871d-4778-94a8-ffbdcd4dcff1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"da140a29-ae80-4f0e-a62d-6c2d2bc8a431\",\n    \"dateCreated\": \"2021-09-20T18:57:40.021Z\",\n    \"merchantName\": \"Daisy\",\n    \"status\": \"pending\",\n    \"currency\": \"USD\",\n    \"amount\": \"400\"\n}","options":{"raw":{"language":"json"}}},"url":"\nlocalhost:9001/expense/v1/store-user-expense","urlObject":{"path":["expense","v1","store-user-expense"],"host":["\nlocalhost:9001"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e82e161-871d-4778-94a8-ffbdcd4dcff1"}],"event":[{"listen":"prerequest","script":{"id":"845351ea-3b85-4f31-b2c8-1a957e516aea","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3c9ccd61-a9c4-4e96-8dde-6a12fd9c66f9","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"\nlocalhost:9001","type":"string"}]}