Find Customer By Name
  • 24 Jun 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Find Customer By Name

  • Dark
    Light
  • PDF

Article summary

Find Customer By Name

Type

  • Get


Example:

  • https://ws.cenpoint.com/cpwc.wc?custcode=bogusCustCode&token=bogusToken&appName=sweetAppName&prg=cpapi&proc=findCustByName&custName=inc


Base URL (includes authentication + end point)

  •  https://ws.cenpoint.com/cpwc.wc?custcode=<<Company Code>>&token=<<API Key>>&appName=<<YourAppName>>&prg=cpapi&proc=findCustByName


Parameters: 

  • NameTypeDescriptionExample
    custNameStringCustomer name to search for. Either full or partial name. Case insensitiveInc


Returns:

  • Array of customers that match the search criteria. Max of 50 results returned
    • {"VFPData":{"rows":[{"custid":"0000000007","custname":"Great Outdoors, Inc","email":"scott@cenpoint.com","phone":"8014786822","addr1_m":"13134 S 5800 W","addr2_m":"Suite 3","addr3_m":"Under the Stairs","city_m":"Herriman","state_m":"UT","zip_m":"84096"},{"custid":"0000000035","custname":"Mystery Inc.","email":"Scoobydoo.com","phone":"5555555555","addr1_m":"","addr2_m":"","addr3_m":"","city_m":"","state_m":"","zip_m":""}]}}
    • Returned Fields:
      NameTypeDescriptionExample
      custidString10 character id for the customer0000000007
      custnameStringCustomer nameGreat Outdoors, Inc
      emailStringGeneral email for customerexample@domain.com
      phoneStringGeneral phone number8014786822
      addr1_mStringMailing address line 113134 S. 5800 W.
      addr2_mStringMailing address line 2Suite 3
      addr3_mStringMailing address line 3Under the stairs
      city_mStringMailing address cityHerriman
      state_mStringMailing address state (2 character abbreviation)UT
      zip_mStringMailing address zip84096
  • OR error message
    • {"errorCode":"-4","errorDesc":"No results found"