{"info":{"_postman_id":"bb0318ec-1a7f-4779-a8ef-fc759cdf4aca","name":"Tillo API v2","description":"<html><head></head><body><p>This version of our API is intended to be an incremental improvement from v1, keeping core concepts the same so that the transition path is as straightforward as possible. To learn more about Tillo and our platform, visit <a href=\"https://tillo.com\">tillo.com</a>.</p>\n<p>For additional information including authentication, managing credentials, and other details, please visit <a href=\"https://tillo.tech/v2_docs/\">https://tillo.tech/v2_docs/</a></p>\n<p>For v1 documentation, visit <a href=\"https://tillo.tech/v1/index.html\">https://tillo.tech/v1/index.html</a></p>\n<p>For error codes, visit <a href=\"https://tillo.tech/error_codes/\">https://tillo.tech/error_codes/</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1090063","collectionId":"bb0318ec-1a7f-4779-a8ef-fc759cdf4aca","publishedId":"RW87rqX5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-04T19:48:57.000Z"},"item":[{"name":"Digital Gift Cards","item":[{"name":"Issue Digital Code","event":[{"listen":"prerequest","script":{"id":"23211764-0bf2-464a-8483-669b5749dab8","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"702e4851-b5f6-475b-a0a7-4c49e49b616f","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","var code = jsonData.data.code;","var url = jsonData.data.url;","var pin = jsonData.data.pin;","var brand = requestData.brand;    ","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"WRAPPR_URL: \" + url);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"WRAPPR_URL\", url);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"8d821504-bec7-42f2-af22-527209ed5cd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"mock-brand\",\n   \"face_value\": {\n       \"amount\": 51.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"sector\": \"gift-card-mall\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>Issue a new digital gift card</p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"361bb128-9e66-4916-9a94-086326eee3c3","name":"Standard Issue Digital Code","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"amazon\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 22 May 2020 14:19:12 GMT"},{"key":"Server","value":"Apache"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkJvQnRROTJrM0I5bmRqeXhpSzU5XC93PT0iLCJ2YWx1ZSI6InduZGNjU3JzVFF0WFJkXC9POE1aWFBmSFwvMFdyVTIzVTdXN0FQVmowS3VJS3laWGZKK2Ewb1g3bElJcHhYRWk1dCIsIm1hYyI6IjQwODg3NTdjOWU2MTBjYjdhNWIxNmQ5YzM0Yjk4MjY1ZDMyODRjYjk4NGY1OGMzY2VmNmU1NWZkMWMyMGJjNTYifQ%3D%3D; expires=Fri, 22-May-2020 15:19:14 GMT; Max-Age=3600; path=/; secure"},{"key":"Set-Cookie","value":"tillo_session=eyJpdiI6IktvUmdLTlJRbEtUeldlcTE1dUQ3Y1E9PSIsInZhbHVlIjoiYkQzM3duZ1RiUmIwYXhtTGNBM291M253dFBKaHpUNktPa3VGcG14eWRndFVzb0EyeVFEd1wvTUhHVlIrcStjR2EiLCJtYWMiOiIyOGMxMzgyMDk2MGJiMTAzODEzYzQwY2Y5YTBiMmY0OWIyN2NjN2NiOTc2MjA4MWRjYjUzMDc1Yjg1OGVjNDNjIn0%3D; path=/; secure; httponly"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Vary","value":"X-Forwarded-Proto"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-RateLimit-Limit","value":"900"},{"key":"X-RateLimit-Remaining","value":"899"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Length","value":"474"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card created successfully\",\n    \"data\": {\n        \"brand\": \"amazon\",\n        \"url\": \"https://sandbox.revealyourgift.com/ef9b0117-4693-4904-8517-3bda29e9383c/d3fde268-b39a-4b4b-84b0-fbbccf0ead34\",\n        \"face_value\": {\n            \"amount\": 20,\n            \"currency\": \"GBP\"\n        },\n        \"cost_value\": {\n            \"amount\": 19.4,\n            \"currency\": \"GBP\"\n        },\n        \"discount\": 3.5,\n        \"expiration_date\": \"2030-10-12T22:59:59+00:00\",\n        \"reference\": \"a491f1f0-0c75-11eb-af67-09b215648e5c\",\n        \"float_balance\": {\n            \"amount\": 113148.57,\n            \"currency\": \"GBP\"\n        }\n    }\n}"},{"id":"81121c01-06db-466a-8ea3-0aa71bfe2fe5","name":"Issue Digital Code","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"amazon\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8d821504-bec7-42f2-af22-527209ed5cd1"},{"name":"Issue Digital Code With Personalisation","event":[{"listen":"prerequest","script":{"id":"29bd7a56-3e85-4e35-9786-a711365636bf","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"0fcd9d31-4bbb-4e01-8134-71ed03be0edb","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;    ","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"4994d494-5a00-4a0a-b834-fb27f10a51b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"amazon\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"personalisation\": {\n    \"to_name\": \"Recipient\",\n    \"from_name\": \"Sender\",\n    \"message\": \"Here is your gift\",\n    \"template\": \"standard\"\n  },\n   \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>You can add a personal touch to digital gift cards by passing additional \"personalisation\" parameters. These include the recipients name, the senders name, and a short message.</p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"945646ed-128a-4605-8a36-a04451c395f2","name":"Issue Digital Code - Personalised","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"amazon\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"personalisation\": {\n    \"to_name\": \"Recipient\",\n    \"from_name\": \"Sender\",\n    \"message\": \"Here is your gift\",\n    \"template\": \"standard\"\n  },\n   \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 22 May 2020 14:19:12 GMT"},{"key":"Server","value":"Apache"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkJvQnRROTJrM0I5bmRqeXhpSzU5XC93PT0iLCJ2YWx1ZSI6InduZGNjU3JzVFF0WFJkXC9POE1aWFBmSFwvMFdyVTIzVTdXN0FQVmowS3VJS3laWGZKK2Ewb1g3bElJcHhYRWk1dCIsIm1hYyI6IjQwODg3NTdjOWU2MTBjYjdhNWIxNmQ5YzM0Yjk4MjY1ZDMyODRjYjk4NGY1OGMzY2VmNmU1NWZkMWMyMGJjNTYifQ%3D%3D; expires=Fri, 22-May-2020 15:19:14 GMT; Max-Age=3600; path=/; secure"},{"key":"Set-Cookie","value":"tillo_session=eyJpdiI6IktvUmdLTlJRbEtUeldlcTE1dUQ3Y1E9PSIsInZhbHVlIjoiYkQzM3duZ1RiUmIwYXhtTGNBM291M253dFBKaHpUNktPa3VGcG14eWRndFVzb0EyeVFEd1wvTUhHVlIrcStjR2EiLCJtYWMiOiIyOGMxMzgyMDk2MGJiMTAzODEzYzQwY2Y5YTBiMmY0OWIyN2NjN2NiOTc2MjA4MWRjYjUzMDc1Yjg1OGVjNDNjIn0%3D; path=/; secure; httponly"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Vary","value":"X-Forwarded-Proto"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-RateLimit-Limit","value":"900"},{"key":"X-RateLimit-Remaining","value":"899"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Length","value":"474"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card created successfully\",\n    \"data\": {\n        \"brand\": \"amazon\",\n        \"url\": \"https://sandbox.revealyourgift.com/02e29ea3-e987-46f2-972a-ddf8def5d682/52bec8eb-f2c7-42ac-8a3f-230158fbab66\",\n        \"face_value\": {\n            \"amount\": 20,\n            \"currency\": \"GBP\"\n        },\n        \"cost_value\": {\n            \"amount\": 19.4,\n            \"currency\": \"GBP\"\n        },\n        \"discount\": 3.5,\n        \"expiration_date\": \"2030-10-12T22:59:59+00:00\",\n        \"reference\": \"a11d3a00-0c75-11eb-923f-318c54fae775\",\n        \"float_balance\": {\n            \"amount\": 113167.97,\n            \"currency\": \"GBP\"\n        }\n    }\n}\n"}],"_postman_id":"4994d494-5a00-4a0a-b834-fb27f10a51b9"},{"name":"Issue Digital Code With Themed Choice Link","event":[{"listen":"prerequest","script":{"id":"29bd7a56-3e85-4e35-9786-a711365636bf","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"0fcd9d31-4bbb-4e01-8134-71ed03be0edb","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;    ","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"8d2d90c3-512e-4b5a-becb-4e5a0e0b8268","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"premium-choice\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"personalisation\": {\n    \"to_name\": \"Recipient\",\n    \"from_name\": \"Sender\",\n    \"message\": \"Here is your gift\",\n    \"choice_link_theme\": \"your_theme_reference\"\n  },\n   \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>You can customise the theming of a choice link using the \"choice_link_theme\" parameter. For more information see the choice link documentation page: <a href=\"https://tillo.tech/v2_docs/digital_vs_physical/choice_links.html#choice-links\">https://tillo.tech/v2_docs/digital_vs_physical/choice_links.html</a></p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"4ea20834-e477-4542-a46c-fc92c5a74c20","name":"Issue Digital Code - Themed Choice Link","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"amazon\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"personalisation\": {\n    \"to_name\": \"Recipient\",\n    \"from_name\": \"Sender\",\n    \"message\": \"Here is your gift\",\n    \"template\": \"standard\"\n  },\n   \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 22 May 2020 14:19:12 GMT"},{"key":"Server","value":"Apache"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkJvQnRROTJrM0I5bmRqeXhpSzU5XC93PT0iLCJ2YWx1ZSI6InduZGNjU3JzVFF0WFJkXC9POE1aWFBmSFwvMFdyVTIzVTdXN0FQVmowS3VJS3laWGZKK2Ewb1g3bElJcHhYRWk1dCIsIm1hYyI6IjQwODg3NTdjOWU2MTBjYjdhNWIxNmQ5YzM0Yjk4MjY1ZDMyODRjYjk4NGY1OGMzY2VmNmU1NWZkMWMyMGJjNTYifQ%3D%3D; expires=Fri, 22-May-2020 15:19:14 GMT; Max-Age=3600; path=/; secure"},{"key":"Set-Cookie","value":"tillo_session=eyJpdiI6IktvUmdLTlJRbEtUeldlcTE1dUQ3Y1E9PSIsInZhbHVlIjoiYkQzM3duZ1RiUmIwYXhtTGNBM291M253dFBKaHpUNktPa3VGcG14eWRndFVzb0EyeVFEd1wvTUhHVlIrcStjR2EiLCJtYWMiOiIyOGMxMzgyMDk2MGJiMTAzODEzYzQwY2Y5YTBiMmY0OWIyN2NjN2NiOTc2MjA4MWRjYjUzMDc1Yjg1OGVjNDNjIn0%3D; path=/; secure; httponly"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Vary","value":"X-Forwarded-Proto"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-RateLimit-Limit","value":"900"},{"key":"X-RateLimit-Remaining","value":"899"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Length","value":"474"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card created successfully\",\n    \"data\": {\n        \"brand\": \"premium-choice\",\n        \"url\": \"https://sandbox.revealyourgift.com/02e29ea3-e987-46f2-972a-ddf8def5d682/52bec8eb-f2c7-42ac-8a3f-230158fbab66\",\n        \"face_value\": {\n            \"amount\": 20,\n            \"currency\": \"GBP\"\n        },\n        \"cost_value\": {\n            \"amount\": 19.4,\n            \"currency\": \"GBP\"\n        },\n        \"discount\": 3.5,\n        \"expiration_date\": \"2030-10-12T22:59:59+00:00\",\n        \"reference\": \"a11d3a00-0c75-11eb-923f-318c54fae775\",\n        \"float_balance\": {\n            \"amount\": 113167.97,\n            \"currency\": \"GBP\"\n        }\n    }\n}\n"}],"_postman_id":"8d2d90c3-512e-4b5a-becb-4e5a0e0b8268"},{"name":"Issue Digital Code - Fulfillment by Tillo","event":[{"listen":"prerequest","script":{"id":"585e0804-1d25-47e7-9c63-e19825579a32","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"eef84b80-6c90-4768-99a1-d70762622c51","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;    ","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"e7984570-e138-453b-a67c-b2ce744bb1d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"amazon\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"rewardcloud\",\n   \"fulfilment_parameters\": {\n       \"to_name\": \"Receiver\",\n       \"to_email\": \"test@tillo.io\",\n       \"from_name\": \"Partner name\",\n       \"from_email\": \"noreply@app.tillo.io\",\n       \"subject\": \"[TestCode] Here is your gift card!\"\n   },\n   \"personalisation\": {\n    \"to_name\": \"Recipient\",\n    \"from_name\": \"Sender\",\n    \"message\": \"Here is your gift\",\n    \"template\": \"standard\"\n  },\n   \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>If you would like Tillo to take care of sending the gift card email to the end customer you can change the \"fulfilment_by\" parameter to \"rewardcloud\".\nYou will also need to provide the additional \"fulfilment_parameters\".\nNOTE: Personalisation is also required when choosing fulfilment by Tillo.</p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"468b863a-ced7-405b-927c-4b47b00b9524","name":"Issue Digital Code - Fulfiment by Tillo","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":  \"amazon\",\n   \"face_value\": {\n       \"amount\": 20.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"rewardcloud\",\n   \"fulfilment_parameters\": {\n       \"to_name\": \"Receiver\",\n       \"to_email\": \"test@tillo.io\",\n       \"from_name\": \"Partner name\",\n       \"from_email\": \"noreply@app.tillo.io\",\n       \"subject\": \"[TestCode] Here is your gift card!\"\n   },\n   \"personalisation\": {\n    \"to_name\": \"Recipient\",\n    \"from_name\": \"Sender\",\n    \"message\": \"Here is your gift\",\n    \"template\": \"standard\"\n  },\n   \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 22 May 2020 14:19:12 GMT"},{"key":"Server","value":"Apache"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkJvQnRROTJrM0I5bmRqeXhpSzU5XC93PT0iLCJ2YWx1ZSI6InduZGNjU3JzVFF0WFJkXC9POE1aWFBmSFwvMFdyVTIzVTdXN0FQVmowS3VJS3laWGZKK2Ewb1g3bElJcHhYRWk1dCIsIm1hYyI6IjQwODg3NTdjOWU2MTBjYjdhNWIxNmQ5YzM0Yjk4MjY1ZDMyODRjYjk4NGY1OGMzY2VmNmU1NWZkMWMyMGJjNTYifQ%3D%3D; expires=Fri, 22-May-2020 15:19:14 GMT; Max-Age=3600; path=/; secure"},{"key":"Set-Cookie","value":"tillo_session=eyJpdiI6IktvUmdLTlJRbEtUeldlcTE1dUQ3Y1E9PSIsInZhbHVlIjoiYkQzM3duZ1RiUmIwYXhtTGNBM291M253dFBKaHpUNktPa3VGcG14eWRndFVzb0EyeVFEd1wvTUhHVlIrcStjR2EiLCJtYWMiOiIyOGMxMzgyMDk2MGJiMTAzODEzYzQwY2Y5YTBiMmY0OWIyN2NjN2NiOTc2MjA4MWRjYjUzMDc1Yjg1OGVjNDNjIn0%3D; path=/; secure; httponly"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Vary","value":"X-Forwarded-Proto"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-RateLimit-Limit","value":"900"},{"key":"X-RateLimit-Remaining","value":"899"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Length","value":"474"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card created successfully\",\n    \"data\": {\n        \"brand\": \"amazon\",\n        \"url\": \"https://sandbox.revealyourgift.com/4d0cae03-b93c-4853-b636-93718cc9b9a9/7956fecc-0dd2-45b2-8c02-f142970d509e\",\n        \"face_value\": {\n            \"amount\": 20,\n            \"currency\": \"GBP\"\n        },\n        \"cost_value\": {\n            \"amount\": 19.4,\n            \"currency\": \"GBP\"\n        },\n        \"discount\": 3.5,\n        \"expiration_date\": \"2030-10-12T22:59:59+00:00\",\n        \"reference\": \"adc1b250-0c75-11eb-8d3e-2be8146bbdbe\",\n        \"float_balance\": {\n            \"amount\": 113109.77,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"e7984570-e138-453b-a67c-b2ce744bb1d4"},{"name":"Issue Reward Pass (Email)","event":[{"listen":"prerequest","script":{"id":"810de1bc-c20b-47ba-91df-e5a3e971e4dc","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"71afccc2-a9b4-4cc9-ae55-be48918660cd","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;    ","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"e5dadf1d-3fb8-4596-bb04-3725bbec175f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\": \"mock-brand\",\n   \"face_value\": {\n       \"amount\": 5.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"email\",\n   \"fulfilment_by\": \"rewardcloud\",\n   \"fulfilment_parameters\": {\n       \"to_name\": \"Test User\",\n       \"to_email\": \"test@tillo.io\",\n       \"from_name\": \"Reward Cloud\",\n       \"from_email\": \"noreply@app.tillo.io\",\n       \"subject\": \"[TestCode] Here is your gift card!\",\n       \"language\": \"en\",\n       \"customer_id\": \"\",\n       \"to_first_name\": \"Test\",\n       \"to_last_name\": \"User\"\n   },\n   \"personalisation\": {\n       \"to_name\": \"Recipient\",\n       \"from_name\": \"Sender\",\n       \"message\": \"Here is your gift\",\n       \"template\": \"standard\",\n       \"email_message\": \"Message to appear in payment notification email\",\n\t   \"redemption_message\": \"Message to appear on participant portal\",\n\t   \"carrier_message\": \"Message to appear on letter if physical card fulfilment\"\n   },\n   \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>Issue a new Reward Pass by email.</p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"fcd484e6-de8f-4e9b-bce3-8d92ad25b710","name":"Reward Pass GBP (delivered by email)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\": \"reward-pass-gbp\",\n   \"face_value\": {\n       \"amount\": 5.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"email\",\n   \"fulfilment_by\": \"rewardcloud\",\n   \"fulfilment_parameters\": {\n       \"to_name\": \"Test User\",\n       \"to_email\": \"test@tillo.io\",\n       \"from_name\": \"Reward Cloud\",\n       \"from_email\": \"noreply@app.tillo.io\",\n       \"subject\": \"[TestCode] Here is your gift card!\",\n       \"language\": \"en\",\n       \"customer_id\": \"\",\n       \"to_first_name\": \"Test\",\n       \"to_last_name\": \"User\"\n   },\n   \"personalisation\": {\n       \"to_name\": \"Recipient\",\n       \"from_name\": \"Sender\",\n       \"message\": \"Here is your gift\",\n       \"template\": \"standard\",\n       \"email_message\": \"Message to appear in payment notification email\",\n\t   \"redemption_message\": \"Message to appear on participant portal\",\n\t   \"carrier_message\": \"Message to appear on letter if physical card fulfilment\"\n   },\n   \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card created successfully\",\n    \"data\": {\n        \"brand\": \"reward-pass-gbp\",\n        \"face_value\": {\n            \"amount\": 5,\n            \"currency\": \"GBP\"\n        },\n        \"expiration_date\": \"2019-08-31T23:59:59+00:00\",\n        \"reference\": \"a784d060-0f96-11eb-826f-9d96dff6935b\",\n        \"float_balance\": {\n            \"amount\": 417392.18,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"e5dadf1d-3fb8-4596-bb04-3725bbec175f"},{"name":"Issue Reward Pass (URL)","event":[{"listen":"prerequest","script":{"id":"3f7ae771-1e08-4d10-9624-ee038d461140","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"a0205fb0-cc64-4fdb-9f70-07b47b1a61eb","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;    ","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"93f3c295-c3da-4a39-9bf1-00409ac00b85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\": \"reward-pass-gbp\",\n   \"face_value\": {\n           \"amount\": 36.00,\n           \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"partner\",\n   \"fulfilment_parameters\":{\n        \"to_email\":\"peter.ladds@tillo.io\",\n        \"to_first_name\":\"First Name\",\n        \"to_last_name\":\"Last Name\",\n        \"address_1\":\"45 Church Road\",\n        \"address_2\":\"\",\n        \"city\":\"Hove\",\n        \"postal_code\":\"BN3 2BE\",\n        \"country\":\"GBR\",\n        \"language\": \"en\",\n        \"customer_id\": \"\"\n   },\n   \"personalisation\":{\n        \"message\":\"Here is your requested gift card\",\n    \t\"email_message\": \"Message to appear in payment notification email\",\n    \t\"redemption_message\": \"Message to appear on participant portal\",\n    \t\"carrier_message\": \"Message to appear on letter if physical card fulfilment\"\n   },\n   \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>Issue a new Reward Pass by URL.</p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"e1f02224-840a-4be5-b756-bcf9e89b22de","name":"Reward Pass GBP (delivered by url)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\r\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\r\n   \"brand\": \"reward-pass-gbp\",\r\n   \"face_value\": {\r\n           \"amount\": 5.00,\r\n           \"currency\": \"GBP\"\r\n   },\r\n   \"delivery_method\": \"url\",\r\n   \"fulfilment_by\": \"partner\",\r\n   \"fulfilment_parameters\":{\r\n        \"to_first_name\":\"First Name\",\r\n        \"to_last_name\":\"Last Name\",\r\n        \"address_1\":\"45 Church Road\",\r\n        \"address_2\":\"\",\r\n        \"city\":\"Hove\",\r\n        \"postal_code\":\"BN3 2BE\",\r\n        \"country\":\"GBR\",\r\n        \"language\": \"en\",\r\n        \"customer_id\": \"\"\r\n   },\r\n   \"personalisation\":{\r\n        \"message\":\"Here is your requested gift card\",\r\n    \t\"email_message\": \"Message to appear in payment notification email\",\r\n    \t\"redemption_message\": \"Message to appear on participant portal\",\r\n    \t\"carrier_message\": \"Message to appear on letter if physical card fulfilment\"\r\n   },\r\n   \"sector\": \"voluntary-benefits\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 30 Sep 2019 14:24:47 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImdOTFJERkpVVmtNK0dJNFhjSUZQM1E9PSIsInZhbHVlIjoibHBKb1wvWHJDYWhRc1JuREJmSzB4Mzluck52NFdYclFHSTRUTUZSQzlaemVxVjFwVm1Wekk0c1BJRGJKZkpRbnEiLCJtYWMiOiIyMDZlYzZkY2VlZWNiNDk4YWU3YTY1OGIwYmUwNWU2MGFiYTJlNjA3YTA1ZTMwNWUyZjk2OTE1M2FhYThmYmFhIn0%3D; expires=Mon, 30-Sep-2019 14:54:50 GMT; Max-Age=1800; path=/; secure"},{"key":"Set-Cookie","value":"tillo_session=eyJpdiI6ImdXRzFacUU0aGUxa0YxcCtRbnpRcHc9PSIsInZhbHVlIjoibHhMVUg2M2I2SW5NNnFzSVlJd0xhRzNDZUd0NW15cStKSUpyNTFpYWRIXC9QVVwvQkcwSlQxRm1neUxPU0NLdU5JIiwibWFjIjoiMTMzMDU5ZWU0NmUwYmUxNzA5NDhjZWMwMjI1OWM2ZDkxMzQ2NzcwODU0Y2FjYjI3MWEzOWI4ZWY0ZGM0ZjhjOCJ9; path=/; secure; httponly"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"code\": \"000\",\r\n    \"status\": \"success\",\r\n    \"message\": \"Card created successfully\",\r\n    \"data\": {\r\n        \"brand\": \"reward-pass-gbp\",\r\n        \"url\": \"https://example.com/afd9efb0-aa16-11e9-8041-5778fec44a20\",\r\n        \"face_value\": {\r\n            \"amount\": 5,\r\n            \"currency\": \"GBP\"\r\n        },\r\n        \"expiration_date\": \"2019-10-31T23:59:59+00:00\",\r\n        \"reference\": \"afd9efb0-aa16-11e9-8041-5778fec44a20\",\r\n        \"float_balance\": {\r\n            \"amount\": 412326.87,\r\n            \"currency\": \"GBP\"\r\n        }\r\n    }\r\n}"}],"_postman_id":"93f3c295-c3da-4a39-9bf1-00409ac00b85"},{"name":"Top-up Digital Code","event":[{"listen":"prerequest","script":{"id":"eebcf1b3-4f7e-480d-b30f-85b1804807c8","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"e9bdd652-b336-4df5-936e-a6bd38e092ba","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);"],"type":"text/javascript","packages":{}}}],"id":"b5501ed9-69ee-4ca6-93f6-38f0628a9551","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\", \n    \"brand\": \"costa\",\n    \"face_value\": {\n        \"amount\": 12.35,\n        \"currency\": \"GBP\"\n    },\n    \"reference\": \"ad38c984-b509-11e7-9abc-06c4ed57771a\",\n    \"sector\": \"marketplace\"\n}"},"url":"{{URL}}/api/v2/digital/top-up","description":"<p>Top up a digital gift card.</p>\n","urlObject":{"path":["api","v2","digital","top-up"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"eaaba8ea-1b48-4a05-829b-2176de46804f","name":"Successful Response - Reference","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"1234\", \n    \"brand\": \"costa\",\n    \"face_value\": {\n        \"amount\": 12.35,\n        \"currency\": \"GBP\"\n    },\n    \"reference\": \"ad38c984-b509-11e7-9abc-06c4ed57771a\",\n    \"tags\": [\"premium\", \"lifetime\"],\n    \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/top-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card topped up successfully\",\n    \"data\": {\n        \"code\": \"ABC1234\",\n        \"pin\": \"1234\",\n        \"float_balance\": {\n            \"amount\": 20763.3,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"a491f1f0-0c75-11eb-af67-09b215648e5c\"\n    }\n}"},{"id":"c5279e54-414e-42fb-8edd-0780907c1346","name":"Successful Response - Code and PIN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"1234\", \n    \"brand\": \"costa\",\n    \"face_value\": {\n        \"amount\": 12.35,\n        \"currency\": \"GBP\"\n    },\n    \"code\": \"ABC1234\",\n    \"pin\": \"1234\",\n    \"tags\": [\"premium\", \"lifetime\"],\n    \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/top-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card topped up successfully\",\n    \"data\": {\n        \"code\": \"ABC1234\",\n        \"pin\": \"1234\",\n        \"float_balance\": {\n            \"amount\": 20763.3,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"a491f1f0-0c75-11eb-af67-09b215648e5c\"\n    }\n}"},{"id":"3d383768-a7e1-4c96-a960-8e0de52e6ed1","name":"Successful Response - Code","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"1234\", \n    \"brand\": \"costa\",\n    \"face_value\": {\n        \"amount\": 129.5,\n        \"currency\": \"GBP\"\n    },\n    \"code\": \"ABC1234\",\n    \"tags\": [\"premium\", \"lifetime\"],\n    \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/top-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card topped up successfully\",\n    \"data\": {\n        \"code\": \"ABC1234\",\n        \"float_balance\": {\n            \"amount\": 20763.3,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"a491f1f0-0c75-11eb-af67-09b215648e5c\"\n    }\n}"},{"id":"a91c8fca-e60e-49f5-bad1-6baa94b0225b","name":"Successful Response - Code and Serial Number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"1234\", \n    \"brand\": \"sainsburys\",\n    \"face_value\": {\n        \"amount\": 129.5,\n        \"currency\": \"GBP\"\n    },\n    \"code\": \"ABC1234\",\n    \"serial_number\": \"123456879\",\n    \"tags\": [\"premium\", \"lifetime\"],\n    \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/top-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card topped up successfully\",\n    \"data\": {\n        \"code\": \"ABC1234\",\n        \"float_balance\": {\n            \"amount\": 20763.3,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"a491f1f0-0c75-11eb-af67-09b215648e5c\"\n    }\n}"},{"id":"c9836273-159a-45c3-b306-8febb6e8e8ac","name":"Unsuccessful Response - required serial_number missing","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"1234\", \n    \"brand\": \"sainsburys\",\n    \"face_value\": {\n        \"amount\": 129.5,\n        \"currency\": \"GBP\"\n    },\n    \"code\": \"ABC1234\",\n    \"tags\": [\"premium\", \"lifetime\"],\n    \"sector\": \"voluntary-benefits\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/top-up"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"704\",\n    \"status\": \"error\",\n    \"message\": \"There were errors validating the request\",\n    \"data\": {\n        \"serial_number\": [\n            \"The serial number field is required.\"\n        ]\n    }\n}"}],"_postman_id":"b5501ed9-69ee-4ca6-93f6-38f0628a9551"},{"name":"Cancel Digital Code","event":[{"listen":"test","script":{"id":"b97fe846-cbca-4dec-8450-e9f169bdeca7","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"2d5f235b-4da4-45af-a9ff-e136bda8c9f8","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"3db0aa76-5c17-487d-9aa7-ad73d98c107f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"original_client_request_id\": \"{{ORIGINAL_CLIENT_REQUEST_ID}}\",\n  \"brand\": \"{{BRAND}}\",\n  \"face_value\": {\n    \"amount\": \"{{FACE_VALUE_AMOUNT}}\",\n    \"currency\": \"{{FACE_VALUE_CURRENCY}}\"\n  },\n  \"code\": \"{{CODE}}\", \n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>Cancel an issued digital gift card</p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"4220a216-c91b-4f93-9ce8-be199a22876f","name":"Successful Response - Code","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"YOUR_API_KEY","type":"text"},{"key":"Signature","value":"REQUEST_SIGNATURE","type":"text"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"5678\",\n    \"original_client_request_id\": \"1234\",\n    \"brand\": \"pizza-hut\",\n    \"face_value\": {\n        \"amount\": \"129.5\",\n        \"currency\": \"GBP\"\n    },\n    \"code\": \"123456789\",\n    \"sector\": \"voluntary-benefits\",\n    \"tags\": [\n        \"Premium\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"code\": \"000\",\n\t\"status\": \"success\",\n\t\"message\": \"URL cancelled successfully\"\n}"}],"_postman_id":"3db0aa76-5c17-487d-9aa7-ad73d98c107f"},{"name":"Cancel Digital URL","event":[{"listen":"test","script":{"id":"b97fe846-cbca-4dec-8450-e9f169bdeca7","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"2d5f235b-4da4-45af-a9ff-e136bda8c9f8","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"c592ba35-0dcc-4f93-8a45-3ca936b576da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"original_client_request_id\": \"{{ORIGINAL_CLIENT_REQUEST_ID}}\",\n  \"brand\": \"{{BRAND}}\",\n  \"face_value\": {\n    \"amount\": 51.00,\n    \"currency\": \"GBP\"\n  },\n  \"url\": \"{{WRAPPR_URL}}\", \n  \"sector\": \"gift-card-mall\"\n}"},"url":"{{URL}}/api/v2/digital/issue","description":"<p>Cancel an issued digital gift card</p>\n","urlObject":{"path":["api","v2","digital","issue"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"82d9bbb6-252b-4caf-b77e-9fcf61abc191","name":"Successful Response - Code","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"YOUR_API_KEY","type":"text"},{"key":"Signature","value":"REQUEST_SIGNATURE","type":"text"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client_request_id\": \"5678\",\n    \"original_client_request_id\": \"1234\",\n    \"brand\": \"pizza-hut\",\n    \"face_value\": {\n        \"amount\": \"129.5\",\n        \"currency\": \"GBP\"\n    },\n    \"url\": \"https://example.com/1234567890\",\n    \"sector\": \"voluntary-benefits\",\n    \"tags\": [\n        \"Premium\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/issue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"code\": \"000\",\n\t\"status\": \"success\",\n\t\"message\": \"URL cancelled successfully\"\n}"}],"_postman_id":"c592ba35-0dcc-4f93-8a45-3ca936b576da"},{"name":"Reverse Digital Code","event":[{"listen":"prerequest","script":{"id":"995760b8-2bd1-41b4-93ff-ce0ab0a92f4a","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"164d6e53-2f08-4286-acae-4ab032c6e6b7","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"original_client_request_id\": \"{{ORIGINAL_CLIENT_REQUEST_ID}}\",\n  \"brand\": \"{{BRAND}}\",\n  \"face_value\": {\n    \"amount\": \"{{FACE_VALUE_AMOUNT}}\",\n    \"currency\": \"{{FACE_VALUE_CURRENCY}}\"\n  },\n  \"sector\": \"voluntary-benefits\",\n  \"tags\": [\"premium\", \"lifetime\"]\n}"},"url":"{{URL}}/api/v2/digital/reverse","description":"<p>Reverse a digital gift card. This endpoint allows you to cancel an issued digital gift card using just the <code>original_client_request_id</code>. This can be a useful alternative to cancel when your initial request timed out and may not neccesarily have access to the code or url from the issuance response. However, please note that this endpoint can only be used within 48 hours of the original issuance.</p>\n","urlObject":{"path":["api","v2","digital","reverse"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"de6da9b0-72a9-4796-b922-620a44e8d971","name":"Successful Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"YOUR_API_KEY","type":"text"},{"key":"Signature","value":"REQUEST_SIGNATURE","type":"text"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"5678\",\n  \"original_client_request_id\": \"1234\",\n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"amount\": 129.5,\n  \t\"currency\": \"GBP\"\n  }\n}"},"url":"{{URL}}/api/v2/digital/reverse"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"code\": \"000\",\n\t\"status\": \"success\",\n\t\"message\": \"Code cancelled successfully\"\n}"}],"_postman_id":"164d6e53-2f08-4286-acae-4ab032c6e6b7"},{"name":"Check Stock","event":[{"listen":"prerequest","script":{"id":"f235f9a6-c240-4059-a70a-5e21eb42ca2d","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"d8a8762c-cfda-47fb-977d-67453893069d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/check-stock?brand=asda","description":"<p>Some brands are held in stock in our GC Pool as fixed denominations. Brands are able to to top up the stock when running low.</p>\n","urlObject":{"path":["api","v2","check-stock"],"host":["{{URL}}"],"query":[{"key":"brand","value":"asda"}],"variable":[]}},"response":[{"id":"129bc26a-054c-4e46-bb94-9dd2fbecf6dc","name":"With Brand Successful Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":{"raw":"{{URL}}/api/v2/check-stock?brand=laithwaites","host":["{{URL}}"],"path":["api","v2","check-stock"],"query":[{"key":"brand","value":"laithwaites"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Check stock for laithwaites\",\n    \"data\": {\n        \"laithwaites\": {\n            \"5.00\": \"GOOD\",\n            \"10.00\": \"LOW\",\n            \"25.00\": \"OUT\"\n        }\n    }\n}"},{"id":"37a5cb14-c8bb-4b57-8932-0481be2b73f5","name":"Without Brand Successful Response","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/check-stock"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Check stock for various brands\",\n    \"data\": {\n        \"laithwaites\": {\n            \"5.00\": \"GOOD\",\n            \"10.00\": \"GOOD\",\n            \"25.00\": \"OUT\"\n        },\n        \"fabyouless\": {\n            \"5.00\": \"OUT\",\n            \"10.00\": \"LOW\",\n            \"25.00\": \"LOW\"\n        },\n        \"feel-unique\": {\n            \"5.00\": \"OUT\",\n            \"10.00\": \"LOW\",\n            \"25.00\": \"GOOD\"\n        }\n    }\n}"}],"_postman_id":"d8a8762c-cfda-47fb-977d-67453893069d"},{"name":"Balance Check","event":[{"listen":"prerequest","script":{"id":"28afe4ef-0d30-4421-bd24-b0e402bfef0b","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"fad0070b-1074-43be-a156-60a5960b2d7c","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"00f1e374-ec02-41ac-ba91-e90d7cfa2a94","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"brand\": \"{{BRAND}}\",\n  \"face_value\": {\n    \"currency\": \"{{FACE_VALUE_CURRENCY}}\"\n  },\n  \"code\": \"2541195501981882\",\n  \"pin\": \"\",\n  \"sector\": \"marketplace\"\n}"},"url":"{{URL}}/api/v2/digital/check-balance","description":"<p>Check the balance of a gift code</p>\n<p>The <code>serial_number</code> property is now mandatory for the Sainsbury (<code>sainsburys</code> ) brand.</p>\n","urlObject":{"path":["api","v2","digital","check-balance"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"857a6504-dea0-4bd0-bbec-c2321b73bc98","name":"Balance Check With Original Client Request Id","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"5678\",\n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n    \"currency\": \"GBP\"\n  },\n  \"original_client_request_id\": \"1234\",\n  \"sector\": \"marketplace\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/check-balance"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card balance retrieved successfully\",\n    \"data\": {\n        \"face_value\": {\n            \"amount\": 10,\n            \"currency\": \"GBP\"\n        }\n    }\n}"},{"id":"8d8daf35-3320-4048-8aa4-5f6e81063d7e","name":"Balance Check With Code","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"YOUR_API_KEY","type":"text"},{"key":"Signature","value":"REQUEST_SIGNATURE","type":"text"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"5678\",\n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"currency\": \"GBP\"\n  },\n  \"code\": \"1234567890123456\",\n  \"pin\": \"1234\",\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/digital/check-balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card balance retrieved successfully\",\n    \"data\": {\n        \"face_value\": {\n            \"amount\": 10,\n            \"currency\": \"GBP\"\n        }\n    }\n}"},{"id":"8f8658be-0e15-4cc6-9260-466d2c6ad2f0","name":"Balance Check With Reference","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\",\n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n    \"currency\": \"GBP\"\n  },\n  \"reference\": \"ad38c984-b509-11e7-9abc-06c4ed57771a\",\n  \"sector\": \"marketplace\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/check-balance"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card balance retrieved successfully\",\n    \"data\": {\n        \"face_value\": {\n            \"amount\": 10,\n            \"currency\": \"GBP\"\n        }\n    }\n}"},{"id":"8676860a-27fd-4d8c-8c76-b63b9613c0a8","name":"Balance Check With Reference and Serial number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\",\n  \"brand\": \"sainsburys\",\n  \"face_value\": {\n    \"currency\": \"GBP\"\n  },\n  \"reference\": \"ad38c984-b509-11e7-9abc-06c4ed57771a\",\n  \"serial_number\": \"111621374689\",\n  \"sector\": \"marketplace\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/check-balance"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card balance retrieved successfully\",\n    \"data\": {\n        \"face_value\": {\n            \"amount\": 10,\n            \"currency\": \"GBP\"\n        }\n    }\n}"},{"id":"e8f15326-d3f6-4e66-a4a4-9f69b39a001b","name":"Unsuccessful Response with serial number missing","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\",\n  \"brand\": \"sainsburys\",\n  \"face_value\": {\n    \"currency\": \"GBP\"\n  },\n  \"reference\": \"ad38c984-b509-11e7-9abc-06c4ed57771a\",\n  \"sector\": \"marketplace\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/check-balance"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"704\",\n    \"status\": \"error\",\n    \"message\": \"There were errors validating the request\",\n    \"data\": {\n        \"serial_number\": [\n            \"The serial number field is required.\"\n        ]\n    }\n}"}],"_postman_id":"00f1e374-ec02-41ac-ba91-e90d7cfa2a94"},{"name":"Order Digital Code (async)","event":[{"listen":"prerequest","script":{"id":"f235f9a6-c240-4059-a70a-5e21eb42ca2d","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"1d90601f-2124-43c5-83dc-df6855014d3c","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);"],"type":"text/javascript","packages":{}}}],"id":"97959501-4dbf-4d2b-a525-2ca4d2c44831","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\": \"amazon\",\n   \"face_value\": {\n       \"amount\": 41.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"url\",\n   \"fulfilment_by\": \"rewardcloud\",\n   \"fulfilment_parameters\": {\n       \"to_name\": \"Test User\",\n       \"to_email\": \"test@tillo.io\",\n       \"from_name\": \"Reward Cloud\",\n       \"from_email\": \"noreply@app.tillo.io\",\n       \"subject\": \"[TestCode] Here is your gift card!\",\n       \"language\": \"en\",\n       \"customer_id\": \"\",\n       \"to_first_name\": \"Test\",\n       \"to_last_name\": \"User\"\n   },\n   \n     \"personalisation\": {\n       \"to_name\": \"Recipient\",\n       \"from_name\": \"Sender\",\n       \"message\": \"Here is your gift\",\n       \"template\": \"standard\",\n       \"email_message\": \"Message to appear in payment notification email\",\n\t   \"redemption_message\": \"Message to appear on participant portal\",\n\t   \"carrier_message\": \"Message to appear on letter if physical card fulfilment\"\n   },\n   \"sector\": \"marketplace\"\n}"},"url":"{{URL}}/api/v2/digital/order-card","description":"<p>Create an asynchronous request for a gift code.</p>\n","urlObject":{"path":["api","v2","digital","order-card"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"3751917b-8b12-494c-98d0-9dfbf6a7f1d7","name":"Successful response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n   \"brand\": \"async-mock-brand\",\n   \"face_value\": {\n       \"amount\": 5.00,\n       \"currency\": \"GBP\"\n   },\n   \"delivery_method\": \"code\",\n   \"fulfilment_by\": \"rewardcloud\",\n   \"fulfilment_parameters\": {\n       \"to_name\": \"Test User\",\n       \"to_email\": \"test@tillo.io\",\n       \"from_name\": \"Reward Cloud\",\n       \"from_email\": \"noreply@tillo.io\",\n       \"subject\": \"[TestCode] Here is your gift card!\",\n       \"language\": \"en\",\n       \"customer_id\": \"\",\n       \"to_first_name\": \"Test\",\n       \"to_last_name\": \"User\"\n   },\n   \"personalisation\": {\n       \"to_name\": \"Recipient\",\n       \"from_name\": \"Sender\",\n       \"message\": \"Here is your gift\",\n       \"template\": \"standard\",\n       \"email_message\": \"Message to appear in payment notification email\",\n\t   \"redemption_message\": \"Message to appear on participant portal\",\n\t   \"carrier_message\": \"Message to appear on letter if physical card fulfilment\"\n   },\n   \"sector\": \"cash-out\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v2/digital/order-card"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card ordered successfully\",\n    \"data\": {\n        \"brand\": \"async-mock-brand\",\n        \"face_value\": {\n            \"amount\": 5,\n            \"currency\": \"GBP\"\n        },\n        \"cost_value\": {\n            \"amount\": 4.50,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"ab8044e0-82cb-11e9-8395-f18b28b35eef\",\n        \"float_balance\": {\n            \"amount\": 417112.18,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"97959501-4dbf-4d2b-a525-2ca4d2c44831"},{"name":"Check Digital Order Status by Reference (async)","event":[{"listen":"prerequest","script":{"id":"f235f9a6-c240-4059-a70a-5e21eb42ca2d","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"8ac5ad4f-9dd3-4e66-adbc-db62336559b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/digital/order-status?reference=af2ad340-cde0-11eb-bb06-b1ffbbb1a894","description":"<p>Retrieve gift code details for an existing asynchronous digital gift code order are available.</p>\n","urlObject":{"path":["api","v2","digital","order-status"],"host":["{{URL}}"],"query":[{"key":"reference","value":"af2ad340-cde0-11eb-bb06-b1ffbbb1a894"}],"variable":[]}},"response":[{"id":"18cd3a56-b577-4adf-9e2f-0e6faccef3a9","name":"Order failed","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{URL}}/api/v2/digital/order-status?reference=a6d59410-fbd3-11e9-bb77-7d1bec721460","host":["{{URL}}"],"path":["api","v2","digital","order-status"],"query":[{"key":"reference","value":"a6d59410-fbd3-11e9-bb77-7d1bec721460"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Order failed to process\",\n    \"data\": {\n        \"reference\": \"a6d59410-fbd3-11e9-bb77-7d1bec721460\",\n        \"status\": \"ERROR\"\n    }\n}"},{"id":"28a4cbf1-4cba-43b8-9117-e24ad2a83e8b","name":"Code available","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":{"raw":"{{URL}}/api/v2/digital/order-status?reference=ab8044e0-82cb-11e9-8395-f18b28b35eef","host":["{{URL}}"],"path":["api","v2","digital","order-status"],"query":[{"key":"reference","value":"ab8044e0-82cb-11e9-8395-f18b28b35eef"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n\t\"code\": \"000\",\r\n\t\"status\": \"success\",\r\n\t\"message\": \"Order has finished processing\",\r\n\t\"data\": {\r\n\t\t\"reference\": \"ab8044e0-82cb-11e9-8395-f18b28b35eef\", \r\n\t\t\"status\": \"SUCCESS\",\r\n\t\t\"brand\": \"async-mock-brand\",\r\n\t\t\"code\": \"5045075014999910707\",\r\n\t\t\"pin\": \"7547\",\r\n\t\t\"face_value\": {            \r\n\t\t\t\"amount\": 5,\r\n\t\t\t\"currency\": \"GBP\"\r\n\t\t},\r\n        \"cost_value\": {\r\n            \"amount\": 4.50,\r\n            \"currency\": \"GBP\"\r\n        },\r\n\t\t\"expiration_date\": \"2024-05-30T11:12:49+00:00\",\r\n\t\t\"barcode\": {\r\n\t\t\t\"type\": \"C128\",\r\n   \t\t\t\"string\": \"97801149999107077547\",\r\n   \t\t\t\"url\": \"https://revealyourgift.com/barcode?type=C128&code=5045075014999910707\"\r\n\t\t}\r\n\t}\r\n}"},{"id":"f3c3acb7-0366-42cc-8263-64763248a0ee","name":"Order still processing","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":{"raw":"{{URL}}/api/v2/digital/order-status?reference=ab8044e0-82cb-11e9-8395-f18b28b35eef","host":["{{URL}}"],"path":["api","v2","digital","order-status"],"query":[{"key":"reference","value":"ab8044e0-82cb-11e9-8395-f18b28b35eef"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Order is still processing\",\n    \"data\": {\n        \"reference\": \"ab8044e0-82cb-11e9-8395-f18b28b35eef\",\n        \"status\": \"PENDING\"\n    }\n}"}],"_postman_id":"8ac5ad4f-9dd3-4e66-adbc-db62336559b4"},{"name":"Check Digital Order Status by Original Client Request Id (async)","event":[{"listen":"prerequest","script":{"id":"f235f9a6-c240-4059-a70a-5e21eb42ca2d","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"bfdf3a38-6f90-4b6f-839b-ac998f88e269","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/digital/order-status?original_client_request_id={{CLIENT_REQUEST_ID}}","description":"<p>Retrieve gift code details for an existing asynchronous digital gift code order are available.</p>\n","urlObject":{"path":["api","v2","digital","order-status"],"host":["{{URL}}"],"query":[{"key":"original_client_request_id","value":"{{CLIENT_REQUEST_ID}}"}],"variable":[]}},"response":[{"id":"17a3f423-0906-477e-a7b3-d9f38fc72d74","name":"Order failed","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{URL}}/api/v2/digital/order-status?original_client_request_id={{CLIENT_REQUEST_ID}}","host":["{{URL}}"],"path":["api","v2","digital","order-status"],"query":[{"key":"original_client_request_id","value":"{{CLIENT_REQUEST_ID}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Order failed to process\",\n    \"data\": {\n        \"reference\": \"a6d59410-fbd3-11e9-bb77-7d1bec721460\",\n        \"status\": \"ERROR\"\n    }\n}"},{"id":"71f583fc-8e11-4b99-9c0c-679cc6148424","name":"Code available","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":{"raw":"{{URL}}/api/v2/digital/order-status?original_client_request_id={{CLIENT_REQUEST_ID}}","host":["{{URL}}"],"path":["api","v2","digital","order-status"],"query":[{"key":"original_client_request_id","value":"{{CLIENT_REQUEST_ID}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n\t\"code\": \"000\",\r\n\t\"status\": \"success\",\r\n\t\"message\": \"Order has finished processing\",\r\n\t\"data\": {\r\n\t\t\"reference\": \"ab8044e0-82cb-11e9-8395-f18b28b35eef\", \r\n\t\t\"status\": \"SUCCESS\",\r\n\t\t\"brand\": \"async-mock-brand\",\r\n\t\t\"code\": \"5045075014999910707\",\r\n\t\t\"pin\": \"7547\",\r\n\t\t\"face_value\": {            \r\n\t\t\t\"amount\": 5,\r\n\t\t\t\"currency\": \"GBP\"\r\n\t\t},\r\n        \"cost_value\": {\r\n            \"amount\": 4.50,\r\n            \"currency\": \"GBP\"\r\n        },\r\n\t\t\"expiration_date\": \"2024-05-30T11:12:49+00:00\",\r\n\t\t\"barcode\": {\r\n\t\t\t\"type\": \"C128\",\r\n   \t\t\t\"string\": \"97801149999107077547\",\r\n   \t\t\t\"url\": \"https://revealyourgift.com/barcode?type=C128&code=5045075014999910707\"\r\n\t\t}\r\n\t}\r\n}"},{"id":"d4dd12d0-7be3-41fb-a80f-8a4894ca5276","name":"Order still processing","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":{"raw":"{{URL}}/api/v2/digital/order-status?original_client_request_id={{CLIENT_REQUEST_ID}}","host":["{{URL}}"],"path":["api","v2","digital","order-status"],"query":[{"key":"original_client_request_id","value":"{{CLIENT_REQUEST_ID}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Order is still processing\",\n    \"data\": {\n        \"reference\": \"ab8044e0-82cb-11e9-8395-f18b28b35eef\",\n        \"status\": \"PENDING\"\n    }\n}"}],"_postman_id":"bfdf3a38-6f90-4b6f-839b-ac998f88e269"}],"id":"e8a84008-feba-4f46-aea1-a621b46bfc43","description":"<p>This section covers digital gift cards (also known as eGift, e-codes, e-vouchers etc.)</p>\n<p>Digital gift cards can be requested in the form of a raw Code/PIN, URL.</p>\n<p>The gift cards can be returned to the calling partner for distribution to the end client, or alternatively, Tillo can email to your customer on your behalf.</p>\n","event":[{"listen":"prerequest","script":{"id":"5b482eb8-e73b-4b0d-acc5-8c185a8caaca","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1c57938d-b1e8-493a-9830-024cdfc2f72e","type":"text/javascript","exec":[""]}}],"_postman_id":"e8a84008-feba-4f46-aea1-a621b46bfc43"},{"name":"Physical Gift Cards","item":[{"name":"Activate Physical Card","event":[{"listen":"prerequest","script":{"id":"8762131e-3fd2-4cb0-ad0e-fc6b9dcf40f5","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"8fbd8cff-7de9-493b-9eca-add4fbcd4894","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);"],"type":"text/javascript","packages":{}}}],"id":"38b2a2f5-3f0e-41ea-8dc1-ea11302b91db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\", \n  \"brand\": \"gb-pub\",\n  \"face_value\": {\n    \"amount\": 45.00,\n    \"currency\": \"GBP\"\n  },\n  \"code\": \"6280390102830976\",\n  \"pin\": \"12562161\",\n  \"sector\": \"marketplace\"\n}"},"url":"{{URL}}/api/v2/physical/activate","description":"<p>Load and Activate a physical gift card using the gift card number or serial number.</p>\n","urlObject":{"path":["api","v2","physical","activate"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"307e7e9b-3bd1-4efb-905d-17ece0fabcb8","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\", \n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"amount\": 129.5,\n  \t\"currency\": \"GBP\"\n  },\n  \"code\": \"ABC1234\",\n  \"pin\": \"\",\n  \"tags\": [\"Lloyds\", \"Premium\"],\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/physical/activate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card activated successfully\",\n    \"data\": {\n    \t\"brand\": \"halfords\",\n        \"code\": \"ABC1234\",\n        \"pin\": \"123\",\n        \"face_value\": {\n            \"amount\": 10.00,\n            \"currency\": \"GBP\"\n        },\n        \"expiration_date\": \"2020-11-13T09:11:21+00:00\",\n        \"reference\": \"Tillo unique reference\",\n        \"float_balance\": {\n            \"amount\": 20763.23,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"38b2a2f5-3f0e-41ea-8dc1-ea11302b91db"},{"name":"Cancel Activate Physical Card","event":[{"listen":"prerequest","script":{"id":"9e9bdf2e-dd1f-4f2f-9cdf-ae355c44a872","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"456945fa-8f65-448d-9c56-9107cf79d102","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"original_client_request_id\": \"{{ORIGINAL_CLIENT_REQUEST_ID}}\",\n  \"brand\": \"{{BRAND}}\",\n  \"face_value\": {\n  \t\"amount\": \"{{FACE_VALUE_AMOUNT}}\",\n    \"currency\": \"{{FACE_VALUE_CURRENCY}}\"\n  },\n  \"code\": \"{{CODE}}\",\n  \"pin\": \"{{PIN}}\",\n  \"sector\": \"voluntary-benefits\",\n  \"tags\": [\"premium\", \"lifetime\"]\n}"},"url":"{{URL}}/api/v2/physical/activate","description":"<p>Cancel an activated physical gift card using the gift card number or serial number.</p>\n","urlObject":{"path":["api","v2","physical","activate"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"6cbef364-5513-423e-9820-a7c405611531","name":"Successful Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\", \n  \"original_client_request_id\": \"5678\",\n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"amount\": 10.00,\n  \t\"currency\": \"GBP\"\n  },\n  \"code\": \"ABC1234\",\n  \"pin\": \"\",\n  \"tags\": [\"premium\", \"lifetime\"],\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/physical/activate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card activation cancelled successfully\",\n    \"data\": {\n        \"reference\": \"Tillo unique reference\",\n        \"float_balance\": {\n            \"amount\": 7566.63,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"456945fa-8f65-448d-9c56-9107cf79d102"},{"name":"Cash Out Original Transaction Physical Card","event":[{"listen":"prerequest","script":{"id":"9e9bdf2e-dd1f-4f2f-9cdf-ae355c44a872","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"a6e5f08c-277a-4d14-a1c9-4b54f67ac7ca","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"original_client_request_id\": \"{{ORIGINAL_CLIENT_REQUEST_ID}}\",\n  \"brand\": \"arcadia\",\n  \"code\": \"2000200171\",\n  \"pin\": \"7721\",\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/physical/cash-out-original-transaction","description":"<p>Cancel an activated physical gift card using the gift card number or serial number.</p>\n","urlObject":{"path":["api","v2","physical","cash-out-original-transaction"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"974b199f-76c4-4f91-9d0a-6942b50340bd","name":"Successful Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\", \n  \"original_client_request_id\": \"5678\",\n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"amount\": 10.00,\n  \t\"currency\": \"GBP\"\n  },\n  \"code\": \"ABC1234\",\n  \"pin\": \"\",\n  \"tags\": [\"premium\", \"lifetime\"],\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/physical/activate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card activation cancelled successfully\",\n    \"data\": {\n        \"reference\": \"Tillo unique reference\",\n        \"float_balance\": {\n            \"amount\": 7566.63,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"a6e5f08c-277a-4d14-a1c9-4b54f67ac7ca"},{"name":"Top-up Physical Card","event":[{"listen":"prerequest","script":{"id":"eebcf1b3-4f7e-480d-b30f-85b1804807c8","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"e9bdd652-b336-4df5-936e-a6bd38e092ba","exec":["var jsonData = JSON.parse(responseBody);","","var requestData = JSON.parse(request.data);","","","var code = jsonData.data.code;","var pin = jsonData.data.pin;","var brand = requestData.brand;","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","console.log(\"CODE: \" + code);","console.log(\"PIN: \" + pin);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"CODE\", code);","postman.setEnvironmentVariable(\"PIN\", pin);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);"],"type":"text/javascript","packages":{}}}],"id":"8bff6aeb-d3f0-4b47-98c5-f4a8d8e7ab34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\", \n  \"brand\": \"gb-pub\",\n  \"face_value\": {\n    \"amount\": 22.35,\n    \"currency\": \"GBP\"\n  },\n  \"code\": \"6280390102830976\",\n  \"pin\": \"12562161\",\n  \"sector\": \"marketplace\"\n}"},"url":"{{URL}}/api/v2/physical/top-up","description":"<p>Top up a physical gift card using the gift card number or serial number.</p>\n","urlObject":{"path":["api","v2","physical","top-up"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"c8c31b1b-c77c-4aaf-a952-0cfb6f4422f6","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\", \n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"amount\": 129.5,\n  \t\"currency\": \"GBP\"\n  },\n  \"code\": \"ABC1234\",\n  \"tags\": [\"premium\", \"lifetime\"],\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/physical/top-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card topped up successfully\",\n    \"data\": {\n        \"code\": \"ABC1234\",\n        \"pin\": \"\",\n        \"card_balance\": {\n            \"amount\": 129.5,\n            \"currency\": \"GBP\"\n        },\n        \"float_balance\": {\n          \"amount\": 20763.3,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"Reward Cloud unique reference\"\n    }\n}"}],"_postman_id":"8bff6aeb-d3f0-4b47-98c5-f4a8d8e7ab34"},{"name":"Cancel Top-up on a Physical Card","event":[{"listen":"prerequest","script":{"id":"7296da1d-dde7-4fa0-874c-848743270fe2","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"162f8f5c-73c2-4f27-9ecb-062f8c4d05b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"original_client_request_id\": \"{{ORIGINAL_CLIENT_REQUEST_ID}}\",\n  \"brand\": \"gb-pub\",\n  \"face_value\": {\n  \t\"amount\": 22.35,\n    \"currency\": \"GBP\"\n  },\n  \"code\": \"6280390102830976\",\n  \"pin\": \"12562161\",\n  \"sector\": \"marketplace\"\n}"},"url":"{{URL}}/api/v2/physical/top-up","description":"<p>Cancel a top-up on a physical gift card using the gift card number or serial number.</p>\n","urlObject":{"path":["api","v2","physical","top-up"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"4850e04a-182e-482f-a6b3-3ad0bababdce","name":"Successful Response","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"1234\", \n  \"original_client_request_id\": \"5678\", \n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"amount\": 10,\n  \t\"currency\": \"GBP\"\n  },\n  \"code\": \"ABC1234\",\n  \"pin\": \"\",\n  \"tags\": [\"Lloyds\", \"Premium\"],\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/physical/top-up"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card top up cancelled successfully\",\n    \"data\": {\n        \"reference\": \"aeb65050-e730-11e8-8bde-d3f3f9a97f84\",\n        \"float_balance\": {\n            \"amount\": 7566.63,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"162f8f5c-73c2-4f27-9ecb-062f8c4d05b9"},{"name":"Order Physical Card","event":[{"listen":"prerequest","script":{"id":"56c92afc-02d0-4c63-907b-26680460cc9f","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"d6d1e86c-d151-4a4f-b994-c8aef8bfd228","exec":["var requestData = JSON.parse(request.data);","var jsonData = JSON.parse(responseBody);","","var brand = requestData.brand;","var amount = requestData.face_value.amount;","var currency = requestData.face_value.currency;","","var order_reference = jsonData.data.reference;","","console.log(\"ORDER_REFERENCE: \" + order_reference);","console.log(\"BRAND: \" + brand);","console.log(\"AMOUNT: \" + amount);","console.log(\"CURRENCY: \" + currency);","","postman.setEnvironmentVariable(\"ORDER_REFERENCE\", order_reference);","postman.setEnvironmentVariable(\"BRAND\", brand);","postman.setEnvironmentVariable(\"FACE_VALUE_AMOUNT\", amount);","postman.setEnvironmentVariable(\"FACE_VALUE_CURRENCY\", currency);"],"type":"text/javascript","packages":{}}}],"id":"87350787-2c0f-4310-9b54-8dd34297822a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\":\"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":\"halfords\",\n   \"face_value\":{\n      \"amount\":20,\n      \"currency\":\"GBP\"\n   },\n   \"shipping_method\":\"standard\",\n   \"fulfilment_by\":\"rewardcloud\",\n   \"fulfilment_parameters\":{\n      \"to_name\":\"Receiver Name\",\n      \"company_name\":\"Tillo\",\n      \"address_1\":\"45 Church Road\",\n      \"address_2\":\"\",\n      \"address_3\":\"\",\n      \"address_4\":\"\",\n      \"city\":\"Hove\",\n      \"postal_code\":\"BN3 2BE\",\n      \"country\":\"United Kingdom\"\n   },\n   \"personalisation\":{\n      \"message\":\"Here is your requested gift card\"\n   },\n   \"sector\":\"voluntary-benefits\",\n   \"tags\": [\"one\", \"two\"]\n}"},"url":"{{URL}}/api/v2/physical/order-card","description":"<p>Order a physical gift card</p>\n","urlObject":{"path":["api","v2","physical","order-card"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"48ce8b4d-e37a-476b-822c-e78933c88963","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n   \"client_request_id\":\"{{CLIENT_REQUEST_ID}}\",\n   \"brand\":\"halfords\",\n   \"face_value\":{\n      \"amount\":10,\n      \"currency\":\"GBP\"\n   },\n   \"shipping_method\":\"standard\",\n   \"fulfilment_by\":\"rewardcloud\",\n   \"fulfilment_parameters\":{\n      \"to_name\":\"Receiver Name\",\n      \"company_name\":\"Reward Cloud\",\n      \"address_1\":\"45 Church Road\",\n      \"address_2\":\"\",\n      \"address_3\":\"\",\n      \"address_4\":\"\",\n      \"city\":\"Hove\",\n      \"postal_code\":\"BN3 2BE\",\n      \"country\":\"United Kingdom\"\n   },\n   \"personalisation\":{\n      \"message\":\"Here is your requested gift card\"\n   },\n   \"sector\":\"voluntary-benefits\",\n   \"tags\": [\"one\", \"two\"]\n}"},"url":"{{URL}}/api/v2/physical/order-card"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Card ordered successfully\",\n    \"data\": {\n        \"brand\": \"halfords\",\n        \"face_value\": {\n            \"amount\": 10,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"Tillo unique reference\",\n        \"float_balance\": {\n            \"amount\": 7557.63,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"87350787-2c0f-4310-9b54-8dd34297822a"},{"name":"Physical Card Order Status","event":[{"listen":"prerequest","script":{"id":"56c92afc-02d0-4c63-907b-26680460cc9f","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"d6d1e86c-d151-4a4f-b994-c8aef8bfd228","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f0a3b07f-5867-431f-a6f3-e8ed2cd7e50b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n\t\"references\": [\n\t\t\"this-does-not-exist\",\n\t\t\"ab337240-e731-11e8-b7dc-8d2baaa618cb\"\n\t]\n}"},"url":"{{URL}}/api/v2/physical/order-status","description":"<p>Check the status of a physical gift card order</p>\n","urlObject":{"path":["api","v2","physical","order-status"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"101e42a4-2aa4-41fa-92a7-af5642391c46","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n\t\"references\": [\n\t\t\"this-does-not-exist\",\n\t\t\"ab337240-e731-11e8-b7dc-8d2baaa618cb\"\n\t]\n}"},"url":"{{URL}}/api/v2/physical/order-status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Order statuses\",\n    \"data\": {\n        \"this-does-not-exist\": {\n            \"reference\": \"this-does-not-exist\",\n            \"status\": \"not found\"\n        },\n        \"ab337240-e731-11e8-b7dc-8d2baaa618cb\": {\n            \"reference\": \"ab337240-e731-11e8-b7dc-8d2baaa618cb\",\n            \"status\": \"processing\"\n        }\n    }\n}"}],"_postman_id":"f0a3b07f-5867-431f-a6f3-e8ed2cd7e50b"},{"name":"Fulfil Physical Card Order","event":[{"listen":"prerequest","script":{"id":"56c92afc-02d0-4c63-907b-26680460cc9f","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"5e592b92-b845-479e-a7df-bbaef8978f66","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{FULFILMENT_API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n    \"brand\": \"{{BRAND}}\",\n    \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n    \"code\": \"5045075881749921691\",\n    \"face_value\": {\n        \"amount\": \"{{FACE_VALUE_AMOUNT}}\",\n        \"currency\": \"{{FACE_VALUE_CURRENCY}}\"\n    },\n    \"reference\": \"a9cc4820-de83-11e8-a2fb-5dd310db76de\"\n}"},"url":"{{URL}}/api/v2/physical/fulfil-order","description":"<p>Fulfilment houses can fulfil a physical gift card order</p>\n","urlObject":{"path":["api","v2","physical","fulfil-order"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"a7fad6c8-c669-4be0-9dea-07ed0922fb2c","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"body":{"mode":"raw","raw":"{\n    \"brand\": \"halfords\",\n    \"client_request_id\": \"1234\",\n    \"code\": \"5045075881749921782\",\n    \"face_value\": {\n        \"amount\": \"10.00\",\n        \"currency\": \"GBP\"\n    },\n    \"reference\": \"a821b5f0-e733-11e8-b507-33714bdee050\"\n}"},"url":"{{URL}}/api/v2/physical/fulfil-order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card ordered successfully\",\n    \"data\": {\n        \"brand\": \"halfords\",\n        \"face_value\": {\n            \"amount\": 10,\n            \"currency\": \"GBP\"\n        },\n        \"reference\": \"Tillo unique reference\",\n        \"float_balance\": {\n            \"amount\": 304429.29,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"5e592b92-b845-479e-a7df-bbaef8978f66"},{"name":"Balance Check Physical","event":[{"listen":"prerequest","script":{"id":"524f7e75-dad4-409d-8e67-129103666334","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"5e1f7ccf-ba06-487f-85b2-22b74a8d00ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"{{CLIENT_REQUEST_ID}}\",\n  \"brand\": \"primark\",\n  \"face_value\": {\n    \"currency\": \"GBP\"\n  },\n  \"code\": \"5045075713999902065\",\n  \"pin\": \"0989\",\n  \"sector\": \"marketplace\"\n}"},"url":"{{URL}}/api/v2/physical/check-balance","description":"<p>Check the balance of a physical gift card</p>\n","urlObject":{"path":["api","v2","physical","check-balance"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"2f43efe6-dbe0-4790-815e-d048c5a03e6b","name":"Successful Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"YOUR_API_KEY","type":"text"},{"key":"Signature","value":"REQUEST_SIGNATURE","type":"text"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"client_request_id\": \"5678\",\n  \"brand\": \"pizza-hut\",\n  \"face_value\": {\n  \t\"currency\": \"GBP\"\n  },\n  \"code\": \"1234567890123456\",\n  \"pin\": \"1234\",\n  \"sector\": \"voluntary-benefits\"\n}"},"url":"{{URL}}/api/v2/physical/check-balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","name":"Content-Type"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Card balance retrieved successfully\",\n    \"data\": {\n        \"face_value\": {\n            \"amount\": 10,\n            \"currency\": \"GBP\"\n        }\n    }\n}"}],"_postman_id":"5e1f7ccf-ba06-487f-85b2-22b74a8d00ac"}],"id":"babb049a-1b28-41c1-abd5-f74f1cff0e00","event":[{"listen":"prerequest","script":{"id":"ccaa64b7-5c27-46d7-831c-46d5718d0fd7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"63250b1b-7b24-4c55-a8f7-5a3ad5b32851","type":"text/javascript","exec":[""]}}],"_postman_id":"babb049a-1b28-41c1-abd5-f74f1cff0e00","description":""},{"name":"Brand Information","item":[{"name":"List Brands","event":[{"listen":"prerequest","script":{"id":"3feb311e-ee01-432a-ac42-67ff6372616e","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"0641cfea-19cb-40ae-bd98-a0881a840f50","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/brands?detail=true&currency=GBP&country=GB&brand=nike&category=fashion","description":"<p>Provides a list of brands and basic information about them. \nIt is expected that this call will be cached locally by the caller. We recommend fetching the data once per day.</p>\n","urlObject":{"path":["api","v2","brands"],"host":["{{URL}}"],"query":[{"key":"detail","value":"true"},{"key":"currency","value":"GBP"},{"key":"country","value":"GB"},{"key":"brand","value":"nike"},{"key":"category","value":"fashion"}],"variable":[]}},"response":[{"id":"8edec6aa-2245-47fc-badf-646933f450a1","name":"Brand with Detail","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"url":{"raw":"{{URL}}/api/v2/brands?brand=amazon&detail=true","host":["{{URL}}"],"path":["api","v2","brands"],"query":[{"key":"brand","value":"amazon","description":"Option, limit results to one brand"},{"key":"detail","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Human-readable message\",\n    \"data\": {\n    \t\"brands\": {\n\t        \"amazon\": {\n\t            \"slug\": \"amazon\",\n\t            \"name\": \"Amazon UK\",\n\t            \"status\": {\n\t                \"code\": \"ENABLED\"\n\t            },\n\t            \"currency\": \"GBP\",\n\t            \"discount\": 3,\n\t            \"last_updated\": \"2018-10-01T19:53:27+00:00\",\n\t            \"transaction_types\": [\n\t                \"cancelled_digital_issuance\",\n\t                \"digital_issuance\"\n\t            ],\n\t            \"delivery_methods\": [\n\t                \"code\",\n\t                \"url\",\n\t                \"wrapped\"\n\t            ],\n\t            \"gc_pool\": false,\n\t            \"digital_face_value_limits\": {\n\t                \"lower\": 10,\n\t                \"upper\": 2000,\n                    \"minor_unit\": 0.01\n\t            },\n                \"categories\": [\n                    \"food-and-drink\",\n                    \"fashion\",\n                    \"electronics\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 8.00\n                },\n\t            \"shipping_methods\": [\n                    {\n                        \"standard\": {\n                            \"identifier\": \"standard\",\n                            \"description\": \"First Class\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 1.3\n                            }\n                        }\n                    },\n                    {\n                        \"standard-signed\": {\n                            \"identifier\": \"standard-signed\",\n                            \"description\": \"First Class Signed For\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 2.42\n                            }\n                        }\n                    },\n                    {\n                        \"standard-tracked\": {\n                            \"identifier\": \"standard-tracked\",\n                            \"description\": \"First Class Tracked\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 7.15\n                            }\n                        }\n                    },\n                    {\n                        \"second-class\": {\n                            \"identifier\": \"second-class\",\n                            \"description\": \"Second Class\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 1.23\n                            }\n                        }\n                    },\n                    {\n                        \"second-class-signed\": {\n                            \"identifier\": \"second-class-signed\",\n                            \"description\": \"Second Class Signed For\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 2.33\n                            }\n                        }\n                    }\n                ],\n\t            \"detail\": {\n\t                \"assets\": {\n\t                    \"logo_url\": \"https://example.com\",\n\t                    \"gift_card_url\": \"https://example.com\"\n\t                },\n\t                \"balance_enquiry_url\": \"https://example.com\",\n\t                \"barcode\": \"NONE\",\n\t                \"description\": \"Brand description\",\n                    \"expiry\": \"Ten years from the date of issuance\",\n\t                \"faq_url\": \"https://example.com\",\n\t                \"redemption_instructions_url\": \"https://example.com\",\n\t                \"redemption_methods\": [\n\t                \t\"Instore\",\n\t                \t\"Online\",\n\t                \t\"Phone\"\n\t                ],\n\t                \"terms_and_conditions_url\": \"https://example.com\",\n\t                \"website_url\": \"https://example.com\"\n\t            }\n\t        }\n    \t},\n    \t\"last_refreshed_at\": \"2018-10-12T16:22:23+00:00\"\n    }\n}"},{"id":"fda2686b-a5fb-443f-8837-6181afdaeeb6","name":"List all Brands with Detail","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"YOUR_API_KEY","type":"text"},{"key":"Signature","value":"REQUEST_SIGNATURE","type":"text"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP","type":"text"}],"url":{"raw":"{{URL}}/api/v2/brands?detail=true","host":["{{URL}}"],"path":["api","v2","brands"],"query":[{"key":"detail","value":"true"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Human-readable message\",\n    \"data\": {\n        \"brands\": {\n            \"amazon\": {\n                \"slug\": \"amazon\",\n                \"name\": \"Amazon UK\",\n                \"status\": {\n                    \"code\": \"ENABLED\"\n                },\n                \"currency\": \"GBP\",\n                \"discount\": 3,\n                \"last_updated\": \"2018-10-01T19:53:27+00:00\",\n                \"transaction_types\": [\n                    \"cancelled_digital_issuance\",\n                    \"digital_issuance\"\n                ],\n                \"delivery_methods\": [\n                    \"code\",\n                    \"url\",\n                    \"wrapped\"\n                ],\n                \"gc_pool\": false,\n                \"digital_face_value_limits\": {\n                    \"lower\": 10,\n                    \"upper\": 2000,\n                    \"minor_unit\": 0.01\n                },\n                \"categories\": [\n                    \"food-and-drink\",\n                    \"fashion\",\n                    \"electronics\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 8\n                },\n                \"detail\": {\n                    \"assets\": {\n                        \"logo_url\": \"https://example.com\",\n                        \"gift_card_url\": \"https://example.com\"\n                    },\n                    \"balance_enquiry_url\": \"https://example.com\",\n                    \"barcode\": \"NONE\",\n                    \"description\": \"Brand description\",\n                    \"expiry\": \"Ten years from the date of issuance\",\n                    \"faq_url\": \"https://example.com\",\n                    \"redemption_instructions_url\": \"https://example.com\",\n                    \"redemption_methods\": [\n                        \"Online\"\n                    ],\n                    \"terms_and_conditions_url\": \"https://example.com\",\n                    \"website_url\": \"https://example.com\"\n                }\n            },\n            \"asos\": {\n                \"slug\": \"asos\",\n                \"name\": \"ASOS\",\n                \"status\": {\n                    \"code\": \"ENABLED\"\n                },\n                \"currency\": \"GBP\",\n                \"discount\": 6,\n                \"last_updated\": \"2018-09-18T17:01:32+00:00\",\n                \"transaction_types\": [\n                    \"cancelled_digital_issuance\",\n                    \"digital_issuance\"\n                ],\n                \"delivery_methods\": [\n                    \"code\",\n                    \"url\",\n                    \"wrapped\"\n                ],\n                \"gc_pool\": true,\n                \"denominations\": [\n                    10,\n                    20,\n                    25,\n                    50,\n                    100\n                ],\n                \"category_slugs\": [\n                    \"fashion\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 0\n                },\n                \"detail\": {\n                    \"assets\": {\n                        \"logo_url\": \"https://example.com\",\n                        \"gift_card_url\": \"https://example.com\"\n                    },\n                    \"balance_enquiry_url\": \"https://example.com\",\n                    \"barcode\": \"C128\",\n                    \"description\": \"Brand description\",\n                    \"expiry\": \"24 months from date of activation\",\n                    \"faq_url\": \"https://example.com\",\n                    \"redemption_instructions_url\": \"https://example.com\",\n                    \"redemption_methods\": [\n                        \"Online\"\n                    ],\n                    \"terms_and_conditions_url\": \"https://example.com\",\n                    \"website_url\": \"https://example.com\"\n                }\n            },\n            \"debenhams\": {\n                \"slug\": \"debenhams\",\n                \"name\": \"Debenhams UK\",\n                \"status\": {\n                    \"code\": \"DISABLED\",\n                    \"reason\": \"Relationship disabled by brand\"\n                },\n                \"currency\": \"GBP\",\n                \"discount\": 2,\n                \"last_updated\": \"2018-07-12T12:38:24+00:00\",\n                \"transaction_types\": [\n                    \"cancelled_digital_issuance\",\n                    \"cancelled_physical_activation\",\n                    \"cancelled_physical_top_up\",\n                    \"digital_issuance\",\n                    \"physical_activation\",\n                    \"physical_top_up\"\n                ],\n                \"delivery_methods\": [\n                    \"code\"\n                ],\n                \"gc_pool\": false,\n                \"digital_face_value_limits\": {\n                    \"lower\": 0.01,\n                    \"upper\": 5000,\n                    \"minor_unit\": 0.01\n                },\n                \"physical_face_value_limits\": {\n                    \"lower\": 0.01,\n                    \"upper\": 5000\n                },\n                \"categories\": [\n                    \"department-store\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 0\n                },\n                \"shipping_methods\": [\n                    {\n                        \"standard\": {\n                            \"identifier\": \"standard\",\n                            \"description\": \"First Class\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 1.3\n                            }\n                        }\n                    },\n                    {\n                        \"standard-signed\": {\n                            \"identifier\": \"standard-signed\",\n                            \"description\": \"First Class Signed For\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 2.42\n                            }\n                        }\n                    },\n                    {\n                        \"standard-tracked\": {\n                            \"identifier\": \"standard-tracked\",\n                            \"description\": \"First Class Tracked\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 7.15\n                            }\n                        }\n                    },\n                    {\n                        \"second-class\": {\n                            \"identifier\": \"second-class\",\n                            \"description\": \"Second Class\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 1.23\n                            }\n                        }\n                    },\n                    {\n                        \"second-class-signed\": {\n                            \"identifier\": \"second-class-signed\",\n                            \"description\": \"Second Class Signed For\",\n                            \"cost\": {\n                                \"currency\": \"GBP\",\n                                \"amount\": 2.33\n                            }\n                        }\n                    }\n                ],\n                \"detail\": {\n                    \"assets\": {\n                        \"logo_url\": \"https://example.com\",\n                        \"gift_card_url\": \"https://example.com\"\n                    },\n                    \"barcode\": \"C128\",\n                    \"description\": \"Debenhams is one of the UKs favourite department stores, offering a wide range of clothing, beauty products, accessories, and more! You know you're getting quality when you shop at Debenhams. With an exciting portfolio of high end brands and household names, there's plenty of products to save money on with a Debenhams gift card. Since being founded in the 18th century as a single store in London, they've grown to have nearly 200 locations across the UK.\",\n                    \"expiry\": \"24 consecutive months of non use\",\n                    \"redemption_methods\": [\n                        \"Instore\"\n                    ],\n                    \"website_url\": \"https://example.com\"\n                }\n            },\n            \"xbox-live-gold\": {\n                \"slug\": \"xbox-live-gold\",\n                \"name\": \"Xbox Live Gold\",\n                \"type\": \"gift-card\",\n                \"status\": {\n                    \"code\": \"ENABLED\"\n                },\n                \"currency\": \"GBP\",\n                \"discount\": 0,\n                \"last_updated\": \"2019-04-25T04:01:39+00:00\",\n                \"transaction_types\": [\n                    \"digital_issuance\"\n                ],\n                \"delivery_methods\": [\n                    \"code\",\n                    \"url\"\n                ],\n                \"countries_served\": [\n                    \"GB\"\n                ],\n                \"gc_pool\": false,\n                \"async_only\": false,\n                \"categories\": [\n                    \"gaming\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"SPV\",\n                    \"rate\": 20\n                },\n                \"denominations\": [\n                    \"17.99\",\n                    \"49.99\"\n                ],\n                \"digital_denominations\": [\n                    17.99,\n                    49.99\n                ],\n                \"detail\": {\n                    \"assets\": {\n                        \"logo_url\": \"https://assets.tillo.io/images/brands/logos/180x180/xbox-live-gold.jpg\",\n                        \"gift_card_url\": \"https://assets.tillo.io/images/brands/vouchers/330x214/xbox-live-gold.jpg\"\n                    },\n                    \"barcode\": \"NONE\",\n                    \"description\": \"Gaming is better with Xbox Live Gold. Join the best community of gamers on the most advanced multiplayer network, where dedicated servers maximise performance, speed, and reliability. Experience the best in competitive and cooperative gaming across Xbox One and Windows 10, with better matchmaking and less waiting. You also get free games every month with your Xbox Live Gold membership, worth up to £480, and save up to 50-75% in the Xbox Store. With millions of gamers worldwide, and so many games to play, now's a great time to go Gold.\",\n                    \"expiry\": \"Non-promotional balances don't expire. Any promotional balance in your account is subject to expiration as set forth in the terms of the promotion.\",\n                    \"redemption_instructions_url\": \"https://support.xbox.com/en-US/billing/prepaid-codes/redeem-prepaid-codes\",\n                    \"redemption_methods\": [\n                        \"Online\"\n                    ],\n                    \"terms_and_conditions_copy\": \"Free Games Offer: For paid Gold members only. Includes games for Xbox One and Xbox 360, with up to £240 value on Xbox One and up to £240 value on Xbox 360. On Xbox One, active Gold membership required to play free games you've redeemed. Restrictions Apply. Savings based on retail value of game. Requirements and available features vary across consoles; Multiplayer between Xbox One and Xbox 360 supported for select titles. Download required. http://www.Xbox.com/backcompat. Limited number of games available in 2018 support cross-device play; additional games to follow.Once the download starts, we can't refund or accept a return unless it's faulty. In which case, your legal rights are protected.\"\n                }\n            }\n        },\n        \"last_refreshed_at\": \"2018-10-12T16:22:23+00:00\"\n    }\n}"},{"id":"49020e2d-e796-4b7c-a0eb-a5be6f15073a","name":"List all Brands without Detail","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"YOUR_API_KEY"},{"key":"Signature","value":"REQUEST_SIGNATURE"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP"}],"url":"{{URL}}/api/v2/brands"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"code\": \"000\",\n    \"message\": \"Human-readable message\",\n    \"data\": {\n    \t\"brands\": {\n\t        \"amazon\": {\n\t            \"slug\": \"amazon\",\n\t            \"name\": \"Amazon UK\",\n\t            \"status\": {\n\t            \t\"code\": \"ENABLED\"\n\t            },\n\t            \"currency\": \"GBP\",\n\t            \"discount\": 3,\n\t            \"last_updated\": \"2018-10-01T19:53:27+00:00\",\n\t            \"transaction_types\": [\n\t                \"cancelled_digital_issuance\",\n\t                \"digital_issuance\"\n\t            ],\n\t            \"delivery_methods\": [\n\t                \"code\",\n\t                \"url\",\n\t                \"wrapped\"\n\t            ],\n\t            \"gc_pool\": false,\n\t            \"digital_face_value_limits\": {\n\t                \"lower\": 10,\n\t                \"upper\": 2000,\n                    \"minor_unit\": 0.01\n\t            },\n                \"categories\": [\n                    \"food-and-drink\",\n                    \"fashion\",\n                    \"electronics\"\n                ],\n                 \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 8.00\n                }\n\t        },\n\t        \"asos\": {\n\t            \"slug\": \"asos\",\n\t            \"name\": \"ASOS\",\n\t            \"status\": {\n\t            \t\"code\": \"ENABLED\"\n\t            },\n\t            \"currency\": \"GBP\",\n\t            \"discount\": 6,\n\t            \"last_updated\": \"2018-07-27T12:02:04+00:01\",\n\t            \"transaction_types\": [\n\t                \"cancelled_digital_issuance\",\n\t                \"digital_issuance\"\n\t            ],\n\t            \"delivery_methods\": [\n\t                \"code\",\n\t                \"url\",\n\t                \"wrapped\"\n\t            ],\n\t            \"gc_pool\": true,\n\t            \"denominations\": [\n\t                10,\n\t                20,\n\t                25,\n\t                50,\n\t                100\n\t            ],\n                \"categories\": [\n                    \"fashion\"\n                ], \n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 8.00\n                }\n\t        },\n\t        \"debenhams\": {\n\t            \"slug\": \"debenhams\",\n\t            \"name\": \"Debenhams UK\",\n\t            \"status\": {\n\t                \"code\": \"DISABLED\",\n\t                \"reason\": \"Relationship disabled by brand\"\n\t            },\n\t            \"currency\": \"GBP\",\n\t            \"discount\": 2,\n\t            \"last_updated\": \"2018-07-13T16:22:09+00:00\",\n\t            \"transaction_types\": [\n\t                \"cancelled_digital_issuance\",\n\t                \"cancelled_physical_activation\",\n\t                \"cancelled_physical_top_up\",\n\t                \"digital_issuance\",\n\t                \"physical_activation\",\n\t                \"physical_top_up\"\n\t            ],\n\t            \"delivery_methods\": [\n\t                \"code\"\n\t            ],\n\t            \"gc_pool\": false,\n\t            \"digital_face_value_limits\": {\n\t                \"lower\": 0.01,\n\t                \"upper\": 5000,\n                    \"minor_unit\": 0.01\n\t            },\n\t            \"physical_face_value_limits\": {\n\t                \"lower\": 0.01,\n\t                \"upper\": 5000\n\t            },\n                \"categories\": [\n                    \"department-store\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 8.00\n                }\n\t        }\n    \t},\n    \t\"last_refreshed_at\": \"2018-10-12T16:22:23+00:00\"\n    }\n}"},{"id":"5e6c5e1d-9712-47ce-a796-667ee8fa37bf","name":"List Brands filtered by category","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":{"raw":"{{URL}}/api/v2/brands?country=GB&category=fashion","host":["{{URL}}"],"path":["api","v2","brands"],"query":[{"key":"detail","value":"true","disabled":true},{"key":"country","value":"{country ISO2}","disabled":true},{"key":"currency","value":"{currency ISO3}","disabled":true},{"key":"detail","value":"true","disabled":true},{"key":"country","value":"GB"},{"key":"brand","value":"nike","disabled":true},{"key":"category","value":"fashion"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 12 Nov 2020 22:38:18 GMT"},{"key":"Server","value":"Apache/2.4.46 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IjlXb3pJU3ZyNGJwdWZPN01SWE80UFE9PSIsInZhbHVlIjoiQnJEaE9CVWRMMUlFV2ZjQTRhd0JUb1pCV0c4dVwvd1wvZTR0XC9mRkNOeDE0TkhVUStwN0VFdmFYYVFmZjlOTUcxTWlXalpkQUY2VVRkMk5RMkdpMXJwMWNMc1FYOTR5eXVhRzhFaUhhTmJPdWdYeElDT3ltS3RsXC92YmtiRW9JbFJBIiwibWFjIjoiNmMyYjU5ZWQzNGU3YzZiNzg2MzY2ODBhNGRkYzViYzQ3MGJkNTBhMTEyNWU4NTk1MGZjODYyOGRkOThkMDMyYSJ9; expires=Fri, 13-Nov-2020 00:38:19 GMT; Max-Age=7200; path=/; secure"},{"key":"Set-Cookie","value":"tillo_session=eyJpdiI6IkQ3ZDR3dWVscHd1OVVNZTFYajkrSGc9PSIsInZhbHVlIjoialFiQlhSYjBndzdKS09cLzdjZkFpSGNqRzNuUTFZMkR6T09Rb2hKTlZMMUFYaUF0eTRVS2FqalV4cVFUTm5JZlRXcVZSZUJoNlp3bFdSUjgrd1wvdzhCcU1xYjNwQUcrOHNacUlQeTM0aThoSHFTeTM0TXhoclBYVHJjQXNPR2ZKSyIsIm1hYyI6Ijk1YmFiNDg1NDlmMTE0YWEwZjA3Yjg0YTQ0NTRmNGQzYjVjNWRhNmJiZTJjMzBiM2YxYTMzZGE4YzViZmFlMjYifQ%3D%3D; path=/; secure; httponly"},{"key":"Content-Length","value":"1501"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Brands information, filtered by category [fashion]\",\n    \"data\": {\n        \"brands\": {\n            \t        \"amazon\": {\n\t            \"slug\": \"amazon\",\n\t            \"name\": \"Amazon UK\",\n\t            \"status\": {\n\t            \t\"code\": \"ENABLED\"\n\t            },\n\t            \"currency\": \"GBP\",\n\t            \"discount\": 3,\n\t            \"last_updated\": \"2018-10-01T19:53:27+00:00\",\n\t            \"transaction_types\": [\n\t                \"cancelled_digital_issuance\",\n\t                \"digital_issuance\"\n\t            ],\n\t            \"delivery_methods\": [\n\t                \"code\",\n\t                \"url\"\n\t            ],\n\t            \"gc_pool\": false,\n\t            \"digital_face_value_limits\": {\n\t                \"lower\": 10,\n\t                \"upper\": 2000,\n                    \"minor_unit\": 0.01\n\t            },\n                \"categories\": [\n                    \"food-and-drink\",\n                    \"fashion\",\n                    \"electronics\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": \"0.00\"\n                }\n\t        },\n\t        \"asos\": {\n\t            \"slug\": \"asos\",\n\t            \"name\": \"ASOS\",\n\t            \"status\": {\n\t            \t\"code\": \"ENABLED\"\n\t            },\n\t            \"currency\": \"GBP\",\n\t            \"discount\": 6,\n\t            \"last_updated\": \"2018-07-27T12:02:04+00:00\",\n\t            \"transaction_types\": [\n\t                \"cancelled_digital_issuance\",\n\t                \"digital_issuance\"\n\t            ],\n\t            \"delivery_methods\": [\n\t                \"code\",\n\t                \"url\",\n\t                \"wrapped\"\n\t            ],\n\t            \"gc_pool\": true,\n\t            \"denominations\": [\n\t                10,\n\t                20,\n\t                25,\n\t                50,\n\t                100\n\t            ],\n                \"categories\": [\n                    \"fashion\"\n                ],\n                \"vat\": {\n                    \"exempt\": false,\n                    \"type\": \"MPV\",\n                    \"rate\": 8.00\n                }\n\t        }\n        },\n        \"last_refreshed_at\": \"2020-11-12T22:38:19+00:00\"\n    }\n}"}],"_postman_id":"0641cfea-19cb-40ae-bd98-a0881a840f50"}],"id":"9baf8fab-8994-41f2-8854-daba01f2b131","description":"<p>These calls are provided to allow your system to retrieve information about the brands you have set up on your account. They can be integrated in to your system to reduce the need to visit our hubs on a regular basis, and automatically update brand information in your own platform.</p>\n","event":[{"listen":"prerequest","script":{"id":"31f5a561-eff9-49e2-a1e1-bd2dce180d91","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ec2f40ad-42d0-4d68-a687-daf85e3fa6de","type":"text/javascript","exec":[""]}}],"_postman_id":"9baf8fab-8994-41f2-8854-daba01f2b131"},{"name":"Brand templates","item":[{"name":"List Templates","event":[{"listen":"prerequest","script":{"id":"14b6b636-ff3e-4f4b-a175-7345520aaa30","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"e8de4f50-cdb7-49dd-83ec-6e06329f43d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/templates?brand=adidas","description":"<p>Fetch a list of templates, variations and current versions</p>\n<p>Tillo are using a date to version the template but this could contain any string. If the version string differs from the version string you have, request the latest version.</p>\n","urlObject":{"path":["api","v2","templates"],"host":["{{URL}}"],"query":[{"key":"brand","value":"adidas"}],"variable":[]}},"response":[{"id":"0d03953b-92e6-4401-a6aa-4c8ab9b9cf9c","name":"Templates","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/api/v2/templates?brand={brand}&template={template_name}","host":["{{URL}}"],"path":["api","v2","templates"],"query":[{"key":"brand","value":"{brand}","description":"Optional to get the current templates for a specific brand"},{"key":"template","value":"{template_name}","description":"Optional to get a specific template for a brand (brand param required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Human-readable message\",\n    \"data\": {\n    \t\"templates\": {\n\t\t    \"amazon\": {\n\t\t      \"standard\":\"v2\"\n\t\t    },\n\t\t    \"debenhams\": {\n\t\t      \"standard\": \"v2\",\n\t\t      \"summer\": \"v1\",\n\t\t      \"easter\": \"v3\"\n\t\t    }\n\t    },\n        \"last_refreshed_at\": \"2018-11-26T09:11:17+00:00\"\n    }\n}"},{"id":"7c5d6a27-2a19-4ce5-a615-1fa9e5ee37f9","name":"List Templates for non-existent brand","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Accept","value":"application/json","disabled":false},{"key":"API-Key","value":"{{API_KEY}}","disabled":false},{"key":"Signature","value":"{{SIGNATURE}}","disabled":false},{"key":"Timestamp","value":"{{TIMESTAMP}}","disabled":false}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{URL}}/api/v2/templates?brand=marks-n-spencer","host":["{{URL}}"],"path":["api","v2","templates"],"query":[{"key":"brand","value":"marks-n-spencer"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"Keep-Alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json","description":"The mime type of this content"},{"key":"Date","value":"Fri, 24 Aug 2018 13:38:58 GMT","description":"The date and time that the message was sent"},{"key":"Keep-Alive","value":"timeout=5, max=100","description":"Custom header"},{"key":"Server","value":"Apache/2.4.33 (Ubuntu)","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"local.reward.cloud","path":"/","secure":true,"value":"eyJpdiI6IlNycm56YlpjcUNveHVxS3BYaG16Qnc9PSIsInZhbHVlIjoiREdsVmVRODdwNFwvVm1BaXVzZm55SWVGbXFFd1g1NXl2eERDcHV1NjJ1dXBpRnc3THIrU2ZcLys4RmVLOXErenlOSHdPb3dCRVpSRzF0UlFTc0hXTDlVdz09IiwibWFjIjoiNDY1NDIzNmM4YjQwN2UwMzk3ZGQwMmJiMWIzMTdjMmJjZTQ1YTY0ODA4ZjIxNjZmMjk1ZDQ0ZGU1YjZmMzZmZiJ9","key":"giftcart_session"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"app.local.reward.cloud","path":"/","secure":true,"value":"eyJpdiI6IkkreVlOazZ0ZkN5UW13d3p6MUpFSHc9PSIsInZhbHVlIjoiVktpVUE0dzVLdVJzT2c1ZUFKZ0pqMW5IZzNGZjJGN3llbUtzUlBuQjh6bElRMlpYWTVLVVZ6a0s5UFNBR2NHWWFMUnROM0FRRmpFVXpyc1c4cnYrWFE9PSIsIm1hYyI6IjM3ZjY2NjNlNmFlNDEzYzIwNDYwNTY3ZWFhOWFlNjc1YjI0OTQ1MDk3NDdjYjQwZDQ0MDJjZDhiNmI3YTZjYmMifQ%3D%3D","key":"giftcart_session"}],"responseTime":null,"body":"{\"status\":\"error\",\"code\":\"433\",\"message\":\"There were errors validating the request\",\"data\":{\"brand\":[\"The requested brand is not available\"]}}"},{"id":"9c929642-1c5c-4640-873c-9606676104c1","name":"List Templates for a brand without having access to the HTML e-mail template","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{URL}}/api/v2/templates?brand=amazon-de","host":["{{URL}}"],"path":["api","v2","templates"],"query":[{"key":"brand","value":"amazon-de"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"Keep-Alive","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json","description":"The mime type of this content"},{"key":"Date","value":"Fri, 24 Aug 2018 13:33:53 GMT","description":"The date and time that the message was sent"},{"key":"Keep-Alive","value":"timeout=5, max=100","description":"Custom header"},{"key":"Server","value":"Apache/2.4.33 (Ubuntu)","description":"A name for the server"},{"key":"Transfer-Encoding","value":"chunked","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."}],"cookie":[{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"local.reward.cloud","path":"/","secure":true,"value":"eyJpdiI6IlNycm56YlpjcUNveHVxS3BYaG16Qnc9PSIsInZhbHVlIjoiREdsVmVRODdwNFwvVm1BaXVzZm55SWVGbXFFd1g1NXl2eERDcHV1NjJ1dXBpRnc3THIrU2ZcLys4RmVLOXErenlOSHdPb3dCRVpSRzF0UlFTc0hXTDlVdz09IiwibWFjIjoiNDY1NDIzNmM4YjQwN2UwMzk3ZGQwMmJiMWIzMTdjMmJjZTQ1YTY0ODA4ZjIxNjZmMjk1ZDQ0ZGU1YjZmMzZmZiJ9","key":"giftcart_session"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"app.local.reward.cloud","path":"/","secure":true,"value":"eyJpdiI6IkkreVlOazZ0ZkN5UW13d3p6MUpFSHc9PSIsInZhbHVlIjoiVktpVUE0dzVLdVJzT2c1ZUFKZ0pqMW5IZzNGZjJGN3llbUtzUlBuQjh6bElRMlpYWTVLVVZ6a0s5UFNBR2NHWWFMUnROM0FRRmpFVXpyc1c4cnYrWFE9PSIsIm1hYyI6IjM3ZjY2NjNlNmFlNDEzYzIwNDYwNTY3ZWFhOWFlNjc1YjI0OTQ1MDk3NDdjYjQwZDQ0MDJjZDhiNmI3YTZjYmMifQ%3D%3D","key":"giftcart_session"}],"responseTime":null,"body":"{\"status\":\"error\",\"code\":\"717\",\"message\":\"Template for brand [%s] is not available for this partner\",\"data\":[]}"}],"_postman_id":"e8de4f50-cdb7-49dd-83ec-6e06329f43d0"},{"name":"Get Template","event":[{"listen":"prerequest","script":{"id":"149752a9-650b-4f7b-993d-f639831b7175","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"6e57bcef-702f-41d2-a8d8-ec419835b6de","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/template?brand={brand}&template={template_name}","description":"<p>Fetch a specific template for a brand</p>\n","urlObject":{"path":["api","v2","template"],"host":["{{URL}}"],"query":[{"description":{"content":"<p>Required | Brand identifier/slug</p>\n","type":"text/plain"},"key":"brand","value":"{brand}"},{"key":"template","value":"{template_name}"}],"variable":[]}},"response":[{"id":"1c1008b5-5b6d-48f7-9787-d2f0c7d4e302","name":"Get Template","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{URL}}/api/v2/template?brand=amazon&template=standard","host":["{{URL}}"],"path":["api","v2","template"],"query":[{"key":"brand","value":"amazon","description":"Brand slug"},{"key":"template","value":"standard","description":"Which brand template to use (all have a 'standard' template)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6e57bcef-702f-41d2-a8d8-ec419835b6de"}],"id":"f13911d5-c2ab-4e63-a6c8-5010ec1f5eda","event":[{"listen":"prerequest","script":{"id":"09fdd5aa-a946-4741-8ebf-906b2300eb90","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"afabb690-5778-4b4d-b488-0727f87579d0","type":"text/javascript","exec":[""]}}],"_postman_id":"f13911d5-c2ab-4e63-a6c8-5010ec1f5eda","description":""},{"name":"Floats","item":[{"name":"Check Floats","event":[{"listen":"prerequest","script":{"id":"51d47ec7-e141-4f88-8f65-bde6222ff3b2","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"cc98f907-d81b-4e10-b083-c0ea982fda95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/check-floats?currency=GBP","description":"<p>Request your current Monies on Account and Credit balances.</p>\n<p>It is expected that this call will be made periodically.</p>\n","urlObject":{"path":["api","v2","check-floats"],"host":["{{URL}}"],"query":[{"key":"currency","value":"GBP"}],"variable":[]}},"response":[{"id":"ea0b25b3-e393-4b2f-a9f0-364b4dd465ab","name":"Check Floats","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"YOUR_API_KEY","type":"text"},{"key":"Signature","value":"REQUEST_SIGNATURE","type":"text"},{"key":"Timestamp","value":"CURRENT_TIMESTAMP","type":"text"}],"url":{"raw":"{{URL}}/api/v2/check-floats?currency={currency}","host":["{{URL}}"],"path":["api","v2","check-floats"],"query":[{"key":"currency","value":"{currency}","description":"Optional parameter. Limit the results to a single currency."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"data\": {\n        \"floats\": {\n            \"GBP\": {\n                \"universal-float\": {\n                    \"available_balance\": {\n                        \"amount\": 299785.29,\n                        \"currency\": \"GBP\"\n                    },\n                    \"pending_payments\": {\n                        \"amount\": 10000,\n                        \"currency\": \"GBP\"\n                    }\n                },\n                \"amazon\": {\n                    \"available_balance\": {\n                        \"amount\": 57013.51,\n                        \"currency\": \"GBP\"\n                    },\n                    \"pending_payments\": {\n                        \"amount\": 0,\n                        \"currency\": \"GBP\"\n                    }\n                }\n            },\n            \"USD\": {\n                \"universal-float\": {\n                    \"available_balance\": {\n                        \"amount\": 19848.62,\n                        \"currency\": \"USD\"\n                    },\n                    \"pending_payments\": {\n                        \"amount\": 1000,\n                        \"currency\": \"USD\"\n                    }\n                }\n            }\n        },\n        \"last_refreshed_at\": \"2018-10-12T11:12:07+00:00\"\n    }\n}"}],"_postman_id":"cc98f907-d81b-4e10-b083-c0ea982fda95"},{"name":"Check Transfer Requests","event":[{"listen":"prerequest","script":{"id":"51d47ec7-e141-4f88-8f65-bde6222ff3b2","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"17efccda-5351-417e-95a3-c3cce30c0dd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":"{{URL}}/api/v2/float/transfer-requests?currency=GBP","description":"<p>Retrieve transfer requests based on various filters including float, currency, payment reference, date range, and status.</p>\n<p>All query parameters are optional and can be combined to filter results.</p>\n","urlObject":{"path":["api","v2","float","transfer-requests"],"host":["{{URL}}"],"query":[{"description":{"content":"<p>Currency ISO Code (eg. GBP, USD)</p>\n","type":"text/plain"},"key":"currency","value":"GBP"},{"disabled":true,"key":"float","value":"universal-float"},{"disabled":true,"key":"payment_reference","value":"BUYER-PROVIDED-REF"},{"disabled":true,"description":{"content":"<p>Beginning of the date range in ISO 8601 format</p>\n","type":"text/plain"},"key":"start_date","value":"2025-10-01"},{"disabled":true,"description":{"content":"<p>End of the date range in ISO 8601 format</p>\n","type":"text/plain"},"key":"end_date","value":"2025-12-31"},{"disabled":true,"description":{"content":"<p>Filter for transfer request state (eg. pending, approved, approved_edited, removed, cancelled)</p>\n","type":"text/plain"},"key":"status","value":"pending"}],"variable":[]}},"response":[{"id":"3afca6d2-9975-4131-967f-0245f5e17ae8","name":"Check Transfer Requests","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"API-Key","value":"{{API_KEY}}"},{"key":"Signature","value":"{{SIGNATURE}}"},{"key":"Timestamp","value":"{{TIMESTAMP}}"}],"url":{"raw":"{{URL}}/api/v2/float/transfer-requests?currency=GBP","host":["{{URL}}"],"path":["api","v2","float","transfer-requests"],"query":[{"key":"currency","value":"GBP","description":"Currency ISO Code (eg. GBP, USD)"},{"key":"float","value":"universal-float","type":"text","disabled":true},{"key":"payment_reference","value":"BUYER-PROVIDED-REF","type":"text","disabled":true},{"key":"start_date","value":"2025-10-01","description":"Beginning of the date range in ISO 8601 format","type":"text","disabled":true},{"key":"end_date","value":"2025-12-31","description":"End of the date range in ISO 8601 format","type":"text","disabled":true},{"key":"status","value":"pending","description":"Filter for transfer request state (eg. pending, approved, approved_edited, removed, cancelled)","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"float\": \"universal-float\",\n            \"requested\": {\n                \"currency\": \"GBP\",\n                \"amount\": \"45.00\"\n            },\n            \"approved\": null,\n            \"payment_reference\": \"EXAMPLE-REF-1\",\n            \"status\": \"pending\",\n            \"created_at\": \"2025-12-05T14:08:03+00:00\"\n        },\n        {\n            \"float\": \"mock-brand\",\n            \"requested\": {\n                \"currency\": \"GBP\",\n                \"amount\": \"100.00\"\n            },\n            \"approved\": {\n                \"currency\": \"GBP\",\n                \"amount\": \"100.00\"\n            },,\n            \"payment_reference\": \"EXAMPLE-REF-2\",\n            \"status\": \"approved\",\n            \"created_at\": \"2025-09-04T09:29:35+00:00\"\n        }\n    ]\n}"}],"_postman_id":"17efccda-5351-417e-95a3-c3cce30c0dd0"},{"name":"Request Payment Transfer","event":[{"listen":"prerequest","script":{"id":"d8adf96b-bf4a-4f90-af2d-5539f9c6995c","exec":["/* Pre-requisite","==================","See the Pre-request script on the Postman Collection for authentication and signature details","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/"],"type":"text/javascript","packages":{}}}],"id":"619330a9-beb9-4bcb-a366-bc0bfa610f53","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}","type":"text"},{"key":"Signature","value":"{{SIGNATURE}}","type":"text"},{"key":"Timestamp","value":"{{TIMESTAMP}}","type":"text"}],"body":{"mode":"raw","raw":"{    \n  \"float\": \"universal-float\", \n  \"currency\": \"GBP\",\n  \"amount\": 100.00,        \n  \"payment_reference\": \"OUR_REF\",\n  \"proforma_invoice\": { \n    \"company_name\": \"string\", \n    \"address_line_1\": \"string\", \n    \"address_line_2\": \"string\",\n    \"address_line_3\": \"string\",\n    \"address_line_4\": \"string\", \n    \"city\": \"string\",     \n    \"post_code\": \"string\", \n    \"county\": \"string\",         \n    \"country\": \"string\"\n  },\n  \"finance_email\": \"test@payment.com\"\n}"},"url":"{{URL}}/api/v2/float/request-payment-transfer","description":"<p>Request a payment transfer to one of your floats.</p>\n<p><em>Choosing a Float</em></p>\n<p>The <code>float</code> and <code>currency</code> field values must correspond to entries listed in our Brand Information check-float endpoint response - i.e. an existing currency and float relationship.<br />eg universal-float &amp; GBP, amazon &amp; USD</p>\n<p>Please supply the float currency, even if the transfer is to be made from a bank account of a different currency.</p>\n<p>A <code>payment_reference</code> field may optionally be supplied, otherwise Tillo will generate a payment reference for the transfer request.<br />Uniqueness will not be enforced on supplied references, although we urge clients to make each unique.</p>\n<p><em>Proforma Invoice Overrides</em></p>\n<p>If you have our Proforma Invoicing feature, the company details on the Proforma Invoice may be overridden.</p>\n<p><code>company_name</code>, <code>address_line_1</code>, and <code>post_code</code> fields are required if overriding, other address fields are optional.</p>\n<p><em>Finance Email</em></p>\n<p>A <code>finance_email</code> may optionally be supplied, to send the invoice to a different recipient than your standard finance user.</p>\n","urlObject":{"path":["api","v2","float","request-payment-transfer"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"4e8c6278-82cd-47af-ba38-9960c0b872d2","name":"Minimal parameters (uses Tillo reference)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}","type":"text"},{"key":"Signature","value":"{{SIGNATURE}}","type":"text"},{"key":"Timestamp","value":"{{TIMESTAMP}}","type":"text"}],"body":{"mode":"raw","raw":"{    \n  \"float\": \"universal-float\", \n  \"currency\": \"GBP\",\n  \"amount\": 100.00\n  }"},"url":"{{URL}}/api/v2/float/request-payment-transfer"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Payment transfer request registered\",\n    \"data\": {\n        \"float\": \"universal-float\",\n        \"currency\": \"GBP\",\n        \"amount\": \"100.00\",\n        \"payment_reference\": \"TILLO_REF\"\n    }\n}"},{"id":"73086362-5479-44ee-b203-da94cb7f0ae6","name":"Optional parameters (own reference)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}","type":"text"},{"key":"Signature","value":"{{SIGNATURE}}","type":"text"},{"key":"Timestamp","value":"{{TIMESTAMP}}","type":"text"}],"body":{"mode":"raw","raw":"{    \n  \"float\": \"universal-float\", \n  \"currency\": \"USD\",\n  \"amount\": 200.00\n  }"},"url":"{{URL}}/api/v2/float/request-payment-transfer"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Payment transfer request registered\",\n    \"data\": {\n        \"float\": \"universal-float\",\n        \"currency\": \"USD\",\n        \"amount\": \"200.00\",\n        \"payment_reference\": \"TILLO_REF\"\n    }\n}"},{"id":"a245ccca-9850-4d40-951e-d99ccd279b00","name":"Optional parameters (proforma invoice overrides)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"API-Key","value":"{{API_KEY}}","type":"text"},{"key":"Signature","value":"{{SIGNATURE}}","type":"text"},{"key":"Timestamp","value":"{{TIMESTAMP}}","type":"text"}],"body":{"mode":"raw","raw":"{    \n  \"float\": \"universal-float\", \n  \"currency\": \"EUR\",\n  \"amount\": 300.00,        \n  \"proforma_invoice\": { \n    \"company_name\": \"string\", \n    \"address_line_1\": \"string\", \n    \"address_line_2\": \"string\",\n    \"address_line_3\": \"string\",\n    \"address_line_4\": \"string\", \n    \"city\": \"string\",     \n    \"post_code\": \"string\", \n    \"county\": \"string\",         \n    \"country\": \"string\"\n  },\n  \"finance_email\": \"test@payment.com\"\n}"},"url":"{{URL}}/api/v2/float/request-payment-transfer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.19.10"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.30"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Fri, 12-Nov-2021 18:15:28 GMT; Max-Age=3600; path=/; SameSite=Strict"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkdjZlFSY2RWblNaOEN2ZFoxbzcwNEE9PSIsInZhbHVlIjoiV0s2dENkdUo0amFtcFMyY2c1Sjg4VnBwb0FQTWY3TVBENGxXd2tWNmVHa2llZHJXXC82bWtDR2dab01kbWIwYkE4V011SkZ2N0gyYitXbGIrWFUyZ2VIU1NVNFpldmV3VU5EQzN0RnhXbXozN0pGcjdWN2hDUkpDRE5HWk5GMityIiwibWFjIjoiNWVjNTMwNTg5YTk3Mjk0YzNhM2M3OTExNzNjZmUwMGMxYjZhNTMyZGMyOTYzZWZjYTVhMjVhMzFjMGVjMGQwNyJ9; expires=Fri, 12-Nov-2021 19:15:40 GMT; Max-Age=7200; path=/; secure"},{"key":"Set-Cookie","value":"tillo_session=eyJpdiI6IkhGZ1piam1QejM5RDJLcEtROFpRQmc9PSIsInZhbHVlIjoiem9vTllsUXd1ZGFkZXlUdlNiNzVzOERVcGRhTDJKRDJcL3BTa3hEZm8xOWxcL1RvRVYxb2tqM1wveUo0QUU2OCtvUnhZRVdTRGE1ek5EeXkyY1RpOWVcL1hFVG03MjdkUTJwQm1qaDBDOG1jV2pVN1wvZVwvK1RKbUFFVzE5NDNocEd6UUUiLCJtYWMiOiJkNzJmZWQwYTZmNTJjODBkNTczMjQ3MjUyYWQ5NTM1YWFlMWVjYmNkZTk5NTgzNTI0MGI2OTcwMGY0NzI0MjQ3In0%3D; path=/; secure; httponly"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 12 Nov 2021 17:15:40 GMT"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"000\",\n    \"status\": \"success\",\n    \"message\": \"Payment transfer request registered\",\n    \"data\": {\n        \"float\": \"universal-float\",\n        \"currency\": \"EUR\",\n        \"amount\": \"300.00\",\n        \"payment_reference\": \"OUR_REF\"\n    }\n}"}],"_postman_id":"619330a9-beb9-4bcb-a366-bc0bfa610f53"}],"id":"35ce5312-965d-43af-a816-6968af32c26a","_postman_id":"35ce5312-965d-43af-a816-6968af32c26a","description":""}],"event":[{"listen":"prerequest","script":{"id":"2a5f374a-c13b-42f6-b84e-632aedaf5718","type":"text/javascript","requests":{},"exec":["/* Pre-requisite","==================","1. Create an Environment (if you don't already have one), add the following key => value pairs and enable it for your requests","    - URL => Populate as appropriate for the domain you want to hit. See https://tillo.tech/v2_docs/getting_started.html#sandbox-set-up","    - API_KEY => YOUR_API_KEY","    - SECRET => YOUR_SECRET","2. In the Headers tab make sure you have the following key => value pairs set","    - Content-Type => 'application/json'","    - Accept => 'application/json'","    - Api-Key => {{API_KEY}}","    - Signature => {{SIGNATURE}}","    - Timestamp => {{TIMESTAMP}}","","Reference: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox","*/","","// Utility Functions","const generateRandomString = (length = 25) => {","  return [...Array(length)]","    .map(() => (~~(Math.random() * 36)).toString(36))","    .join('');","};","","const setClientRequestId = (isIssuance) => {","  const clientRequestId = generateRandomString();","  pm.environment.set('CLIENT_REQUEST_ID', clientRequestId);","  if (isIssuance) {","    pm.environment.set('ORIGINAL_CLIENT_REQUEST_ID', clientRequestId);","  }","  return clientRequestId;","};","","const getTransactionType = (url) => {","  return url.path","    .filter(segment => !['api', 'v2', ''].includes(segment))","    .join('-');","};","","const parseQueryString = () => {","  const query = {};","  pm.request.url.query.all().forEach(({ key, value }) => {","    query[key] = value;","  });","  return query;","};","","const hmacShaTwoFiveSix = (value, secret) => {","  return CryptoJS.HmacSHA256(value, secret);","};","","const getCurrentTimestamp = () => {","  const moment = require('moment');","  const timestamp = moment().valueOf();","  pm.environment.set('TIMESTAMP', timestamp);","  return timestamp;","};","","const getRequestBody = (value) => {","  try {","    return JSON.parse(value);","  } catch {","    return {};","  }","};","","// Main HMAC Functions","const getHmacDigest = (httpMethod, requestUrl, requestBody) => {","  const {","    API_KEY: apiKey,","    SECRET: secret","  } = pm.environment.toObject();","","  const transactionType = getTransactionType(requestUrl);","  const timestamp = getCurrentTimestamp();","  let requestData = [];","","  if (httpMethod === 'GET') {","    const parsedQueryString = parseQueryString();","    requestData = [apiKey, httpMethod, transactionType];","    ","    if (parsedQueryString.brand) {","      requestData.push(parsedQueryString.brand);","    }","    ","    requestData.push(timestamp);","  } else {","    const isIssuance = transactionType === 'digital-issue' && httpMethod === 'POST';","    const isFloatTransfer = transactionType === 'float-request-payment-transfer' && httpMethod === 'POST'","    ","    if (isFloatTransfer) {","        requestData = [","            apiKey,","            httpMethod,","            transactionType,","            timestamp","        ];","    } else {","        const body = getRequestBody(requestBody);","        const clientRequestId = setClientRequestId(isIssuance);","        ","        var rawBrandSlug = pm.iterationData.get(\"DATA_BRAND\") || body.brand || pm.environment.get(\"BRAND\");","        if (rawBrandSlug.startsWith('{{') && rawBrandSlug.endsWith('}}')) {","            rawBrandSlug = pm.environment.get(\"BRAND\");","        }","        const brandSlug = rawBrandSlug?.toString() || '';","        if (!brandSlug.startsWith('{{') && !brandSlug.endsWith('}}')) {","            pm.environment.set(\"BRAND\", brandSlug);","        }","","        requestData = [","            apiKey,","            httpMethod,","            transactionType,","            clientRequestId,","            brandSlug,","            timestamp","        ];","    }","  }","","  const hmacData = requestData.join(\"-\");","  console.log(hmacData);","  const hmacSha256 = hmacShaTwoFiveSix(hmacData, secret);","  ","  return hmacSha256.toString();","};","","const getSignature = () => {","  const { method, url, body } = pm.request;","  return getHmacDigest(method, url, body);","};","","// Set the signature in the environment","pm.environment.set('SIGNATURE', getSignature());"]}},{"listen":"test","script":{"id":"ef89d452-7249-421f-9861-202b426fee9c","type":"text/javascript","requests":{},"exec":["// Check every response has some basic meta data, always JSON etc."]}}]}