{"_id":"59b6b1edbc195b003ca7a9a6","category":{"_id":"59b6b1ecbc195b003ca7a986","version":"59b6b1ecbc195b003ca7a981","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-17T12:18:27.941Z","from_sync":false,"order":4,"slug":"wallets","title":"Wallets"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"59b6b1ecbc195b003ca7a981","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-09-11T15:55:24.925Z","releaseDate":"2017-09-11T15:55:24.925Z","categories":["59b6b1ecbc195b003ca7a982","59b6b1ecbc195b003ca7a983","59b6b1ecbc195b003ca7a984","59b6b1ecbc195b003ca7a985","59b6b1ecbc195b003ca7a986","59b6b1ecbc195b003ca7a987","59b6b1ecbc195b003ca7a988","59b6b1ecbc195b003ca7a989","59b6b1ecbc195b003ca7a98a","59b6b1ecbc195b003ca7a98b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.2 Release","version_clean":"8976.0.0-Tools","version":"8976-Tools"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-17T13:12:59.918Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"language":"text","code":""}]},"settings":"","examples":{"codes":[]},"method":"get","auth":"optional","params":[],"url":""},"isReference":true,"order":17,"body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/wallets/:walletid</span>\n\n<hr>\n\n##Documentation\nThe Retrieve Wallet request retrieves the details for the shopper's wallet, including the credit card's last four digits, shipping and contact info, etc.\n[block:callout]\n{\n  \"type\": \"success\",\n  \"body\": \"The Retrieve Wallet request is supported for MasterPass and Visa Checkout.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"The `wallet` resource for a specific wallet ID can only be retrieved within 15 minutes from its creation.\",\n  \"title\": \"Wallet expiration\"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<ul class=\\\"nav nav-pills nav-justified\\\">\\n  <li class=\\\"active\\\"><a data-toggle=\\\"pill\\\" href=\\\"#menujson\\\">JSON</a></li>\\n  <li><a data-toggle=\\\"tab\\\" href=\\\"#menuxml\\\">XML</a></li>\\n</ul>\\n<div class=\\\"tab-content\\\">\\n  <div id=\\\"menujson\\\" class=\\\"tab-pane fade in active\\\">\"\n}\n[/block]\n###JSON Request Content\nEnter the `walletId` into the web service URL, in the format:\n`services/2/wallets/{walletId}`\n\nFor example:\n`services/2/wallets/1234567`\n\n###JSON Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `wallet` object (see [wallet (JSON object)](doc:wallet-json)).\n\n<hr>\n\n##JSON Examples\n\n###Request Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/wallets/1234567 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve Wallet Request\"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"country\\\": \\\"us\\\",\\n    \\\"firstName\\\": \\\"FirstName\\\",\\n    \\\"lastName\\\": \\\"LastName\\\",\\n    \\\"billingContactInfo\\\": {\\n        \\\"zip\\\": \\\"zip\\\",\\n        \\\"country\\\": \\\"country\\\",\\n        \\\"address2\\\": \\\"line2 + line3\\\",\\n        \\\"city\\\": \\\"city\\\",\\n        \\\"address1\\\": \\\"line1\\\",\\n        \\\"state\\\": \\\"state\\\"\\n    },\\n    \\\"phone\\\": \\\"1-9871111111\\\",\\n    \\\"shippingContactInfo\\\": {\\n        \\\"zip\\\": \\\"zip\\\",\\n        \\\"country\\\": \\\"country\\\",\\n        \\\"firstName\\\": \\\"recipient\\\",\\n        \\\"lastName\\\": \\\"name\\\",\\n        \\\"address2\\\": \\\"line2 + line3\\\",\\n        \\\"city\\\": \\\"city\\\",\\n        \\\"phone\\\": \\\"recipient phone number\\\",\\n        \\\"address1\\\": \\\"line1\\\",\\n        \\\"state\\\": \\\"state\\\"\\n    },\\n    \\\"creditCard\\\": {\\n        \\\"expirationYear\\\": 2022,\\n        \\\"cardLastFourDigits\\\": \\\"0026\\\",\\n        \\\"cardFingerprint\\\": \\\"a0f6043de947e...\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\",\\n        \\\"cardType\\\": \\\"VISA\\\",\\n        \\\"cardSubType\\\": \\\"CREDIT\\\", \\n      \\t\\\"cardCategory\\\": \\\"CLASSIC\\\",\\n        \\\"expirationMonth\\\": 2\\n    },\\n    \\\"email\\\": \\\"joe.test:::at:::email.com\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Retrieve Wallet Response: 200 OK\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \" </div>\\n <div id=\\\"menuxml\\\" class=\\\"tab-pane fade\\\">\"\n}\n[/block]\n###XML Request Content\nEnter the `wallet-id` into the web service URL, in the format:\n`services/2/wallets/{wallet-id}`\n\nFor example:\n`services/2/wallets/1234567`\n\n###XML Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `wallet` resource (see [wallet (XML resource)](doc:wallet)).\n\n<hr>\n\n##XML Examples\n\n###Request Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/wallets/1234567 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve Wallet Request\"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<wallet xmlns=\\\"http://ws.plimus.com\\\">\\n  <first-name>FirstName</first-name>\\n  <last-name>LastName</last-name>\\n  <email>joe.test@email.com</email>   \\n  <country>us</country>\\n  <phone>1-9871111111</phone>\\n  <credit-card>\\n    <card-last-four-digits>0026</card-last-four-digits>\\n    <card-type>VISA</card-type>\\n    <card-sub-type>CREDIT</card-sub-type>\\n    <card-category>CLASSIC</card-category>\\n    <card-fingerprint>a0f6043de947e...</card-fingerprint>\\n    <expiration-month>2</expiration-month>\\n    <expiration-year>2022</expiration-year>\\n  </credit-card>\\n  <billing-contact-info>\\n    <address1>line1</address1>\\n    <address2>line2 + line3</address2>\\n    <city>city</city>\\n    <state>state</state>\\n    <zip>zip</zip>\\n    <country>country</country>\\n  </billing-contact-info>\\n  <shipping-contact-info>\\n    <first-name>recipient</first-name>\\n    <last-name>name</last-name>\\n    <address1>line1</address1>\\n    <address2>line2 + line3</address2>\\n    <city>city</city>\\n    <state>state</state>\\n    <zip>zip</zip>\\n    <country>country</country>\\n    <phone>recipient phone number</phone>\\n  </shipping-contact-info>\\n</wallet>\",\n      \"language\": \"xml\",\n      \"name\": \"Retrieve Wallet Response: 200 OK\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \" </div>\\n</div>\"\n}\n[/block]\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","excerpt":"","slug":"retrieve-wallet","type":"get","title":"Retrieve Wallet"}

getRetrieve Wallet


Definition

https://sandbox.bluesnap.com/services/2/wallets/:walletid


Documentation

The Retrieve Wallet request retrieves the details for the shopper's wallet, including the credit card's last four digits, shipping and contact info, etc.

The Retrieve Wallet request is supported for MasterPass and Visa Checkout.

Wallet expiration

The wallet resource for a specific wallet ID can only be retrieved within 15 minutes from its creation.