Skip to main content

Query for Customers

Search for customers using a query:

import sys
import chargeover
import pprint


''' AVAILABLE QUERY PARAMETERS
customer_id
bill_state
ship_state
bill_country
ship_country
external_key
token
company
superuser_id
superuser_email
'''

# For authentication, fill in these values from your ChargeOver
# server information under "Configuraion->API and Webhooks"
endpoint =
username =
password =

# Set this to True to use "COv1 Signature" authorization
key_auth = False

co = chargeover.ChargeOver(
endpoint,
username,
password,
key_auth = key_auth)

# Find a customer by query
where {'name': 'ron'}
customer = co.find("customer", where)
print "All customers matching search (in list)"
pprint.pprint(customer)