Skip to main content

Query for Users

Search for users using a query:

import sys
import chargeover
import pprint

# 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)

id = 37

# Find a customer by id
cust = co.find_by_id("customer", id)
print "Customer from specified id"
pprint.pprint(cust)


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