{"_id":"5bedbcf19b49e8004462d195","category":{"_id":"5bedbcf09b49e8004462d0d3","version":"5bedbcf19b49e8004462d199","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-10-19T18:31:30.299Z","from_sync":false,"order":3,"slug":"vaulted-shopper-service","title":"Shoppers"},"parentDoc":null,"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","version":{"_id":"5bedbcf19b49e8004462d199","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"5bcf3922e8455d049c357ed7","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z","categories":["5bedbcf09b49e8004462d0d0","5bedbcf09b49e8004462d0d1","5bedbcf09b49e8004462d0d2","5bedbcf09b49e8004462d0d3","5bedbcf09b49e8004462d0d4","5bedbcf09b49e8004462d0d5","5bedbcf09b49e8004462d0d6","5bedbcf09b49e8004462d0d7","5bedbcf09b49e8004462d0d8","5bedbcf09b49e8004462d0d9","5bedbcf09b49e8004462d0da"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.28 Release","version_clean":"8976.0.0-Extended","version":"8976-Extended"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-27T20:28:32.932Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"language":"text","code":""}]},"settings":"","examples":{"codes":[]},"auth":"optional","params":[],"url":""},"isReference":true,"order":2,"body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/shoppers/:shopper-id|:seller-shopper-id,:seller-id</span>\n\n<hr>\n\n##Documentation\nThe Retrieve Shopper request enables you to retrieve details about a saved shopper, including their contact info, payment info, and more.\n\n###Request Content\n**Retrieve based on shopper ID in BlueSnap**\nEnter the `shopper-id` into the web service URL, in the format:\n`services/2/shoppers/{shopper-id}`\n\nFor example:\n`services/2/shoppers/2345678`\n\n\n**Retrieve based on seller shopper ID**\nEnter the unique ID that you assigned to the shopper (the `seller-shopper-id`), **and** your seller ID in BlueSnap (`seller-id`) into the web service URL, in the format:\n`services/2/shoppers/{seller-shopper-id},{seller-id}`\n\nFor example:\n`services/2/shoppers/456789123,397248`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `shopper` resource (see [shopper](doc:shopper)).\nFor details about possible errors, see: [General Errors](doc:general-errors) and [Shopper Errors](doc:shopper-errors).\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/shoppers/19575994 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve Shopper Request: by shopper ID in BlueSnap\"\n    },\n    {\n      \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/shoppers/1234abcd,388632 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"by seller shopper ID\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<shopper xmlns=\\\"http://ws.plimus.com\\\">\\n    <shopper-info>\\n      <shopper-id>19575994</shopper-id>\\n      <seller-shopper-id>1234abcd</seller-shopper-id>\\n        <shopper-contact-info>\\n            <title>Mr</title>\\n            <first-name>ECP Shopper first name</first-name>\\n            <last-name>ECP Shopper last name</last-name>\\n            <email>email:::at:::email.com</email>\\n            <address1>123 Oxford</address1>\\n            <city>London</city>\\n            <state>NY</state>\\n            <zip>54321</zip>\\n            <country>us</country>\\n            <phone>1800808080</phone>\\n            <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info/>\\n        <invoice-contacts-info>\\n            <invoice-contact-info>\\n                <default>true</default>\\n                <title>Mr</title>\\n                <first-name>ECP Shopper first name</first-name>\\n               <last-name>ECP Shopper last name</last-name>\\n                <email>email@email.com</email>\\n                <address1>123 Oxford</address1>\\n                <city>London</city>\\n                <state>NY</state>\\n                <zip>54321</zip>\\n                <country>us</country>\\n                <phone>1800808080</phone>\\n                <fax>1800808080</fax>\\n            </invoice-contact-info>\\n        </invoice-contacts-info>\\n        <payment-info>\\n            <credit-cards-info/>\\n            <ecps-info>\\n                <ecp-info>\\n                    <billing-contact-info>\\n                        <first-name>first</first-name>\\n                        <last-name>last name</last-name>\\n                        <address1>123 Oxford</address1>\\n                        <city>ny</city>\\n                        <state>NY</state>\\n                        <zip>90210</zip>\\n                        <country>us</country>\\n                    </billing-contact-info>\\n                    <ecp>\\n                        <account-type>CONSUMER_CHECKING</account-type>\\n                        <public-account-number>99993</public-account-number>\\n                        <public-routing-number>75151</public-routing-number>\\n                    </ecp>\\n                </ecp-info>\\n                <ecp-info>\\n                    <billing-contact-info>\\n                        <first-name>ECP Billing first name</first-name>\\n                        <last-name>ECP Billing last name</last-name>\\n                        <address1>123 Oxford</address1>\\n                        <city>New York</city>\\n                        <state>NY</state>\\n                        <zip>54321</zip>\\n                        <country>us</country>\\n                        <company-name>ECP Company</company-name>\\n                    </billing-contact-info>\\n                    <ecp>\\n                        <account-type>CORPORATE_CHECKING</account-type>\\n                        <public-account-number>99992</public-account-number>\\n                        <public-routing-number>75150</public-routing-number>\\n                    </ecp>\\n                </ecp-info>\\n            </ecps-info>\\n            <sepa-direct-debits-info/>\\n            <balance/>\\n        </payment-info>\\n        <store-id>8540</store-id>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n        <permitted-future-charges>false</permitted-future-charges>\\n    </shopper-info>\\n</shopper>\\n\",\n      \"language\": \"xml\",\n      \"name\": \"Retrieve Shopper Response: by shopper ID in BlueSnap\"\n    },\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<shopper xmlns=\\\"http://ws.plimus.com\\\">\\n    <shopper-info>\\n       <shopper-id>19575994</shopper-id>\\n      <seller-shopper-id>1234abcd</seller-shopper-id>\\n        <shopper-contact-info>\\n            <title>Mr</title>\\n            <first-name>ECP Shopper first name</first-name>\\n            <last-name>ECP Shopper last name</last-name>\\n            <email>email@email.com</email>\\n            <address1>123 Oxford</address1>\\n            <city>London</city>\\n            <state>NY</state>\\n            <zip>54321</zip>\\n            <country>us</country>\\n            <phone>1800808080</phone>\\n            <fax>1800808080</fax>\\n        </shopper-contact-info>\\n        <shipping-contact-info/>\\n        <invoice-contacts-info>\\n            <invoice-contact-info>\\n                <default>true</default>\\n                <title>Mr</title>\\n                <first-name>ECP Shopper first name</first-name>\\n               <last-name>ECP Shopper last name</last-name>\\n                <email>email@email.com</email>\\n                <address1>123 Oxford</address1>\\n                <city>London</city>\\n                <state>NY</state>\\n                <zip>54321</zip>\\n                <country>us</country>\\n                <phone>1800808080</phone>\\n                <fax>1800808080</fax>\\n            </invoice-contact-info>\\n        </invoice-contacts-info>\\n        <payment-info>\\n            <credit-cards-info/>\\n            <ecps-info>\\n                <ecp-info>\\n                    <billing-contact-info>\\n                        <first-name>first</first-name>\\n                        <last-name>last name</last-name>\\n                        <address1>123 Oxford</address1>\\n                        <city>ny</city>\\n                        <state>NY</state>\\n                        <zip>90210</zip>\\n                        <country>us</country>\\n                    </billing-contact-info>\\n                    <ecp>\\n                        <account-type>CONSUMER_CHECKING</account-type>\\n                        <public-account-number>99993</public-account-number>\\n                        <public-routing-number>75151</public-routing-number>\\n                    </ecp>\\n                </ecp-info>\\n                <ecp-info>\\n                    <billing-contact-info>\\n                        <first-name>ECP Billing first name</first-name>\\n                        <last-name>ECP Billing last name</last-name>\\n                        <address1>123 Oxford</address1>\\n                        <city>New York</city>\\n                        <state>NY</state>\\n                        <zip>54321</zip>\\n                        <country>us</country>\\n                        <company-name>ECP Company</company-name>\\n                    </billing-contact-info>\\n                    <ecp>\\n                        <account-type>CORPORATE_CHECKING</account-type>\\n                        <public-account-number>99992</public-account-number>\\n                        <public-routing-number>75150</public-routing-number>\\n                    </ecp>\\n                </ecp-info>\\n            </ecps-info>\\n            <sepa-direct-debits-info/>\\n            <balance/>\\n        </payment-info>\\n        <store-id>8540</store-id>\\n        <shopper-currency>USD</shopper-currency>\\n        <locale>en</locale>\\n        <permitted-future-charges>false</permitted-future-charges>\\n    </shopper-info>\\n</shopper>\",\n      \"language\": \"xml\",\n      \"name\": \"by seller shopper ID\"\n    }\n  ]\n}\n[/block]\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","excerpt":"URL `services/2/shoppers/{shopper-id}`","slug":"retrieve-vaulted-shopper","type":"endpoint","title":"Retrieve Shopper"}

