Look up customers by ID or phone number, check balances, manage saved credit cards, and charge customers' cards.
GET All Customers.
Retrieve a paginated list of customers. Pass lastMod for incremental syncing — records with a last-modified timestamp at or after the supplied value are returned. A cursor is good for at least 1 minute and can expire any time after that; include all original query parameters alongside cursor on each page. An expired cursor returns 409 — restart from the first page by omitting cursor.
Requires the all access level — customer:get:own cannot list every customer in the account.
query Parameters
lastModOptional filter to get customers updated since this date and time.
takeThe maximum number of customers to return (default: 20, max: 100).
cursorThe cursor for pagination.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET All Customers. › Responses
Returns the list of customers.
Gets the array of results.
hasMoreGets a value indicating whether there are more results available.
cursorOpaque pagination cursor from the previous page. Omit on the first request.
totalGets or sets the total number of results available. Only included on the first page (when no cursor is provided).
Get customer credit cards.
Returns masked card numbers, expiration, and issuer — never full card numbers.
path Parameters
customerIdThe customer ID.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Get customer credit cards. › Responses
Cards retrieved successfully.
idUnique identifier for the credit card.
maskedMasked credit card number.
expExpiration date in MMYY format.
nameName on the credit card.
zipCodeBilling zip code associated with the credit card.
issuerGets the name of the issuer associated with the credit card.
Save a customer credit card.
Tokenizes via the payment gateway (when supported) and stores encrypted card data.
path Parameters
customerIdThe customer ID.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Save a customer credit card. › Request Body
cardNumberFull card number (PAN). Will be tokenized — never stored raw.
expMonthExpiration month (1-12).
expYearExpiration year (2-digit, e.g. 26 for 2026).
cvvCard verification value (CVV/CVC).
nameCardholder name.
zipBilling zip code.
houseNumberBilling house number (for AVS verification).
Save a customer credit card. › Responses
Card saved successfully.
idUnique identifier for the credit card.
maskedMasked credit card number.
expExpiration date in MMYY format.
nameName on the credit card.
zipCodeBilling zip code associated with the credit card.
issuerGets the name of the issuer associated with the credit card.
Get customer credit card by ID.
Returns masked card number, expiration, and issuer — never the full card number.
path Parameters
customerIdThe customer ID.
cardIdThe card ID.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Get customer credit card by ID. › Responses
Card retrieved successfully.
idUnique identifier for the credit card.
maskedMasked credit card number.
expExpiration date in MMYY format.
nameName on the credit card.
zipCodeBilling zip code associated with the credit card.
issuerGets the name of the issuer associated with the credit card.
GET Customer by id.
Looks up a customer by their internal customer ID. With the customer:get:own scope, only customers associated with orders created by your API key are visible; customer:get:all exposes every customer in the account.
path Parameters
idThe unique identifier of the customer.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Customer by id. › Responses
Returns the customer details.
idUnique identifier for the customer.
lastNameCustomer's last name (maximum 18 characters).
phoneCustomer's phone number (10 digits). On a phone-number lookup this is the phone the search matched (primary or secondary); otherwise the primary.
Represents a physical address.
firstNameCustomer's first name (maximum 12 characters).
phonesAll phone numbers on this customer record: the primary one plus an optional secondary one. Each is unique across customers.
emailCustomer's email address (maximum 35 characters).
List of credit cards associated with the customer.
Gets or sets the collection of shipping addresses associated with the customer.
lastModifiedGets or sets the last modified date and time of the customer.
isOnAccountEligibleCustomer's eligibility to use OnAccount.
routeCustomer's default delivery route code. Inherited onto new orders that don't specify one.
seqCustomer's default stop sequence within the delivery route.
GET Customer balance by ID.
Retrieve a customer's account balance. Requires X-Customer-Pin — see the Customer PIN documentation.
A positive balance means the customer owes the store money; a negative balance means the store owes the customer.
path Parameters
idThe unique identifier of the customer.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
X-Customer-PinCustomer PIN for second-factor verification. Required for this operation.
GET Customer balance by ID. › Responses
Returns the customer balance.
idCustomer identifier.
balanceAccount balance. Positive = customer owes, negative = store owes customer.
GET Customer by phone number
Looks up a customer by their 10-digit phone number (digits only, no formatting). With the customer:get:own scope, only customers associated with orders created by your API key are visible.
path Parameters
phoneNumberThe phone number of the customer (10 digits).
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Customer by phone number › Responses
Returns the customer details.
idUnique identifier for the customer.
lastNameCustomer's last name (maximum 18 characters).
phoneCustomer's phone number (10 digits). On a phone-number lookup this is the phone the search matched (primary or secondary); otherwise the primary.
Represents a physical address.
firstNameCustomer's first name (maximum 12 characters).
phonesAll phone numbers on this customer record: the primary one plus an optional secondary one. Each is unique across customers.
emailCustomer's email address (maximum 35 characters).
List of credit cards associated with the customer.
Gets or sets the collection of shipping addresses associated with the customer.
lastModifiedGets or sets the last modified date and time of the customer.
isOnAccountEligibleCustomer's eligibility to use OnAccount.
routeCustomer's default delivery route code. Inherited onto new orders that don't specify one.
seqCustomer's default stop sequence within the delivery route.
GET Customer balance by phone.
Retrieve a customer's account balance by 10-digit phone number (digits only). Requires X-Customer-Pin — see the Customer PIN documentation.
A positive balance means the customer owes the store money; a negative balance means the store owes the customer.
path Parameters
phoneNumberThe phone number of the customer (10 digits).
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
X-Customer-PinCustomer PIN for second-factor verification. Required for this operation.
GET Customer balance by phone. › Responses
Returns the customer balance.
idCustomer identifier.
balanceAccount balance. Positive = customer owes, negative = store owes customer.
GET Customer ID by phone number
Resolve a 10-digit phone number (digits only) to a customer ID. Useful for looking up a customer before calling an endpoint that takes the ID path parameter.
path Parameters
phoneNumberThe phone number of the customer (10 digits).
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Customer ID by phone number › Responses
Returns the customer ID.
idUnique identifier for the customer.
Charge customer credit card.
Supports stored card (by ID) or temp card details. Amount must be greater than zero — no refunds.
path Parameters
customerIdThe customer ID.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
X-Customer-PinCustomer PIN for second-factor verification. Required for this operation.
Charge customer credit card. › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: cardId | |
| type = object · requires: card |
cardIdExisting stored card id. Mutually exclusive with Card.
externalIdClient-provided external ID for this charge. Must be unique across all records. Used for idempotency — retrying with the same ID returns 409 instead of double-charging.
amountAmount to charge. Must be greater than zero.
Temporary credit card details for one-time use on an order.
Charge customer credit card. › Responses
Charge approved.
amountChargedAmount approved by the gateway.
authCodeAuthorization code from the card issuer.
referenceNoGateway reference number.
maskedCardNumberMasked card number.
newBalanceCustomer's new account balance after the charge.