{"_id":"59dfa5858b51880010b74af0","category":{"_id":"59dfa5828b51880010b74abf","version":"59dfa5828b51880010b74ab6","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-11-23T19:23:42.327Z","from_sync":false,"order":8,"slug":"marketplace","title":"Marketplace"},"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","parentDoc":null,"version":{"_id":"59dfa5828b51880010b74ab6","project":"57336fd5a6a9c40e00e13a0b","__v":1,"createdAt":"2017-10-12T17:25:22.850Z","releaseDate":"2017-10-12T17:25:22.850Z","categories":["59dfa5828b51880010b74ab7","59dfa5828b51880010b74ab8","59dfa5828b51880010b74ab9","59dfa5828b51880010b74aba","59dfa5828b51880010b74abb","59dfa5828b51880010b74abc","59dfa5828b51880010b74abd","59dfa5828b51880010b74abe","59dfa5828b51880010b74abf","59dfa5828b51880010b74ac0","59dfa5828b51880010b74ac1","59dfa5828b51880010b74ac2","59dfa5828b51880010b74ac3","59dfa5828b51880010b74ac4","59dfa5828b51880010b74ac5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.23 Release","version_clean":"8976.0.0-JSON","version":"8976-JSON"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-11-23T19:25:37.026Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[]},"settings":"57ee593a21ceb20e0061959e","examples":{"codes":[]},"auth":"optional","params":[],"url":"/vendors/"},"isReference":false,"order":4,"body":"[block:html]\n{\n  \"html\": \"<script>\\n  // hide body textbox of API Explorer\\n $(document).ready(function() {\\n  $(\\\"textarea[placeholder='Body Content']\\\").hide();  \\n }); \\n</script>\"\n}\n[/block]\nThe Retrieve All Vendors request retrieves all your vendors and their saved details.\n\n<a class=\"btn btn-success\" href=\"#section-api-explorer\" role=\"button\">Try it in the API Explorer</a>\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/vendors/\\n-H 'Content-Type: application/json' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n      \"language\": \"curl\",\n      \"name\": \"Retrieve All Vendors Request\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"vendor\\\": [\\n        {\\n            \\\"vendorId\\\": 514151,\\n            \\\"email\\\": \\\"vendor&#x40;bluesnap.com\\\",\\n            \\\"name\\\": \\\"Important Vendor\\\",\\n            \\\"firstName\\\": \\\"Joe\\\",\\n            \\\"lastName\\\": \\\"Smith\\\",\\n            \\\"address\\\": \\\"123 Main Street\\\",\\n            \\\"city\\\": \\\"Juneau\\\",\\n            \\\"zip\\\": \\\"4640802\\\",\\n            \\\"country\\\": \\\"us\\\",\\n            \\\"phone\\\": \\\"0549766778\\\",\\n            \\\"state\\\": \\\"MA\\\",\\n            \\\"defaultPayoutCurrency\\\": \\\"USD\\\",\\n            \\\"frequency\\\": \\\"DAILY\\\",\\n            \\\"delay\\\": 3,\\n            \\\"vendorPrincipal\\\": {\\n                \\\"firstName\\\": \\\"Joe\\\",\\n                \\\"lastName\\\": \\\"Smith\\\",\\n                \\\"address\\\": \\\"123 Main Street\\\",\\n                \\\"city\\\": \\\"Juneau\\\",\\n                \\\"zip\\\": \\\"12345\\\",\\n                \\\"country\\\": \\\"US\\\",\\n                \\\"dob\\\": \\\"28-09-9999\\\",\\n                \\\"personalIdentificationNumber\\\": 1234,\\n              \\t\\\"driverLicenseNumber\\\": \\\"561196411\\\",\\n                \\\"email\\\": \\\"principal.name&#x40;vendor.com\\\"\\n            },\\n            \\\"payoutInfo\\\": [\\n                {\\n                    \\\"payoutType\\\": \\\"ACH\\\",\\n                    \\\"baseCurrency\\\": \\\"USD\\\",\\n                    \\\"nameOnAccount\\\": \\\"vendor\\\",\\n                    \\\"bankAccountClass\\\": \\\"PERSONAL\\\",\\n                    \\\"bankAccountType\\\": \\\"CHECKING\\\",\\n                    \\\"bankName\\\": \\\"Leumi\\\",\\n                    \\\"bankId\\\": \\\"12445\\\",\\n                    \\\"country\\\": \\\"us\\\",\\n                    \\\"city\\\": \\\"Juneau\\\",\\n                    \\\"address\\\": \\\"1 bank address\\\",\\n                    \\\"state\\\": \\\"MA\\\",\\n                    \\\"zip\\\": \\\"12345\\\",\\n                    \\\"bankAccountId\\\": \\\"36628822\\\",\\n                    \\\"intermediaryBankInfo\\\": {}\\n                }\\n            ],\\n            \\\"vendorAgreement\\\": {\\n                \\\"commissionPercent\\\": 30,\\n                \\\"accountStatus\\\": \\\"ACTIVE\\\",\\n                \\\"recurringCommission\\\": \\\"Y\\\"\\n            }, \\n          \\\"verification\\\": {\\n            \\\"payoutStatus\\\": \\\"Approved\\\",\\n            \\\"processingStatus\\\": \\\"Active\\\",\\n          }\\n        },\\n        {\\n            \\\"vendorId\\\": 514147,\\n            \\\"email\\\": \\\"vendor&#x40;bluesnap.com\\\",\\n            \\\"name\\\": \\\"Important Vendor\\\",\\n            \\\"firstName\\\": \\\"Joe\\\",\\n            \\\"lastName\\\": \\\"Smith\\\",\\n            \\\"address\\\": \\\"123 Main Street\\\",\\n            \\\"city\\\": \\\"Juneau\\\",\\n            \\\"zip\\\": \\\"4640802\\\",\\n            \\\"country\\\": \\\"us\\\",\\n            \\\"phone\\\": \\\"0549766778\\\",\\n            \\\"state\\\": \\\"MA\\\",\\n            \\\"defaultPayoutCurrency\\\": \\\"USD\\\",\\n            \\\"frequency\\\": \\\"DAILY\\\",\\n            \\\"delay\\\": 3,\\n            \\\"vendorPrincipal\\\": {\\n                \\\"firstName\\\": \\\"Joe\\\",\\n                \\\"lastName\\\": \\\"Smith\\\",\\n                \\\"address\\\": \\\"123 Main Street\\\",\\n                \\\"city\\\": \\\"Juneau\\\",\\n                \\\"zip\\\": \\\"12345\\\",\\n                \\\"country\\\": \\\"US\\\",\\n                \\\"dob\\\": \\\"28-09-9999\\\",\\n                \\\"personalIdentificationNumber\\\": 1234,\\n              \\t\\\"driverLicenseNumber\\\": \\\"561196411\\\",\\n                \\\"email\\\": \\\"principal.name&#x40;vendor.com\\\"\\n            },\\n            \\\"payoutInfo\\\": [\\n                {\\n                    \\\"payoutType\\\": \\\"ACH\\\",\\n                    \\\"baseCurrency\\\": \\\"USD\\\",\\n                    \\\"nameOnAccount\\\": \\\"vendor\\\",\\n                    \\\"bankAccountClass\\\": \\\"PERSONAL\\\",\\n                    \\\"bankAccountType\\\": \\\"CHECKING\\\",\\n                    \\\"bankName\\\": \\\"Leumi\\\",\\n                    \\\"bankId\\\": \\\"12445\\\",\\n                    \\\"country\\\": \\\"us\\\",\\n                    \\\"city\\\": \\\"Juneau\\\",\\n                    \\\"address\\\": \\\"1 bank address\\\",\\n                    \\\"state\\\": \\\"MA\\\",\\n                    \\\"zip\\\": \\\"12345\\\",\\n                    \\\"bankAccountId\\\": \\\"36628822\\\",\\n                    \\\"intermediaryBankInfo\\\": {}\\n                }\\n            ],\\n            \\\"vendorAgreement\\\": {\\n                \\\"commissionPercent\\\": 30,\\n                \\\"accountStatus\\\": \\\"ACTIVE\\\",\\n                \\\"recurringCommission\\\": \\\"Y\\\"\\n            }, \\n           \\\"verification\\\": {\\n              \\\"payoutStatus\\\": \\\"Approved\\\",\\n              \\\"processingStatus\\\": \\\"Active\\\",\\n          }          \\n        }\\n      ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Retrieve All Vendors Response\"\n    }\n  ]\n}\n[/block]\n<hr>\n\n##API Explorer\nTo test out a Retrieve All Vendors call, click the **Try it!** button below.","excerpt":"","slug":"retrieve-all-vendors","type":"get","title":"Retrieve All Vendors"}

