{"_id":"59a45d2dd12e81000f842f68","category":{"_id":"59a45d2bd12e81000f842ee9","version":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-10-19T18:31:30.299Z","from_sync":false,"order":6,"slug":"vaulted-shopper-service","title":"Vaulted Shoppers"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"59a45d2bd12e81000f842ee2","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-08-28T18:12:59.168Z","releaseDate":"2017-08-28T18:12:59.168Z","categories":["59a45d2bd12e81000f842ee3","59a45d2bd12e81000f842ee4","59a45d2bd12e81000f842ee5","59a45d2bd12e81000f842ee6","59a45d2bd12e81000f842ee7","59a45d2bd12e81000f842ee8","59a45d2bd12e81000f842ee9","59a45d2bd12e81000f842eea","59a45d2bd12e81000f842eeb","59a45d2bd12e81000f842eec","59a45d2bd12e81000f842eed","59a45d2bd12e81000f842eee","59a45d2bd12e81000f842eef","59a45d2bd12e81000f842ef0","59a45d2bd12e81000f842ef1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.22.1","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-27T20:28:32.932Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"language":"text","code":""}]},"settings":"57ee593a21ceb20e0061959e","auth":"optional","params":[{"_id":"56953ff3fe18811700c9bfcc","ref":"","in":"path","required":true,"desc":"vaultedShopperId received from BlueSnap","default":"","type":"string","name":"vaultedShopperId"}],"url":"/vaulted-shoppers/:vaultedShopperId"},"isReference":true,"order":16,"body":"The Retrieve Vaulted Shopper request retrieves all the saved details for the shopper associated with the `vaultedShopperId` you send in the request.\n\n<a class=\"btn btn-success\" href=\"#section-api-explorer\" role=\"button\">Try it in the API Explorer</a>\n\n###Request Content\nNo content is required in the request body. Enter the relevant IDs in the request URL, as follows:\n\n**Retrieve based on Vaulted Shopper ID**\nEnter the `vaultedShopperId` into the web service URL, in the format:\n`services/2/vaulted-shoppers/{vaultedShopperId}`\n\nFor example:\n`services/2/vaulted-shoppers/20769005`\n\n**Retrieve based on Merchant Shopper ID**\nEnter the `merchantShopperId` in the web service URL, in the format:\n`services/2/vaulted-shoppers/merchant/{merchantShopperId}`\n\nFor example:\n`services/2/vaulted-shoppers/merchant/6783334400`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `vaultedShopper` resource (see [vaultedShopper](doc:vaulted-shopper)).\n\n<hr>\n\n##Examples\n\n###Request Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/vaulted-shoppers/19549046 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve Vaulted Shopper with Vaulted Shopper ID\"\n    },\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/vaulted-shoppers/merchant/6783334400 \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve Vaulted Shopper with Merchant Shopper ID \"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"paymentSources\\\": {\\\"creditCardInfo\\\": [{\\n        \\\"billingContactInfo\\\": {\\n            \\\"firstName\\\": \\\"FirstName\\\",\\n            \\\"lastName\\\": \\\"LastName\\\"\\n        },\\n        \\\"processingInfo\\\": {\\n            \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n            \\\"cvvResponseCode\\\": \\\"ND\\\",\\n            \\\"avsResponseCodeName\\\": \\\"U\\\",\\n            \\\"avsResponseCodeZip\\\": \\\"U\\\"\\n        },\\n        \\\"creditCard\\\": {\\n            \\\"expirationYear\\\": 2020,\\n            \\\"cardLastFourDigits\\\": \\\"0026\\\",\\n            \\\"cardFingerprint\\\": \\\"a0f6043de947e8458a5f8b689e8349218d805d02caa622dcddc6b01d93e15ea36f1d2e1c0686623d04b9414eee39671f50fecde671fd2c80f0a6241098144a33\\\",\\n            \\\"cardSubType\\\": \\\"CREDIT\\\",\\n            \\\"cardType\\\": \\\"VISA\\\",\\n            \\\"expirationMonth\\\": 10\\n        }\\n    }]},\\n    \\\"firstName\\\": \\\"FirstName\\\",\\n    \\\"lastName\\\": \\\"LastName\\\",\\n    \\\"vaultedShopperId\\\": 19549046,\\n    \\\"lastPaymentInfo\\\": {\\n        \\\"paymentMethod\\\": \\\"CC\\\",\\n        \\\"creditCard\\\": {\\n            \\\"cardLastFourDigits\\\": \\\"0026\\\",\\n            \\\"cardType\\\": \\\"VISA\\\",\\n          \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n        }\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Retrieve Vaulted Shopper with Vaulted Shopper ID Response: 200 OK\"\n    },\n    {\n      \"code\": \"{\\n    \\\"paymentSources\\\": {\\\"creditCardInfo\\\": [{\\n        \\\"billingContactInfo\\\": {\\n            \\\"firstName\\\": \\\"Jane\\\",\\n            \\\"lastName\\\": \\\"Shopper\\\"\\n        },\\n        \\\"processingInfo\\\": {\\n            \\\"avsResponseCodeAddress\\\": \\\"U\\\",\\n            \\\"cvvResponseCode\\\": \\\"ND\\\",\\n            \\\"avsResponseCodeName\\\": \\\"U\\\",\\n            \\\"avsResponseCodeZip\\\": \\\"U\\\"\\n        },\\n        \\\"creditCard\\\": {\\n            \\\"expirationYear\\\": 2020,\\n            \\\"cardLastFourDigits\\\": \\\"0026\\\",\\n            \\\"cardFingerprint\\\": \\\"a0f6043de947e8458a5f8b689e8349218d805d02caa622dcddc6b01d93e15ea36f1d2e1c0686623d04b9414eee39671f50fecde671fd2c80f0a6241098144a33\\\",\\n            \\\"cardSubType\\\": \\\"CREDIT\\\",\\n            \\\"cardType\\\": \\\"VISA\\\",\\n            \\\"expirationMonth\\\": 10\\n        }\\n    }]},\\n    \\\"firstName\\\": \\\"Jane\\\",\\n    \\\"lastName\\\": \\\"Shopper\\\",\\n    \\\"vaultedShopperId\\\": 19549046,\\n    \\\"merchantShopperId\\\": \\\"6783334400\\\", \\n    \\\"lastPaymentInfo\\\": {\\n        \\\"paymentMethod\\\": \\\"CC\\\",\\n        \\\"creditCard\\\": {\\n            \\\"cardLastFourDigits\\\": \\\"0026\\\",\\n            \\\"cardType\\\": \\\"VISA\\\",\\n          \\t\\\"cardCategory\\\": \\\"CLASSIC\\\"\\n        }\\n    }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Retrieve Vaulted Shopper with Merchant Shopper ID Response: 200 OK \"\n    }\n  ]\n}\n[/block]\n<hr>\n\n##Example Description\nAbove is an example request. Note that no content is required in the request body. The retrieval is based on the vaulted shopper ID in the request URL.\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>\n\n<hr>\n##API Explorer\nTo test out a call, enter an existing vaulted shopper ID (e.g *20769005*) in the `vaultedShopperId` field. This will automatically insert the ID into the request URL. Leave the Body Content field empty.","excerpt":"","slug":"retrieve-vaulted-shopper","type":"get","title":"Retrieve Vaulted Shopper"}

