Skip to main content
API Customer

Available customer methods for CP Extender

Updated this week

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"

}

}

}

Did this answer your question?