Follow

GET /customers/{customerId}

Get stored contact information for a customer.

Example Response

{
      "customerId": 13437, 
      "uri": "https://api.payjunction.com/customers/13437", 
      "firstName": "John", 
      "lastName": "Keats", 
      "companyName": "PayJunction", 
      "email": "jkeats@payjunction.com", 
      "phone": "800-601-0230", 
      "phone2": "800-771-3821", 
      "jobTitle": "Poet", 
      "identifier": "58", 
      "website": "https://www.payjunction.com", 
      "custom1": "custom-field", 
      "created": "2012-02-17T18:12:17Z", 
      "lastModified": "2012-02-17T18:12:17Z", 
      "addresses": [
            {
                  "addressId": 12735, 
                  "uri": "https://api.payjunction.com/customers/13437/addresses/12735", 
                  "address": "Piazza di Spagna 26", 
                  "city": "Roma", 
                  "state": "Provincia di Roma", 
                  "country": "Italy", 
                  "zip": "00187", 
                  "created": "2012-02-17T18:12:17Z", 
                  "lastModified": "2012-02-17T18:12:17Z"
            }, 
            {
                  "addressId": 12737, 
                  "uri": "https://api.payjunction.com/customers/13437/addresses/12737", 
                  "address": "1903 State Street", 
                  "city": "Santa Barbara", 
                  "state": "California", 
                  "country": "USA", 
                  "zip": "93101", 
                  "created": "2012-02-17T18:12:18Z", 
                  "lastModified": "2012-02-17T18:12:18Z"
            }
      ], 
      "defaultAddress": {
            "id": 12737, 
            "uri": "https://api.payjunction.com/customers/13437/addresses/12737"
      }, 
      "vaults": [
            {
                  "vaultId": 12541, 
                  "uri": "https://api.payjunction.com/customers/13437/vaults/12541", 
                  "type": "ACH", 
                  "accountType": "CHECKING", 
                  "lastFour": "5789", 
                  "achRoutingNumber": "104000016", 
                  "achType": "PPD", 
                  "created": "2012-02-17T18:12:18Z", 
                  "lastModified": "2012-02-17T18:12:18Z", 
                  "address": {
                        "addressId": 12737, 
                        "uri": "https://api.payjunction.com/customers/13437/addresses/12737", 
                        "address": "1903 State Street", 
                        "city": "Santa Barbara", 
                        "state": "California", 
                        "country": "USA", 
                        "zip": "93101", 
                        "created": "2012-02-17T18:12:18Z", 
                        "lastModified": "2012-02-17T18:12:18Z"
                  }
            }, 
            {
                  "vaultId": 12543, 
                  "uri": "https://api.payjunction.com/customers/13437/vaults/12543", 
                  "type": "CARD", 
                  "accountType": "VISA", 
                  "lastFour": "1111", 
                  "cardExpMonth": 11, 
                  "cardExpYear": 2020, 
                  "created": "2012-02-17T18:12:18Z", 
                  "lastModified": "2012-02-17T18:12:18Z", 
                  "address": {
                        "addressId": 12737, 
                        "uri": "https://api.payjunction.com/customers/13437/addresses/12737", 
                        "address": "1903 State Street", 
                        "city": "Santa Barbara", 
                        "state": "California", 
                        "country": "USA", 
                        "zip": "93101", 
                        "created": "2012-02-17T18:12:18Z", 
                        "lastModified": "2012-02-17T18:12:18Z"
                  }
            }
      ]
}