{ "uuid": "03755a71-e67d-407a-8bc7-5655b0d30281", "lastMigration": 29, "name": "Personalized Offers", "endpointPrefix": "plo/v1", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "5df442ec-9cc5-44b2-8c83-59c7741d34bc", "documentation": "Make Statement Credit Offer Available Redeemable", "method": "post", "endpoint": "activatestatementcreditoffer", "responses": [ { "uuid": "1cb008df-cc66-419f-97ce-2ff4c7cf6098", "body": "{\n \"Response\": {\n \"ScActivation\": {\n \"ActivationDate\": \"2015-10-15\",\n \"ActivationId\": \"TRU_1000136\",\n \"CashBack\": \"\",\n \"DaysRemaining\": 13,\n \"Headline\": \"Shop at Example.com and get $10.00 back on purchase of $30 or more\",\n \"Merchant\": \"Example.com\",\n \"MerchantLogo\": \"https://truaxis.mastercard.com/assets/sr/source/billshrink/example.png\",\n \"OfferId\": \"c7dcfca7-cf35-36b0-9e67-d4f363d643e0\",\n \"PointsEarned\": \"\",\n \"RedemptionEndDate\": \"2015-10-29\",\n \"RedemptionMode\": \"CASH\",\n \"RemainingSpend\": 30,\n \"ShortDescription\": \"On your next purchase of $30 or more at Example.com inline or at a store, receive $10.00 back posted to the card associated with this account.\",\n \"Status\": \"ACTIVATED\",\n \"TotalSpend\": \"\"\n },\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n }\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns information about the activated offer.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "dfb5ce8e-5968-427e-93da-3fb74e1352e4", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8f369ab9-59d5-43ae-929e-49e91b3c6f93", "documentation": "Returns Matched Offers", "method": "get", "endpoint": "matchedoffers", "responses": [ { "uuid": "0394f15b-8fbf-4063-9d5f-81c27879c063", "body": "{\n \"Response\": {\n \"CurrentPage\": 1,\n \"Items\": {\n \"MatchedOffer\": {\n \"ActiveSc\": \"AVAILABLE\",\n \"CurrencyCode\": \"USD\",\n \"Discount\": 20,\n \"DiscountType\": 20,\n \"EventEndDate\": \"2012-07-10\",\n \"EventStartDate\": \"2012-05-10\",\n \"Headline\": \"Shop at Example.com and get 20% back on purchase of $25 or more\",\n \"Language\": \"English\",\n \"Merchant\": {\n \"Category\": \"DEPARTMENTSTORE\",\n \"MerchantDistance\": \"\",\n \"Name\": \"Example.com\",\n \"StoreLocatorUrl\": \"http://www.example.com/locations/\",\n \"WebsiteUrl\": \"http://www.example.com/\"\n },\n \"MerchantImageURL\": \"https://truaxis.mastercard.com/assets/sr/source/billshrink/example.png\",\n \"OfferId\": \"c7dcfca7-cf35-36b0-9e67-d4f363d643e0\",\n \"OfferSource\": \"Truaxis\",\n \"OfferType\": \"POSTPAIDCREDIT\",\n \"Price\": \"\",\n \"RedemptionMode\": \"CASH\",\n \"ShortDescription\": \"On your next purchase of $25 or more at Example.com online or at a store, receive 20% back posted to the card associated with this account.\"\n }\n },\n \"ItemsPerPage\": 1,\n \"NumberOfPages\": 1,\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n },\n \"TotalCount\": 8\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns offers that are available to the user and conform to the search criteria (if specified).", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "4cfb8470-e1eb-4dda-94d7-ed25da4866b8", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6c509c8d-2d50-40ea-923f-fc6d711be9d9", "documentation": "Returns Information on an Offer", "method": "get", "endpoint": "offerdetails", "responses": [ { "uuid": "e0ecae82-7bb9-4a24-bec5-5177a46e1a7d", "body": "{\n \"Response\": {\n \"OfferDetails\": {\n \"CurrencyCode\": \"USD\",\n \"DetailPostpaidCreditOffer\": {\n \"CashBack\": 10,\n \"CurrencyCode\": \"USD\",\n \"MaxCashback\": 10,\n \"MinTransactionAmountToRedeem\": 30,\n \"StatementCreditType\": \"SPEND_CASH\",\n \"VisitThreshold\": 1\n },\n \"EventEndDate\": \"2012-07-10\",\n \"EventStartDate\": \"2012-05-10\",\n \"Headline\": \"Shop at Example.com and get 20% back on purchase of $25 or more\",\n \"Language\": \"English\",\n \"LinkOut\": \"\",\n \"LongDescription\": \"On your next purchase of $30 or more at Example.com online or at a store, receive $10.00 back posted to the card associated with this account.\",\n \"Merchant\": {\n \"Category\": \"DEPARTMENTSTORE\",\n \"MerchantDistance\": \"\",\n \"Name\": \"Example.com\",\n \"StoreLocatorUrl\": \"http://www.example.com/locations/\",\n \"WebsiteUrl\": \"http://www.example.com/\"\n },\n \"OfferDisplay\": {\n \"DetailedTerms\": \"Offer is non-transferable and applies to one purchase of a min. of $30 online or in store charged to your card by the expiration date.\"\n },\n \"OfferId\": \"c7dcfca7-cf35-36b0-9e67-d4f363d643e0\",\n \"OfferMedia\": {\n \"OfferImages\": [\n {\n \"AltText\": \"Example.com\",\n \"Description\": \"The logo for Example.com\",\n \"ImageUrl\": \"https://truaxis.mastercard.com/assets/sr/source/billshrink/example_medium.png\"\n }\n ]\n },\n \"OfferSource\": \"Truaxis\",\n \"OfferType\": \"POSTPAIDCREDIT\",\n \"OfferUrl\": \"\",\n \"RedemptionMode\": \"CASH\",\n \"RedemptionType\": \"ONLINE-INSTORE\",\n \"ShortDescription\": \"On your next purchase of $25 or more at Example.com online or at a store, receive 20% back posted to the card associated with this account.\"\n },\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n }\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns extended information for the requested offer, typically used to display a detail view.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f5b98ca5-caa1-4f64-8aa1-d36fede1ad81", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "543b0a2c-045c-478b-a088-aa0efed31e66", "documentation": "Returns Redeemed Offers", "method": "get", "endpoint": "redeemedoffers", "responses": [ { "uuid": "fca1db80-1387-40bb-a0e2-6bf069ed502c", "body": "{\n \"Response\": {\n \"CurrentPage\": 1,\n \"Items\": {\n \"RedemedOffer\": {\n \"ActivationDate\": \"2015-10-15\",\n \"ActivationId\": \"TRU_1000136\",\n \"CurrencyCode\": \"USD\",\n \"DetailPostpaidCreditOffer\": {\n \"CashBack\": 10,\n \"CurrencyCode\": \"USD\",\n \"MaxCashback\": 10,\n \"MinTransactionAmountToRedeem\": 30,\n \"StatementCreditType\": \"SPEND_CASH\",\n \"VisitThreshold\": 1\n },\n \"EventEndDate\": \"2012-07-10\",\n \"EventStartDate\": \"2012-05-10\",\n \"Headline\": \"Shop at Example.com and get 20% back on purchase of $25 or more\",\n \"Language\": \"English\",\n \"LinkoutUrl\": \"\",\n \"LongDescription\": \"On your next purchase of $30 or more at Example.com online or at a store, receive $10.00 back posted to the card associated with this account.\",\n \"MaxUserRedemptions\": 1,\n \"Merchant\": {\n \"Category\": \"DEPARTMENTSTORE\",\n \"MerchantDistance\": {{faker 'number.int' max=99999}},\n \"Name\": \"Example.com\",\n \"StoreLocatorUrl\": \"http://www.example.com/locations/\",\n \"WebsiteUrl\": \"http://www.example.com/\"\n },\n \"OfferDisplay\": {\n \"DetailedTerms\": \"Offer is non-transferable and applies to one purchase of a min. of $30 online or in store charged to your card by the expiration date.\"\n },\n \"OfferId\": \"c7dcfca7-cf35-36b0-9e67-d4f363d643e0\",\n \"OfferMedia\": {\n \"OfferImages\": [\n {\n \"AltText\": \"Example.com\",\n \"Description\": \"The logo for Example.com\",\n \"ImageUrl\": \"https://truaxis.mastercard.com/assets/sr/source/billshrink/example_medium.png\"\n }\n ]\n },\n \"OfferSource\": \"Truaxis\",\n \"OfferType\": \"POSTPAIDCREDIT\",\n \"OfferUrl\": \"\",\n \"RedemptionMode\": \"CASH\",\n \"RedemptionType\": \"ONLINE-INSTORE\",\n \"ShortDescription\": \"On your next purchase of $30 or more at Example.com inline or at a store, receive $10.00 back posted to the card associated with this account.\",\n \"Transactions\": {\n \"CashBackEarned\": \"\",\n \"PointsEarned\": \"\",\n \"RedemptionDate\": \"2015-10-12\",\n \"TransactionAmount\": 12\n }\n }\n },\n \"ItemsPerPage\": 1,\n \"NumberOfPages\": 1,\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n },\n \"TotalCount\": 8\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns offers that have been fulfilled by the user.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3448a3ae-e5d6-4d03-8fcd-6d355d750918", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f7425a97-411a-4b54-a0f1-977f46380873", "documentation": "Returns Information About Redeemable Postpaid Credit Offer", "method": "get", "endpoint": "statementcreditactivationdetail", "responses": [ { "uuid": "a99f5e8c-b8e1-4b1f-8777-0a811dae84ac", "body": "{\n \"Response\": {\n \"ScActivation\": {\n \"ActivationDate\": \"2015-10-15\",\n \"ActivationId\": \"TRU_1000136\",\n \"CashBack\": \"\",\n \"DaysRemaining\": 13,\n \"Headline\": \"Shop at Example.com and get $10.00 back on purchase of $30 or more\",\n \"Merchant\": \"Example.com\",\n \"MerchantLogo\": \"https://truaxis.mastercard.com/assets/sr/source/billshrink/example.png\",\n \"OfferId\": \"c7dcfca7-cf35-36b0-9e67-d4f363d643e0\",\n \"PointsEarned\": \"\",\n \"RedemptionEndDate\": \"2015-10-29\",\n \"RedemptionMode\": \"CASH\",\n \"RemainingSpend\": 30,\n \"ShortDescription\": \"On your next purchase of $30 or more at Example.com inline or at a store, receive $10.00 back posted to the card associated with this account.\",\n \"Status\": \"ACTIVATED\",\n \"TotalSpend\": \"\"\n },\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n }\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns extended information about the specified activated postpaid credit offer.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "6ed075ef-a252-49e6-93a2-0d00c5a28034", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "db789f82-93fe-49ee-9d38-ab8b2d35ff6d", "documentation": "Provide User Feedback on Offer", "method": "post", "endpoint": "userfeedback", "responses": [ { "uuid": "b53dc57e-74ba-47d9-8716-2cdd266fe916", "body": "{\n \"Response\": {\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n },\n \"UserFeedback\": {\n \"Feedback\": 1,\n \"OfferId\": \"c7dcfca7-cf35-36b0-9e67-d4f363d643e0\"\n }\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns the user rating of the specified offer.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "8a49fa36-fced-444d-9310-8ce81421b21a", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6d23f84e-812b-4358-9e2b-4a27082bf6e3", "documentation": "Returns Savings for the User", "method": "get", "endpoint": "usersavings", "responses": [ { "uuid": "75cf42f7-5e06-43be-b6a5-3757401fedfb", "body": "{\n \"Response\": {\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n },\n \"UserSavings\": {\n \"PrepaidOfferSavings\": {\n \"AmountSaved\": \"\",\n \"NumAvailable\": \"\",\n \"NumPurchased\": \"\",\n \"PotentialSavings\": \"\"\n },\n \"StatementCreditOffersSavings\": {\n \"EarnedCashback\": 21,\n \"NumAvailable\": \"\",\n \"NumRedeemed\": 1,\n \"PotentialSavings\": 195\n },\n \"TotalAmountSaved\": 21,\n \"TotalOffersUsed\": 1\n }\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns the accumulated and potential savings for a Personalized Offers user.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9da8f601-6b9e-4af4-be06-a35519cf79dc", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c2bc393e-d78f-4f56-afa9-0bb1c5036ad2", "documentation": "Returns User Session Token", "method": "get", "endpoint": "usertoken", "responses": [ { "uuid": "0bc5dc19-cd54-4f5c-a462-fb43059ce4fa", "body": "{\n \"Response\": {\n \"Status\": {\n \"Code\": 600,\n \"Message\": \"Success\"\n },\n \"UserToken\": {\n \"Token\": \"mh3WonUm5xmE\"\n }\n }\n}", "latency": 0, "statusCode": 200, "label": "This resource returns the user session token (UserToken), which is a required input to all other API resources.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "bfaf2abd-9c6e-479e-81bc-e38356041105", "body": "{\n \"Errors\": {\n \"Error\": [\n {\n \"ReasonCode\": \"\",\n \"Source\": \"Atms.Atm.Location.Address.Line1\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "Unexpected error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "5df442ec-9cc5-44b2-8c83-59c7741d34bc" }, { "type": "route", "uuid": "8f369ab9-59d5-43ae-929e-49e91b3c6f93" }, { "type": "route", "uuid": "6c509c8d-2d50-40ea-923f-fc6d711be9d9" }, { "type": "route", "uuid": "543b0a2c-045c-478b-a088-aa0efed31e66" }, { "type": "route", "uuid": "f7425a97-411a-4b54-a0f1-977f46380873" }, { "type": "route", "uuid": "db789f82-93fe-49ee-9d38-ab8b2d35ff6d" }, { "type": "route", "uuid": "6d23f84e-812b-4358-9e2b-4a27082bf6e3" }, { "type": "route", "uuid": "c2bc393e-d78f-4f56-afa9-0bb1c5036ad2" } ] }