new module:api/CustomerApi(apiClientopt)
This class subject to change without prior notice, Please dont use this class directly.
Constructs a new CustomerApi.Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
apiClient |
module:ApiClient |
<optional> |
Optional API client implementation to use, default to module:ApiClient#instance if unspecified. |
Methods
-
createCustomer(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, create_customer_request, opts, callback)
-
Create Customer The Create Customer API is used to register a customer with a biller in EBPP. It is also mandatory to create a customer account for the customer. So, at least one customer account should be provided in order to register a customer. There is no limit on the number of accounts that can be associated with the customer. Either first_name or last_name is required to create a customer.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
create_customer_requestmodule:models/CreateCustomerRequest The JSON that contains all the attributes of customer to be created.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/CustomerApi~createCustomerCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomerResponse
-
getCustomer(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, opts, callback)
-
Get Customer The Get Customer API is used to retrieve the details of the customer based on the id.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_customerString The unique identifier assigned by EBPP to the customer.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/CustomerApi~getCustomerCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomerResponse
-
retrieveCustomers(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, opts, callback)
-
Retrieve Customers This API is used to retrieve/lookup customers from EBPP. Customers can be retrieved matching criteria that includes the customer_reference, the ssn, the email or the customer account number. A unique customer can be retrieved by using search criteria as per the customer uniqueness parameters opted by the client/biller. If the requestor_type is customer, the Retrieve Customers API will return an error if it cannot retrieve a unique customer.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
page_sizeString The maximum number of objects returned in the query.
customer_referenceString Unique ID assigned by the biller/client system for a given customer.
ssnString The SSN of the customer if the account holder is an individual or the tax ID, if the customer is a business.
emailString This field contains the customer’s email address within EBPP.
account_numberString Customer Account Number of the customer to get details of.
callbackmodule:api/CustomerApi~retrieveCustomersCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomersResponse
-
retrieveCustomersPage(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, query_id, opts, callback)
-
Retrieve Customers Pagination This API is used to paginate through the list of customers returned in the Retrieve Customers API.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
query_idString query id of the Retrieve/Search Customers lookup.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
page_sizeString The maximum number of objects returned in the query.
from_indexString To fetch the next set of objects that start after this object
to_indexString To fetch the previous set of objects that end at this object
callbackmodule:api/CustomerApi~retrieveCustomersPageCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomersResponse
-
updateCustomer(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, update_customer_request, opts, callback)
-
Update Customer The Update Customer API is used to edit the customer''s personal details, accounts or the customer''s status. Only the information being updated needs to be sent in the request, along with the id of the customer being updated. A customer can also be associated with new customer accounts using the API. <br><br> Along with Customer details , Customer and Customer Account statuses also can be updated using the Update Customer API. Below are the possible customer state transformations. | from_status | to_status | allowed requestor_type | | ------------ | ------------ | ------------ | | active | suspended| <ul> <li>external_user</li> <li> client_agent</li> <li> system</li></ul> | | active | revoked | <ul> <li>external_user</li> <li> client_agent</li> <li> system</li></ul> </ul> | | suspended | active | <ul> <li>external_user</li> <li> client_agent</li> <li> system</li></ul> </ul> | | suspended | revoked | <ul> <li>external_user</li> <li> client_agent</li> <li> system</li></ul> </ul> | | revoked | active | <ul> <li>external_user</li> <li> client_agent</li></ul> </ul> | Below are the possible customer account state transformation. | from_status | to_status | allowed requestor_type | | ------------ | ------------ | ------------ | | active | inactive| <ul> <li>external_user</li> <li> client_agent</li> <li> system</li></ul> | | inactive | active | <ul> <li>external_user</li> <li> client_agent</li> <li> system</li></ul> </ul> |
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_customerString The unique identifier assigned by EBPP to the customer.
update_customer_requestmodule:models/UpdateCustomerRequest JSON containing all the attributes of the customer to be updated.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API. If the requestor_type is <b>system</b>, requestor is optional.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/CustomerApi~updateCustomerCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/CustomerResponse
Type Definitions
-
createCustomerCallback(error, data, response)
-
Callback function to receive the result of the createCustomer operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomerResponse The data returned by the service call.
responseString The complete HTTP response.
-
getCustomerCallback(error, data, response)
-
Callback function to receive the result of the getCustomer operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomerResponse The data returned by the service call.
responseString The complete HTTP response.
-
retrieveCustomersCallback(error, data, response)
-
Callback function to receive the result of the retrieveCustomers operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomersResponse The data returned by the service call.
responseString The complete HTTP response.
-
retrieveCustomersPageCallback(error, data, response)
-
Callback function to receive the result of the retrieveCustomersPage operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomersResponse The data returned by the service call.
responseString The complete HTTP response.
-
updateCustomerCallback(error, data, response)
-
Callback function to receive the result of the updateCustomer operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/CustomerResponse The data returned by the service call.
responseString The complete HTTP response.