{"info":{"_postman_id":"2dce5652-e7df-47c1-bc0d-9f25cc7c8593","name":"TrueLayer API - Sandbox","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10077244","collectionId":"2dce5652-e7df-47c1-bc0d-9f25cc7c8593","publishedId":"SWLk2k8X","public":true,"customColor":{"top-bar":"44689A","right-sidebar":"093554","highlight":"F7AB1B"},"publishDate":"2020-01-24T15:45:26.000Z"},"item":[{"name":"Authentication","item":[{"name":"Exchange Code","event":[{"listen":"test","script":{"id":"a5ccc65a-cc82-45b7-835b-ba0061353923","exec":["var parsedResponse = JSON.parse(responseBody);","pm.globals.set(\"TL_ACCESS_TOKEN\", parsedResponse.access_token);","pm.globals.set(\"TL_REFRESH_TOKEN\", parsedResponse.refresh_token);"],"type":"text/javascript"}}],"id":"3ef9233f-e36a-4ac6-bcfe-09ef12c846ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"authorization_code","type":"text"},{"key":"client_id","value":"","type":"text"},{"key":"client_secret","value":"","type":"text"},{"key":"redirect_uri","value":"https://console.truelayer.com/redirect-page","type":"text"},{"key":"code","value":"","type":"text"}]},"url":"https://auth.truelayer-sandbox.com/connect/token","urlObject":{"protocol":"https","path":["connect","token"],"host":["auth.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ef9233f-e36a-4ac6-bcfe-09ef12c846ac"},{"name":"Refresh access token","event":[{"listen":"test","script":{"id":"d7df25bc-11a6-4778-a69e-83ce08c627e7","exec":["var parsedResponse = JSON.parse(responseBody);","pm.globals.set(\"TL_ACCESS_TOKEN\", parsedResponse.access_token);","pm.globals.set(\"TL_REFRESH_TOKEN\", parsedResponse.refresh_token);"],"type":"text/javascript"}}],"id":"f11558b6-3a3b-4791-81eb-c55ce77f68b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"refresh_token","type":"text"},{"key":"client_id","value":"","type":"text"},{"key":"client_secret","value":"","type":"text"},{"key":"refresh_token","value":"{{TL_REFRESH_TOKEN}}","type":"text"}]},"url":"https://auth.truelayer-sandbox.com/connect/token","urlObject":{"protocol":"https","path":["connect","token"],"host":["auth.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f11558b6-3a3b-4791-81eb-c55ce77f68b2"}],"id":"6fe6e0eb-cc30-4584-81e6-66891a7deedb","event":[{"listen":"prerequest","script":{"id":"33d3a273-b890-48cb-9a30-beb68fc08676","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b452998e-0735-4d5d-8919-b2236c815838","type":"text/javascript","exec":[""]}}],"_postman_id":"6fe6e0eb-cc30-4584-81e6-66891a7deedb","description":""},{"name":"Data API","item":[{"name":"Cards","item":[{"name":"List all cards","event":[{"listen":"test","script":{"id":"5261f62e-d600-49f9-a532-8fff6bc1dea2","exec":["var parsedResponse = JSON.parse(responseBody);","pm.globals.set(\"card_id\", parsedResponse.results[0].account_id);"],"type":"text/javascript"}}],"id":"fece21e8-b113-472f-a160-55834c6636c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/cards","urlObject":{"protocol":"https","path":["data","v1","cards"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fece21e8-b113-472f-a160-55834c6636c1"},{"name":"Retrieve a card","id":"eba902ef-8aa6-4d31-93c8-7f2f4dc489ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/cards/{{card_id}}","urlObject":{"protocol":"https","path":["data","v1","cards","{{card_id}}"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eba902ef-8aa6-4d31-93c8-7f2f4dc489ea"},{"name":"Retrieve a card balance","id":"e08ff437-0d1d-44c3-a343-8ca355ec88b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/cards/{{card_id}}/balance","urlObject":{"protocol":"https","path":["data","v1","cards","{{card_id}}","balance"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e08ff437-0d1d-44c3-a343-8ca355ec88b6"},{"name":"Retrieve card transactions","id":"3b79c477-8bd9-4329-8129-449509d982ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/cards/{{card_id}}/transactions","urlObject":{"protocol":"https","path":["data","v1","cards","{{card_id}}","transactions"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b79c477-8bd9-4329-8129-449509d982ca"},{"name":"Retrieve card pending transactions","id":"a414d00c-1e96-4fa0-9841-83dc77253312","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/cards/{{card_id}}/transactions/pending","urlObject":{"protocol":"https","path":["data","v1","cards","{{card_id}}","transactions","pending"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a414d00c-1e96-4fa0-9841-83dc77253312"}],"id":"a8885a8b-4692-4b87-9acc-460600593c9c","_postman_id":"a8885a8b-4692-4b87-9acc-460600593c9c","description":""},{"name":"Accounts","item":[{"name":"List all accounts","event":[{"listen":"test","script":{"id":"d8e62b5a-aa1b-44c9-a4b5-c5ca8e6e48a2","exec":["var parsedResponse = JSON.parse(responseBody);","pm.globals.set(\"account_id\", parsedResponse.results[0].account_id);"],"type":"text/javascript"}}],"id":"1f7a9903-8a48-4b4a-b87c-ad60c93b83f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/accounts","urlObject":{"protocol":"https","path":["data","v1","accounts"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f7a9903-8a48-4b4a-b87c-ad60c93b83f7"},{"name":"Retrieve an account","id":"8cba6161-ad63-4c94-8c32-25474ed69826","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/accounts/{{account_id}}","urlObject":{"protocol":"https","path":["data","v1","accounts","{{account_id}}"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8cba6161-ad63-4c94-8c32-25474ed69826"},{"name":"Retrieve account balance","id":"e8a729f6-215d-45e9-9b7d-c4711397a227","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/accounts/{{account_id}}/balance","urlObject":{"protocol":"https","path":["data","v1","accounts","{{account_id}}","balance"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8a729f6-215d-45e9-9b7d-c4711397a227"},{"name":"Retrieve account transactions","id":"d0405f6b-2746-475d-b551-6d6ff071fc7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/accounts/{{account_id}}/transactions","urlObject":{"protocol":"https","path":["data","v1","accounts","{{account_id}}","transactions"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0405f6b-2746-475d-b551-6d6ff071fc7b"},{"name":"Retrieve account pending transactions","id":"17336e6f-4799-4e96-b2d7-433d0fd2bd73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/accounts/{{account_id}}/transactions/pending","urlObject":{"protocol":"https","path":["data","v1","accounts","{{account_id}}","transactions","pending"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"17336e6f-4799-4e96-b2d7-433d0fd2bd73"},{"name":"Retrieve direct debits","id":"84882b84-d9bd-477c-99a6-c22d66e2c3ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/accounts/{{account_id}}/direct_debits","urlObject":{"protocol":"https","path":["data","v1","accounts","{{account_id}}","direct_debits"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"84882b84-d9bd-477c-99a6-c22d66e2c3ce"},{"name":"Retrieve standing order","id":"01a73e2c-79e5-4709-8c28-9b0c7de3b2fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"url":"https://api.truelayer-sandbox.com/data/v1/accounts/{{account_id}}/standing_orders","urlObject":{"protocol":"https","path":["data","v1","accounts","{{account_id}}","standing_orders"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"01a73e2c-79e5-4709-8c28-9b0c7de3b2fa"}],"id":"94f86d27-679f-42fb-908d-44537d8b7c09","_postman_id":"94f86d27-679f-42fb-908d-44537d8b7c09","description":""},{"name":"Retrieve access_token metadata","id":"d133c062-011d-4de5-bb97-8a2e733aad93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.truelayer-sandbox.com/data/v1/me","urlObject":{"protocol":"https","path":["data","v1","me"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d133c062-011d-4de5-bb97-8a2e733aad93"},{"name":"Retrieve identity information","id":"417f8180-8a67-4fc7-8bdf-fddd65176ce6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{TL_ACCESS_TOKEN}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.truelayer-sandbox.com/data/v1/info","urlObject":{"protocol":"https","path":["data","v1","info"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"417f8180-8a67-4fc7-8bdf-fddd65176ce6"}],"id":"e23939f8-707c-405a-bc3c-719549929056","_postman_id":"e23939f8-707c-405a-bc3c-719549929056","description":""},{"name":"Verification","item":[{"name":"Verify Account Holder","event":[{"listen":"prerequest","script":{"id":"bcfab993-2c4f-43ba-adb9-5d4ac3e8ee91","exec":["",""],"type":"text/javascript"}}],"id":"93d37edd-88a9-4bd2-ad64-4f2af4513e92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"John Smith\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.truelayer-sandbox.com/verification/v1/verify","urlObject":{"protocol":"https","path":["verification","v1","verify"],"host":["api.truelayer-sandbox.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"93d37edd-88a9-4bd2-ad64-4f2af4513e92"}],"id":"668fc4fe-1268-49c4-b0e3-aa6a89510715","_postman_id":"668fc4fe-1268-49c4-b0e3-aa6a89510715","description":""}],"event":[{"listen":"prerequest","script":{"id":"fa421abd-9872-4343-b37e-568495243ebe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9c919c37-baa7-417f-812c-738bd37642fc","type":"text/javascript","exec":[""]}}],"variable":[{"key":"sandbox_client_id","value":""},{"key":"sandbox_client_secret","value":""},{"key":"sandbox_auth_api","value":"auth.truelayer-sandbox.com"},{"key":"sandbox_api","value":"api.truelayer-sandbox.com"},{"key":"sandbox_auth_dialog_code","value":""}]}