A customer represents a company that does business with your sub-merchants. For larger companies, there may be several users with access to the customer account that can make purchases with their credit line. For smaller companies, a customer may represent a single individual. Retrieve a customer to get a summary of their total credit line and available credit balance.
Important: The behavior of the merchant_id parameter depends on your partner type:
- Single-merchant partners: The
merchant_idfield is required when creating a customer, and must reference a valid sub-merchant under your partner account. Themerchant_idfield will be included in responses and can be used as a filter when listing customers. Both invoices and customers belong to the sub-merchant. - Marketplace partners: The
merchant_idfield is not accepted when creating a customer — customers belong to the marketplace (partner) itself. Themerchant_idfield will not be present in responses or available as a filter. Invoices still belong to sub-merchants.
Return a list of customers. For single-merchant partners, this returns customers belonging to your sub-merchants. For marketplace partners, this returns customers belonging to your marketplace.
Filter customers by the specified fields.
Filter semantics: filter[field][operator]=value.
Available filter operators:
eq- equal (=)ne- not equal (!=)gt- greater than (>)gte- greater than or equal (>=)lt- less than (<)lte- less than or equal (<=)
Filtering is allowed by the following fields:
merchant_id(eq) — only available for single-merchant partnersexternal_id(eq)email(eq)business_name(eq)created_at(eq,gt,lt,gte,lte)amount_approved(eq,gt,lt,gte,lte)amount_available(eq,gt,lt,gte,lte)amount_authorized(eq,gt,lt,gte,lte)amount_balance(eq,gt,lt,gte,lte)amount_unapplied_payments(eq,gt,lt,gte,lte)advance_rate(eq,gt,lt,gte,lte)archived(eq,ne)
Example: filter[email][eq]=test@resolvepay.com Example: filter[external_id][eq]=CUS-123456
Note: filter with the eq operator is equivalent to the following filter filter[field]=value
Sort customers by the specified fields.
The sort order for each sort field is ascending unless it is prefixed with a minus, in which case it is descending.
Multiple sort fields supported by allowing comma-separated sort fields. Sort fields will be applied in the order specified.
Sorting is allowed by the following fields: id, created_at, amount_approved, amount_available, business_name.
Example: sort=business_name,-created_at
- Mock serverhttps://docs.resolvepay.com/_mock/partners-api/openapi/customers
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/customers
- bearerAuth
- basicAuth
curl -i -X GET \
'https://docs.resolvepay.com/_mock/partners-api/openapi/customers?limit=25&page=1&filter=%7B%22merchant_id%22%3A%7B%22eq%22%3A%22string%22%7D%2C%22external_id%22%3A%7B%22eq%22%3A%22string%22%7D%2C%22email%22%3A%7B%22eq%22%3A%22string%22%7D%2C%22business_name%22%3A%7B%22eq%22%3A%22string%22%7D%2C%22created_at%22%3A%7B%22eq%22%3A%222019-08-24T14%3A15%3A22Z%22%2C%22gt%22%3A%222019-08-24T14%3A15%3A22Z%22%2C%22lt%22%3A%222019-08-24T14%3A15%3A22Z%22%2C%22gte%22%3A%222019-08-24T14%3A15%3A22Z%22%2C%22lte%22%3A%222019-08-24T14%3A15%3A22Z%22%7D%2C%22amount_approved%22%3A%7B%22eq%22%3A0%2C%22gt%22%3A0%2C%22lt%22%3A0%2C%22gte%22%3A0%2C%22lte%22%3A0%7D%2C%22amount_available%22%3A%7B%22eq%22%3A0%2C%22gt%22%3A0%2C%22lt%22%3A0%2C%22gte%22%3A0%2C%22lte%22%3A0%7D%2C%22amount_authorized%22%3A%7B%22eq%22%3A0%2C%22gt%22%3A0%2C%22lt%22%3A0%2C%22gte%22%3A0%2C%22lte%22%3A0%7D%2C%22amount_balance%22%3A%7B%22eq%22%3A0%2C%22gt%22%3A0%2C%22lt%22%3A0%2C%22gte%22%3A0%2C%22lte%22%3A0%7D%2C%22amount_unapplied_payments%22%3A%7B%22eq%22%3A0%2C%22gt%22%3A0%2C%22lt%22%3A0%2C%22gte%22%3A0%2C%22lte%22%3A0%7D%2C%22advance_rate%22%3A%7B%22eq%22%3A1%2C%22gt%22%3A1%2C%22lt%22%3A1%2C%22gte%22%3A1%2C%22lte%22%3A1%7D%2C%22archived%22%3A%7B%22eq%22%3Atrue%2C%22ne%22%3Atrue%7D%7D&sort=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "count": 1, "limit": 25, "page": 1, "results": [ { … } ] }