If you are looking for Overview, Connection Info or other modules, please click here: CP Extender

This article describes the available Customer methods.  


    /Customer/FromEmail

    /Customer/FromId



Controller: Customer

Method: Customer/FromEmail

Parameters: EmailAddress

Security: Bearer

Type: GET

URL: /Customer/FromEmail/{{EmailAddress}}

  

Response: HTTP Status 200

Response Body:

{
    "CustomerInfo": {
        "CPCustomerID": "100009",
        "Category": "RETAIL",
        "Company": "Red Rook",
        "FullName": "John Doe",
        "FirstName": "John",
        "LastName": "Doe",
        "Email": "jdoe@domain.com",
        "NewsletterSubscribe": "no",
        "BillAddress": {
            "Company": "Red Rook",
            "FullName": "Joseph Duke",
            "FirstName": "Joseph",
            "LastName": "Duke",
            "Address1": "1955 Vaughn Road",
            "Address2": "Suite 108",
            "City": "Kennesaw",
            "State": "GA",
            "ZipCode": "30144"
        },
        "ShipAddress": {
            "Company": "Red Rook",
            "FullName": "Joseph Duke",
            "FirstName": "Joseph",
            "LastName": "Duke",
            "Address1": "1955 Vaughn Road",
            "Address2": "Suite 108",
            "City": "Kennesaw",
            "State": "GA",
            "ZipCode": "30144"
        }
    }
}

Method: Customer/FromId

Parameters: CustomerId

Security: Bearer

Type: GET

URL: /Customer/FromId/{{CustomerId}}

 

Response: HTTP Status 200

Response Body:

{
    "CustomerInfo": {
        "CPCustomerID": "100009",
        "Category": "RETAIL",
        "Company": "Red Rook",
        "FullName": "John Doe",
        "FirstName": "John",
        "LastName": "Doe",
        "Email": "jdoe@domain.com",
        "NewsletterSubscribe": "no",
        "BillAddress": {
            "Company": "Red Rook",
            "FullName": "Joseph Duke",
            "FirstName": "Joseph",
            "LastName": "Duke",
            "Address1": "1955 Vaughn Road",
            "Address2": "Suite 108",
            "City": "Kennesaw",
            "State": "GA",
            "ZipCode": "30144"
        },
        "ShipAddress": {
            "Company": "Red Rook",
            "FullName": "Joseph Duke",
            "FirstName": "Joseph",
            "LastName": "Duke",
            "Address1": "1955 Vaughn Road",
            "Address2": "Suite 108",
            "City": "Kennesaw",
            "State": "GA",
            "ZipCode": "30144"
        }
    }
}