AdminCustomersResource
admin/customers.AdminCustomersResource
Methods
create
create(payload
, customHeaders?
): ResponsePromise
<AdminCustomersRes
>
Creates a customer
Parameters
information of customer
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomersRes
>
list
list(query?
, customHeaders?
): ResponsePromise
<AdminCustomersListRes
>
Lists customers
Parameters
optional
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomersListRes
>
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminCustomersRes
>
Retrieves a customer
Parameters
id
stringRequiredcustomer id
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomersRes
>
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminCustomersRes
>
Updates a customer
Parameters
id
stringRequiredcustomer id
data to update customer with
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCustomersRes
>
Was this section helpful?