getRetrieve Vaulted Shopper


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

vaultedShopperId:
required
string
vaultedShopperId received from BlueSnap

Documentation

The Retrieve Vaulted Shopper request retrieves all the saved details for the shopper associated with the vaultedShopperId you send in the request.

Try it in the API Explorer

Request Content

No content is required in the request body. Enter the relevant IDs in the request URL, as follows:

Retrieve based on Vaulted Shopper ID
Enter the vaultedShopperId into the web service URL, in the format:
services/2/vaulted-shoppers/{vaultedShopperId}

For example:
services/2/vaulted-shoppers/20769005

Retrieve based on Merchant Shopper ID
Enter the merchantShopperId in the web service URL, in the format:
services/2/vaulted-shoppers/merchant/{merchantShopperId}

For example:
services/2/vaulted-shoppers/merchant/6783334400

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved vaultedShopper resource (see vaultedShopper).


Examples

Request Example

curl -v -X GET https://sandbox.bluesnap.com/services/2/vaulted-shoppers/19549046 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
curl -v -X GET https://sandbox.bluesnap.com/services/2/vaulted-shoppers/merchant/6783334400 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

Response Example

{
    "paymentSources": {"creditCardInfo": [{
        "billingContactInfo": {
            "firstName": "FirstName",
            "lastName": "LastName"
        },
        "processingInfo": {
            "avsResponseCodeAddress": "U",
            "cvvResponseCode": "ND",
            "avsResponseCodeName": "U",
            "avsResponseCodeZip": "U"
        },
        "creditCard": {
            "expirationYear": 2020,
            "cardLastFourDigits": "0026",
            "cardFingerprint": "a0f6043de947e8458a5f8b689e8349218d805d02caa622dcddc6b01d93e15ea36f1d2e1c0686623d04b9414eee39671f50fecde671fd2c80f0a6241098144a33",
            "cardSubType": "CREDIT",
            "cardType": "VISA",
            "expirationMonth": 10
        }
    }]},
    "firstName": "FirstName",
    "lastName": "LastName",
    "vaultedShopperId": 19549046,
    "lastPaymentInfo": {
        "paymentMethod": "CC",
        "creditCard": {
            "cardLastFourDigits": "0026",
            "cardType": "VISA",
          	"cardCategory": "CLASSIC"
        }
    }
}
{
    "paymentSources": {"creditCardInfo": [{
        "billingContactInfo": {
            "firstName": "Jane",
            "lastName": "Shopper"
        },
        "processingInfo": {
            "avsResponseCodeAddress": "U",
            "cvvResponseCode": "ND",
            "avsResponseCodeName": "U",
            "avsResponseCodeZip": "U"
        },
        "creditCard": {
            "expirationYear": 2020,
            "cardLastFourDigits": "0026",
            "cardFingerprint": "a0f6043de947e8458a5f8b689e8349218d805d02caa622dcddc6b01d93e15ea36f1d2e1c0686623d04b9414eee39671f50fecde671fd2c80f0a6241098144a33",
            "cardSubType": "CREDIT",
            "cardType": "VISA",
            "expirationMonth": 10
        }
    }]},
    "firstName": "Jane",
    "lastName": "Shopper",
    "vaultedShopperId": 19549046,
    "merchantShopperId": "6783334400", 
    "lastPaymentInfo": {
        "paymentMethod": "CC",
        "creditCard": {
            "cardLastFourDigits": "0026",
            "cardType": "VISA",
          	"cardCategory": "CLASSIC"
        }
    }
}


Example Description

Above is an example request. Note that no content is required in the request body. The retrieval is based on the vaulted shopper ID in the request URL.


Back to Top


API Explorer

To test out a call, enter an existing vaulted shopper ID (e.g 20769005) in the vaultedShopperId field. This will automatically insert the ID into the request URL. Leave the Body Content field empty.


User Information

Try It Out


get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}