{"info":{"_postman_id":"3645da5a-0dab-4c8e-ab38-512c7633925f","name":"Avios Full Suite","description":"<html><head></head><body><h1 id=\"full-suite\">FULL SUITE</h1>\n<h2 id=\"retrieve-avios-account-balance-for-members\">Retrieve Avios account balance for members</h2>\n<h3 id=\"using-this-collection\">Using this Collection:</h3>\n<p>To make use of this collection, add your partner credentials to the variables section to be dynamically authenticated for the APIs. Will also require setting up the api-key in the variables.</p>\n<h2 id=\"use-cases\">Use Cases</h2>\n<ul>\n<li>Strategic partners can enroll members, provide account management, allow members to spend Avios and can award Avios to their members</li>\n</ul>\n<h2 id=\"api-order\">API Order</h2>\n<p>For the order of APIs (and more use cases), refer to the other product collections, or even visit the product page at <a href=\"https://developer.avios.com/products\">https://developer.avios.com/products</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"FULL SUITE","slug":"full-suite"}],"owner":"6964404","collectionId":"3645da5a-0dab-4c8e-ab38-512c7633925f","publishedId":"S1LsXpe8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-26T10:01:43.000Z"},"item":[{"name":"Use Case 1","item":[{"name":"Retrieve Product Pricing (flightAncillary)","id":"a9ae76d9-7bc3-40fe-b395-95786e9ac3c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"X-Agent-Id","type":"text","value":"Masanobu12Fukuoka"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"TESTTOKEN","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"priceSearchCriteria\": {\n\t\t\"priceType\": \"DYNAMIC_DISCOUNT\",\n\t\t\"priceSource\": \"CACHED\",\n\t\t\"product\": {\n\t\t\t\"flightAncillary\": {\n\t\t\t\t\"flightAncillaryType\": \"MEALS\",\n\t\t\t\t\"price\": {\n\t\t\t\t\t\"monetaryAmount\": {\n\t\t\t\t\t\t\"amount\": \"50.00\",\n\t\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\t\"code\": \"GBP\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"},"url":"https://proxydocs.and.avios.digital/v2/product-prices?api_key=TESTAPIKEY","urlObject":{"path":["v2","product-prices"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"a9ae76d9-7bc3-40fe-b395-95786e9ac3c4"},{"name":"Authentication (member)","event":[{"listen":"prerequest","script":{"id":"c233b270-1382-4ebf-9feb-efbcdc7c4809","exec":["//pre-request script run to set needed variables variables ","pm.globals.set(\"encoded-auth\", btoa(","    pm.variables.get(\"partner-id\")","    + \":\" ","    + pm.variables.get(\"partner-secret\")","));"],"type":"text/javascript"}},{"listen":"test","script":{"id":"3c8e226c-0eea-4127-89ba-c4d0bea76308","exec":["//pre-request script run to set needed variables variables ","pm.globals.unset(\"token\");","pm.globals.set(\"token\", pm.response.json().access_token);",""],"type":"text/javascript"}}],"id":"4f801f6b-d6b2-4828-82c8-f949c0faf83d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"business-context-identifier","type":"text","value":"Web"},{"key":"Authorization","type":"text","value":"Basic {{encoded-auth}}"},{"key":"programme-identifier","type":"text","value":"ATRP"}],"url":"https://proxydocs.and.avios.digital/secure/key?grant_type=password&username=TESTUSERNAME&password=TESTPASSWORD","urlObject":{"path":["secure","key"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"grant_type","value":"password"},{"key":"username","value":"TESTUSERNAME"},{"key":"password","value":"TESTPASSWORD"}],"variable":[]}},"response":[],"_postman_id":"4f801f6b-d6b2-4828-82c8-f949c0faf83d"},{"name":"Credit Currency (with MI data)","id":"276caa9d-acf5-489a-80ed-d77083058447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"TESTTOKEN","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"666 Avios collected\",\n  \"monetaryAmount\": {\n    \"amount\": 666,\n    \"currency\": {\n      \"currencyCode\": \"AVIOS\"\n    }\n  },\n  \"externalTransactionIdentifier\": \"ext\",\n  \"externalTransactionDate\": \"1998-03-23T00:00:00.000+00:00\",\n  \"externalReferenceIdentifier\": \"B1X2Za\",\n  \"externalReferenceDescription\": \"ExternalReferenceDescription\",\n  \"externalPartnerIdentifier\": \"Ext\",\n  \"externalSource\": \"000081000\",\n  \"productSummary\": [\n    {\n      \"productInstanceIdentifier\": \"12345\",\n      \"productTypeSummary\": \"FLIGHT\",\n      \"productFeatureSummary\": [\n        {\n          \"code\": \"PNR\",\n          \"index\": 1,\n          \"value\": \"PNR001\"\n        }\n      ]\n    }\n  ],\n  \"type\": \"COLLECTION\",\n  \"person\": {\n    \"name\": {\n      \"familyName\": \"BROWN\"\n    }\n  }\n}"},"url":"https://proxydocs.and.avios.digital/v1/programmes/ATRP/accounts/3081471031646101/credit-transaction-requests?api_key=TESTAPIKEY","urlObject":{"path":["v1","programmes","ATRP","accounts","3081471031646101","credit-transaction-requests"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"276caa9d-acf5-489a-80ed-d77083058447"},{"name":"Debit Currency (without MI data)","id":"dd6a5054-6da1-4ac7-9818-70cc0a583bec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"TESTTOKEN"},{"key":"X-Forwarded-For","value":"172.17.1.1, 172.17.1.2","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"debitTransaction\": {\n\t\t\"externalTransactionDate\": \"1991-12-15T20:37:21.886Z\",\n\t\t\"monetaryAmount\": {\n\t\t\t\"amount\": 100,\n\t\t\t\"currency\": {\n\t\t\t\t\"currencyCode\": \"AVIOS\"\n\t\t\t}\n\t\t},\n\t\t\"exchangeRate\": {\n\t\t\t\"code\": \"1\"\n\t\t},\n\t\t\"description\": \"Redemption of 100 Avios\",\n\t\t\"externalTransactionIdentifier\": \"FLB0215\",\n\t\t\"externalReferenceIdentifier\": \"FLB\",\n\t\t\"externalReferenceDescription\": \"Discounted redemption of 100 Avios\",\n\t\t\"externalPartnerIdentifier\": \"FLB\",\n\t\t\"type\": \"REDEMPTION\"\n\t}\n}"},"url":"https://proxydocs.and.avios.digital/v1/programmes/ATRP/accounts/3081471031646101/debit-transaction-requests?api_key=TESTAPIKEY","urlObject":{"path":["v1","programmes","ATRP","accounts","3081471031646101","debit-transaction-requests"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"dd6a5054-6da1-4ac7-9818-70cc0a583bec"},{"name":"Retrieve Transactions","id":"e254a94b-dc19-4f29-8320-bce609049216","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"TESTTOKEN","type":"text"}],"url":"https://proxydocs.and.avios.digital/v1/programmes/ATRP/accounts/3081471031646101/transactions?api_key=TESTAPIKEY","urlObject":{"path":["v1","programmes","ATRP","accounts","3081471031646101","transactions"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"e254a94b-dc19-4f29-8320-bce609049216"},{"name":"Reverse Transaction","id":"c7f828c1-bca3-4986-a382-f42ec1c81d92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"TESTTOKEN","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"reversalTransaction\": {\n    \"externalTransactionIdentifier\": \"12\",\n    \"type\": \"CANCELLATION\",\n    \"description\": \"dfs\",\n    \"reversedTransaction\": {\n      \"identifier\": \"3875243275815CB1E050A8C0020A4B4A\"\n    }\n  }\n}"},"url":"https://proxydocs.and.avios.digital/v1/programmes/ATRP/accounts/3081471031646101/reverse-transaction-requests?api_key=TESTAPIKEY","urlObject":{"path":["v1","programmes","ATRP","accounts","3081471031646101","reverse-transaction-requests"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"c7f828c1-bca3-4986-a382-f42ec1c81d92"}],"id":"c6fc1cbc-38b9-484a-8fcf-25d54ef0f782","description":"<p><strong>Airline Partners Only</strong></p>\n<p>Full Suite provides partners with the ability to enroll members, provide account management, allow members to spend Avios and award Avios to their members. Viewing balance and transaction history is also achievable via this product.</p>\n<ul>\n<li>Customer can see discounted flights or ancillary products in partner application</li>\n<li>Customer can make an eligible purchase and earn back Avios</li>\n<li>Customer can spend Avios on selected purchases</li>\n<li>The transaction can be reversed in the event of failure</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"d1a788b1-1f47-41a6-ba5a-0d51b9112fc6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8ab69e23-6da4-437c-9942-cb3693b366eb","type":"text/javascript","exec":[""]}}],"_postman_id":"c6fc1cbc-38b9-484a-8fcf-25d54ef0f782"},{"name":"Use Case 2","item":[{"name":"Register Account","id":"c3be84e5-7883-40db-bbcf-d585fb196fc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"member\": {\n\t\t\"securityProfile\": {\n\t\t\t\"credentials\": {\n\t\t\t\t\"identifier\": \"TESTUSER\",\n\t\t\t\t\"token\": \"TESTPASSWORD\"\n\t\t\t},\n\t\t\t\"securityChallenge\": [\n\t\t\t\t{\n\t\t\t\t\t\"identifier\": \"1\",\n\t\t\t\t\t\"response\": \"HELLO\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"identifier\": \"2\",\n\t\t\t\t\t\"response\": \"Test Street\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"postalAddress\": {\n\t\t\t\"postCode\": \"WF148NW\"\n\t\t}\n\t}\n}"},"url":"https://proxydocs.and.avios.digital/v2/memberships/3081471031646101/registrations?api_key=TESTAPIKEY","urlObject":{"path":["v2","memberships","3081471031646101","registrations"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"c3be84e5-7883-40db-bbcf-d585fb196fc7"},{"name":"Authentication (reverse_transaction)","event":[{"listen":"prerequest","script":{"id":"a143d305-0539-4fec-b0bd-fe3d96cd5fcc","exec":["//pre-request script run to set needed variables variables ","pm.globals.set(\"encoded-auth\", btoa(","    pm.variables.get(\"partner-id\")","    + \":\" ","    + pm.variables.get(\"partner-secret\")","));"],"type":"text/javascript"}},{"listen":"test","script":{"id":"9318f912-c522-42eb-bb94-aa69215b0797","exec":["//pre-request script run to set needed variables variables ","pm.globals.unset(\"token\");","pm.globals.set(\"token\", pm.response.json().access_token);",""],"type":"text/javascript"}}],"id":"fbe6ed83-72eb-4778-a494-a57bbd513022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"business-context-identifier","type":"text","value":"Web"},{"key":"Authorization","type":"text","value":"Basic {{encoded-auth}}"},{"key":"programme-identifier","type":"text","value":"ATRP"}],"url":"https://proxydocs.and.avios.digital/secure/key?grant_type=client_credentials&scope=reverse_transaction","urlObject":{"path":["secure","key"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"grant_type","value":"client_credentials"},{"key":"scope","value":"reverse_transaction"}],"variable":[]}},"response":[],"_postman_id":"fbe6ed83-72eb-4778-a494-a57bbd513022"},{"name":"Update Membership","id":"2b7d654c-2748-494d-adc7-77b7a12dc3c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"member\": {\n\t\t\"person\": {\n\t\t\t\"emailAddresses\": {\n\t\t\t\t\"preferredEmailAddress\": {\n\t\t\t\t\t\"email\": \"TEST.USER@test.com\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}"},"url":"https://proxydocs.and.avios.digital/v3/memberships/3081471031646101?api_key=TESTAPIKEY","urlObject":{"path":["v3","memberships","3081471031646101"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"2b7d654c-2748-494d-adc7-77b7a12dc3c8"},{"name":"Retrieve Account (Balance)","id":"85768430-9c55-430f-8f7d-63cfb6d218a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"TESTTOKEN","type":"text"},{"key":"X-Forwarded-For","value":"192.168.69.63","type":"text"}],"url":"https://proxydocs.and.avios.digital/v2/programmes/ATRP/accounts/3081471031646101?fields=Balance&api_key=TESTAPIKEY","urlObject":{"path":["v2","programmes","ATRP","accounts","3081471031646101"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"fields","value":"Balance"},{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"85768430-9c55-430f-8f7d-63cfb6d218a4"},{"name":"Retrieve Transactions","id":"64e82a36-0401-4935-9fd3-bb72fac8999f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"TESTTOKEN","type":"text"}],"url":"https://proxydocs.and.avios.digital/v1/programmes/ATRP/accounts/3081471031646101/transactions?api_key=TESTAPIKEY","urlObject":{"path":["v1","programmes","ATRP","accounts","3081471031646101","transactions"],"host":["https://proxydocs.and.avios.digital"],"query":[{"key":"api_key","value":"TESTAPIKEY"}],"variable":[]}},"response":[],"_postman_id":"64e82a36-0401-4935-9fd3-bb72fac8999f"}],"id":"f1fe6208-fc11-4f9f-877a-89aa17370aab","description":"<p><strong>Airline Partners Only</strong></p>\n<p>Full Suite provides partners with the ability to enroll members, provide account management, allow members to spend Avios and award Avios to their members. Viewing balance and transaction history is also achievable via this product.</p>\n<ul>\n<li>Customer can register with airline loyalty programme</li>\n<li>Customer can log in and view profile details</li>\n<li>Customer can update their details, e.g. name and address</li>\n<li>Customer can view account balance and transaction history</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"49114b81-dbbf-4e5c-825e-1319de245b1f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"52d8a5d4-9aec-4157-a8e9-f7ac21679b0a","type":"text/javascript","exec":[""]}}],"_postman_id":"f1fe6208-fc11-4f9f-877a-89aa17370aab"}],"event":[{"listen":"prerequest","script":{"id":"4954084c-c3d2-4b86-8bfb-9210d0f4f416","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5061db09-5fb8-4f85-889a-6317e2ee01f3","type":"text/javascript","exec":[""]}}],"variable":[{"key":"auth-url","value":"https://proxydocs.and.avios.digital"},{"key":"url","value":"https://proxydocs.and.avios.digital"},{"key":"account-identifier","value":"3081471031646101"},{"key":"programme-identifier","value":"ATRP"},{"key":"api-key","value":"TESTAPIKEY"},{"key":"token","value":"TESTTOKEN"},{"key":"username","value":"TESTUSERNAME"},{"key":"password","value":"TESTPASSWORD"},{"key":"programme-id","value":"ATRP"},{"key":"partner-id","value":"TESTPARTNERID"},{"key":"partner-secret","value":"TESTPARTNERSECRET"},{"key":"membership-identifier","value":"3081471031646101","type":"string"}]}