Customers

A customer is who receives an invoice. Usage is reported against an agent for a customer, so both must exist before anything can be billed.

paygent customer create

$paygent customer create --name "Acme Corp" --external-id acme --email billing@acme.com
FlagDescription
--name <name>Company or person name. Required.
--external-id <id>Your own identifier, used when reporting usage.
--email <email>Where invoices are sent.
--address, --city, --state, --zip, --countryAppear on the invoice.
--phone, --websiteContact details.
--gstin, --place-of-supplyIndian tax reporting. Ignored elsewhere.

paygent customer list

$paygent customer list
$paygent customer list --search acme

paygent customer get

$paygent customer get acme

paygent customer update

$paygent customer update acme --email ap@acme.com

paygent customer ensure

Create a customer only if it does not already exist. Idempotent, so it is safe on every request or deploy.

$paygent customer ensure --external-id acme --name "Acme Corp"

paygent customer delete

$paygent customer delete acme --force