getRetrieve Shopper

URL `services/2/shoppers/{shopper-id}`

Definition

https://sandbox.bluesnap.com/services/2/shoppers/:shopper-id|:seller-shopper-id,:seller-id


Documentation

The Retrieve Shopper request enables you to retrieve details about a saved shopper, including their contact info, payment info, and more.

Request Content

Retrieve based on shopper ID in BlueSnap
Enter the shopper-id into the web service URL, in the format:
services/2/shoppers/{shopper-id}

For example:
services/2/shoppers/2345678

Retrieve based on seller shopper ID
Enter the unique ID that you assigned to the shopper (the seller-shopper-id), and your seller ID in BlueSnap (seller-id) into the web service URL, in the format:
services/2/shoppers/{seller-shopper-id},{seller-id}

For example:
services/2/shoppers/456789123,397248

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the retrieved shopper resource (see shopper).
For details about possible errors, see: General Errors and Shopper Errors.


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/shoppers/19575994 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
curl -v -X GET https://sandbox.bluesnap.com/services/2/shoppers/1234abcd,388632 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='

Response Examples

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shopper xmlns="http://ws.plimus.com">
    <shopper-info>
      <shopper-id>19575994</shopper-id>
      <seller-shopper-id>1234abcd</seller-shopper-id>
        <shopper-contact-info>
            <title>Mr</title>
            <first-name>ECP Shopper first name</first-name>
            <last-name>ECP Shopper last name</last-name>
            <email>email@email.com</email>
            <address1>123 Oxford</address1>
            <city>London</city>
            <state>NY</state>
            <zip>54321</zip>
            <country>us</country>
            <phone>1800808080</phone>
            <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info/>
        <invoice-contacts-info>
            <invoice-contact-info>
                <default>true</default>
                <title>Mr</title>
                <first-name>ECP Shopper first name</first-name>
               <last-name>ECP Shopper last name</last-name>
                <email>email@email.com</email>
                <address1>123 Oxford</address1>
                <city>London</city>
                <state>NY</state>
                <zip>54321</zip>
                <country>us</country>
                <phone>1800808080</phone>
                <fax>1800808080</fax>
            </invoice-contact-info>
        </invoice-contacts-info>
        <payment-info>
            <credit-cards-info/>
            <ecps-info>
                <ecp-info>
                    <billing-contact-info>
                        <first-name>first</first-name>
                        <last-name>last name</last-name>
                        <address1>123 Oxford</address1>
                        <city>ny</city>
                        <state>NY</state>
                        <zip>90210</zip>
                        <country>us</country>
                    </billing-contact-info>
                    <ecp>
                        <account-type>CONSUMER_CHECKING</account-type>
                        <public-account-number>99993</public-account-number>
                        <public-routing-number>75151</public-routing-number>
                    </ecp>
                </ecp-info>
                <ecp-info>
                    <billing-contact-info>
                        <first-name>ECP Billing first name</first-name>
                        <last-name>ECP Billing last name</last-name>
                        <address1>123 Oxford</address1>
                        <city>New York</city>
                        <state>NY</state>
                        <zip>54321</zip>
                        <country>us</country>
                        <company-name>ECP Company</company-name>
                    </billing-contact-info>
                    <ecp>
                        <account-type>CORPORATE_CHECKING</account-type>
                        <public-account-number>99992</public-account-number>
                        <public-routing-number>75150</public-routing-number>
                    </ecp>
                </ecp-info>
            </ecps-info>
            <sepa-direct-debits-info/>
            <balance/>
        </payment-info>
        <store-id>8540</store-id>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
        <permitted-future-charges>false</permitted-future-charges>
    </shopper-info>
</shopper>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<shopper xmlns="http://ws.plimus.com">
    <shopper-info>
       <shopper-id>19575994</shopper-id>
      <seller-shopper-id>1234abcd</seller-shopper-id>
        <shopper-contact-info>
            <title>Mr</title>
            <first-name>ECP Shopper first name</first-name>
            <last-name>ECP Shopper last name</last-name>
            <email>email@email.com</email>
            <address1>123 Oxford</address1>
            <city>London</city>
            <state>NY</state>
            <zip>54321</zip>
            <country>us</country>
            <phone>1800808080</phone>
            <fax>1800808080</fax>
        </shopper-contact-info>
        <shipping-contact-info/>
        <invoice-contacts-info>
            <invoice-contact-info>
                <default>true</default>
                <title>Mr</title>
                <first-name>ECP Shopper first name</first-name>
               <last-name>ECP Shopper last name</last-name>
                <email>email@email.com</email>
                <address1>123 Oxford</address1>
                <city>London</city>
                <state>NY</state>
                <zip>54321</zip>
                <country>us</country>
                <phone>1800808080</phone>
                <fax>1800808080</fax>
            </invoice-contact-info>
        </invoice-contacts-info>
        <payment-info>
            <credit-cards-info/>
            <ecps-info>
                <ecp-info>
                    <billing-contact-info>
                        <first-name>first</first-name>
                        <last-name>last name</last-name>
                        <address1>123 Oxford</address1>
                        <city>ny</city>
                        <state>NY</state>
                        <zip>90210</zip>
                        <country>us</country>
                    </billing-contact-info>
                    <ecp>
                        <account-type>CONSUMER_CHECKING</account-type>
                        <public-account-number>99993</public-account-number>
                        <public-routing-number>75151</public-routing-number>
                    </ecp>
                </ecp-info>
                <ecp-info>
                    <billing-contact-info>
                        <first-name>ECP Billing first name</first-name>
                        <last-name>ECP Billing last name</last-name>
                        <address1>123 Oxford</address1>
                        <city>New York</city>
                        <state>NY</state>
                        <zip>54321</zip>
                        <country>us</country>
                        <company-name>ECP Company</company-name>
                    </billing-contact-info>
                    <ecp>
                        <account-type>CORPORATE_CHECKING</account-type>
                        <public-account-number>99992</public-account-number>
                        <public-routing-number>75150</public-routing-number>
                    </ecp>
                </ecp-info>
            </ecps-info>
            <sepa-direct-debits-info/>
            <balance/>
        </payment-info>
        <store-id>8540</store-id>
        <shopper-currency>USD</shopper-currency>
        <locale>en</locale>
        <permitted-future-charges>false</permitted-future-charges>
    </shopper-info>
</shopper>