getRetrieve All Vendors


Definition

{{ api_url }}{{ page_api_url }}

Documentation

The Retrieve All Vendors request retrieves all your vendors and their saved details.

Try it in the API Explorer


Examples

Request Examples

curl -v -X GET https://sandbox.bluesnap.com/services/2/vendors/
-H 'Content-Type: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='

Response Examples

{
    "vendor": [
        {
            "vendorId": 514151,
            "email": "vendor&#x40;bluesnap.com",
            "name": "Important Vendor",
            "firstName": "Joe",
            "lastName": "Smith",
            "address": "123 Main Street",
            "city": "Juneau",
            "zip": "4640802",
            "country": "us",
            "phone": "0549766778",
            "state": "MA",
            "defaultPayoutCurrency": "USD",
            "frequency": "DAILY",
            "delay": 3,
            "vendorPrincipal": {
                "firstName": "Joe",
                "lastName": "Smith",
                "address": "123 Main Street",
                "city": "Juneau",
                "zip": "12345",
                "country": "US",
                "dob": "28-09-9999",
                "personalIdentificationNumber": 1234,
              	"driverLicenseNumber": "561196411",
                "email": "principal.name&#x40;vendor.com"
            },
            "payoutInfo": [
                {
                    "payoutType": "ACH",
                    "baseCurrency": "USD",
                    "nameOnAccount": "vendor",
                    "bankAccountClass": "PERSONAL",
                    "bankAccountType": "CHECKING",
                    "bankName": "Leumi",
                    "bankId": "12445",
                    "country": "us",
                    "city": "Juneau",
                    "address": "1 bank address",
                    "state": "MA",
                    "zip": "12345",
                    "bankAccountId": "36628822",
                    "intermediaryBankInfo": {}
                }
            ],
            "vendorAgreement": {
                "commissionPercent": 30,
                "accountStatus": "ACTIVE",
                "recurringCommission": "Y"
            }, 
          "verification": {
            "payoutStatus": "Approved",
            "processingStatus": "Active",
          }
        },
        {
            "vendorId": 514147,
            "email": "vendor&#x40;bluesnap.com",
            "name": "Important Vendor",
            "firstName": "Joe",
            "lastName": "Smith",
            "address": "123 Main Street",
            "city": "Juneau",
            "zip": "4640802",
            "country": "us",
            "phone": "0549766778",
            "state": "MA",
            "defaultPayoutCurrency": "USD",
            "frequency": "DAILY",
            "delay": 3,
            "vendorPrincipal": {
                "firstName": "Joe",
                "lastName": "Smith",
                "address": "123 Main Street",
                "city": "Juneau",
                "zip": "12345",
                "country": "US",
                "dob": "28-09-9999",
                "personalIdentificationNumber": 1234,
              	"driverLicenseNumber": "561196411",
                "email": "principal.name&#x40;vendor.com"
            },
            "payoutInfo": [
                {
                    "payoutType": "ACH",
                    "baseCurrency": "USD",
                    "nameOnAccount": "vendor",
                    "bankAccountClass": "PERSONAL",
                    "bankAccountType": "CHECKING",
                    "bankName": "Leumi",
                    "bankId": "12445",
                    "country": "us",
                    "city": "Juneau",
                    "address": "1 bank address",
                    "state": "MA",
                    "zip": "12345",
                    "bankAccountId": "36628822",
                    "intermediaryBankInfo": {}
                }
            ],
            "vendorAgreement": {
                "commissionPercent": 30,
                "accountStatus": "ACTIVE",
                "recurringCommission": "Y"
            }, 
           "verification": {
              "payoutStatus": "Approved",
              "processingStatus": "Active",
          }          
        }
      ]
}


API Explorer

To test out a Retrieve All Vendors call, click the Try it! button below.


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 }}