Scenario: GetCustomerInformationMethodName: GetCustomerInfo()


Inputs: CPCustomerIDRequired, used to identify Counterpoint Customer


Logic: Search for customer in Counterpoint with matching CUST_NO


Returns these Counterpoint fields:

  • CUST_NO,
  • CATEG_COD
  • NAM
  • SHIP_VIA_COD
  • EMAIL_ADRS_1
  • PHONE_1
  • PHONE_2
  • FAX_1
  • TERMS_COD
  • PROF_ALPHA_3
  • PROF_ALPHA_1
  • PROF_COD_3
  • PROF_DAT_5


Use: https: //localhost: 50937/c5coreapi/?APIToken=123456&action=GetCustomerInfo&CPCustomerID=0033478197264


Returns:


 {
  "CustomerInfo": [{
    "CPCustomerID": "0033478197264",
    "CustomerGroup": "Wholesale",
    "B2B_Active": "yes",
    "Company": "Born to Quilt",
    "FullName": "Requena Veronique",
    "FirstName": "Requena",
    "LastName": "Veronique",
    "Email": "quiltforever@hotmail.com",
    "MarketingEmail": "quiltforever@hotmail.com",
    "AccountingEmail": "quiltforever@hotmail.com",
    "Phone": "0033478197264",
    "ExtraPhone": null,
    "Fax": "",
    "TermsCode": "CC",
    "PartnerStatus": null,
    "TaxID": "483 300 836 RCS Dijon",
    "Targeted": null,
    "LoyaltyLevel": "",
    "BuyingGroup": "PPP",
    "OwlCustomer": null,
    "StartDate": null,
    "BillAddress": {
      "Company": "Born to Quilt",
      "FullName": "Requena Veronique",
      "FirstName": "Requena",
      "LastName": "Veronique",
      "Address1": "Hameau Chazelle l\u0027Echo",
      "Address2": "",
      "Address3": null,
      "City": "Fontangy",
      "State": "",
      "Zipcode": "21390",
      "Country": "FRA",
      "Phone": "0033478197264",
      "Fax": "UPC 123",
      "ShipViaCode": "UPC"
    },
    "ShipAddress": {
      "Company": "Born to Quilt",
      "FullName": "Requena Veronique",
      "FirstName": "Requena",
      "LastName": "Veronique",
      "Address1": "Hameau Chazelle l\u0027Echo",
      "Address2": "",
      "Address3": null,
      "City": "Fontangy",
      "State": "",
      "Zipcode": "21390",
      "Country": "FRA",
      "Phone": "0033478197264",
      "Fax": "UPC 123",
      "ShipViaCode": "UPC"
    }
  }]
}Returns: {
  "Error": "Could not obtain customer info."
}