Customers

Create and manage customers shared across products.

View as Markdown

Customers store a buyer's identity and default payment details. A single customer record is shared across payments, subscriptions, invoices, and loyalty — attach a payment method once and reference the customer everywhere.

Illustrative content. Hand-authored to demonstrate the Standard/Advanced pattern; the production page will be generated from the VINR OpenAPI spec (roadmap item #1). Field names are representative.

The customer objectAsk

idstring

Unique identifier for the customer, e.g. cust_8aZ2.

emailstring

The customer's email address.

namestring

The customer's full name.

phonestring

The customer's phone number in E.164 format, e.g. +14155552671.

default_payment_methodobjectExpandable

The default payment method for this customer. Expand to retrieve the full object.

createdinteger

Unix timestamp when the customer was created.

Create a customerAsk

Pass an email and optional name and phone. VINR returns a customer object you can attach payment methods to and reference on future payments and subscriptions.

Retrieve a customerAsk

Update a customerAsk

Send any subset of fields — only the fields you pass are changed.

Delete a customerAsk

Deletes the customer and unlinks them from future charges. Active subscriptions must be canceled first.

List customersAsk

Returns a paginated list of customers. Filter by email to look up a specific buyer.

customer.created, customer.updated, customer.deleted. See Events.

Was this page helpful?