modempay.customers.create()
method, which allows you to add key information like the customer’s name, email, phone number, and an optional starting balance. The distinct
option, when set to true
, checks for existing customers with matching fields (e.g., email) to avoid duplicate entries. If distinct
is omitted or set to false
, a new customer entry will be created without duplicate checks.
Sample Request:
modempay.customers.retrieve(customerId)
. Replace customerId
with the customer’s unique ID.
Sample Request:
modempay.customers.update(customerId, params)
. Specify the customer ID and the fields to update.
Sample Request:
modempay.customers.delete(customerId)
. This action is irreversible.
Sample Request:
modempay.customers.list()
. This returns a list of customers, with pagination options if there are many entries.
Sample Request: