All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
createCustomer | POST /customers | Create customer |
createCustomerFiscalEntities | POST /customers/{id}/fiscal_entities | Create Fiscal Entity |
deleteCustomerById | DELETE /customers/{id} | Delete Customer |
getCustomerById | GET /customers/{id} | Get Customer |
getCustomers | GET /customers | Get a list of customers |
updateCustomer | PUT /customers/{id} | Update customer |
updateCustomerFiscalEntities | PUT /customers/{id}/fiscal_entities/{fiscal_entities_id} | Update Fiscal Entity |
CustomerResponse createCustomer(customer, acceptLanguage, xChildCompanyId)
Create customer
The purpose of business is to create and keep a customer, you will learn what elements you need to create a customer. Remember the credit and debit card tokenization process: https://developers.conekta.com/page/web-checkout-tokenizer
// Import classes:
//import io.conekta.CustomersApi;
CustomersApi apiInstance = new CustomersApi();
Customer customer = new Customer(); // Customer | requested field for customer
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
CustomerResponse result = apiInstance.createCustomer(customer, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#createCustomer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
customer | Customer | requested field for customer | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
CreateCustomerFiscalEntitiesResponse createCustomerFiscalEntities(id, customerFiscalEntitiesRequest, acceptLanguage, xChildCompanyId)
Create Fiscal Entity
Create Fiscal entity resource that corresponds to a customer ID.
// Import classes:
//import io.conekta.CustomersApi;
CustomersApi apiInstance = new CustomersApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
CustomerFiscalEntitiesRequest customerFiscalEntitiesRequest = new CustomerFiscalEntitiesRequest(); // CustomerFiscalEntitiesRequest | requested field for customer fiscal entities
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
CreateCustomerFiscalEntitiesResponse result = apiInstance.createCustomerFiscalEntities(id, customerFiscalEntitiesRequest, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#createCustomerFiscalEntities");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
customerFiscalEntitiesRequest | CustomerFiscalEntitiesRequest | requested field for customer fiscal entities | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
CreateCustomerFiscalEntitiesResponse
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
CustomerResponse deleteCustomerById(id, acceptLanguage, xChildCompanyId)
Delete Customer
Deleted a customer resource that corresponds to a customer ID.
// Import classes:
//import io.conekta.CustomersApi;
CustomersApi apiInstance = new CustomersApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
CustomerResponse result = apiInstance.deleteCustomerById(id, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#deleteCustomerById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
CustomerResponse getCustomerById(id, acceptLanguage, xChildCompanyId)
Get Customer
Gets a customer resource that corresponds to a customer ID.
// Import classes:
//import io.conekta.CustomersApi;
CustomersApi apiInstance = new CustomersApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
CustomerResponse result = apiInstance.getCustomerById(id, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#getCustomerById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
CustomersResponse getCustomers(acceptLanguage, xChildCompanyId, limit, search, next, previous)
Get a list of customers
The purpose of business is to create and maintain a client, you will learn what elements you need to obtain a list of clients, which can be paged.
// Import classes:
//import io.conekta.CustomersApi;
CustomersApi apiInstance = new CustomersApi();
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
Integer limit = 20; // Integer | The numbers of items to return, the maximum value is 250
String search = null; // String | General order search, e.g. by mail, reference etc.
String next = null; // String | next page
String previous = null; // String | previous page
try {
CustomersResponse result = apiInstance.getCustomers(acceptLanguage, xChildCompanyId, limit, search, next, previous);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#getCustomers");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
limit | Integer | The numbers of items to return, the maximum value is 250 | [optional] [default to 20] |
search | String | General order search, e.g. by mail, reference etc. | [optional] [default to null] |
next | String | next page | [optional] [default to null] |
previous | String | previous page | [optional] [default to null] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
CustomerResponse updateCustomer(id, updateCustomer, acceptLanguage, xChildCompanyId)
Update customer
You can update customer-related data
// Import classes:
//import io.conekta.CustomersApi;
CustomersApi apiInstance = new CustomersApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
UpdateCustomer updateCustomer = new UpdateCustomer(); // UpdateCustomer | requested field for customer
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
CustomerResponse result = apiInstance.updateCustomer(id, updateCustomer, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#updateCustomer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
updateCustomer | UpdateCustomer | requested field for customer | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
UpdateCustomerFiscalEntitiesResponse updateCustomerFiscalEntities(id, fiscalEntitiesId, customerUpdateFiscalEntitiesRequest, acceptLanguage, xChildCompanyId)
Update Fiscal Entity
Update Fiscal Entity resource that corresponds to a customer ID.
// Import classes:
//import io.conekta.CustomersApi;
CustomersApi apiInstance = new CustomersApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
String fiscalEntitiesId = fis_ent_2tQ8HkkfbauaKP9Ho; // String | identifier
CustomerUpdateFiscalEntitiesRequest customerUpdateFiscalEntitiesRequest = new CustomerUpdateFiscalEntitiesRequest(); // CustomerUpdateFiscalEntitiesRequest | requested field for customer update fiscal entities
String acceptLanguage = es; // String | Use for knowing which language to use
String xChildCompanyId = 6441b6376b60c3a638da80af; // String | In the case of a holding company, the company id of the child company to which will process the request.
try {
UpdateCustomerFiscalEntitiesResponse result = apiInstance.updateCustomerFiscalEntities(id, fiscalEntitiesId, customerUpdateFiscalEntitiesRequest, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CustomersApi#updateCustomerFiscalEntities");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
fiscalEntitiesId | String | identifier | [default to null] |
customerUpdateFiscalEntitiesRequest | CustomerUpdateFiscalEntitiesRequest | requested field for customer update fiscal entities | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to es] [enum: es, en] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] [default to null] |
UpdateCustomerFiscalEntitiesResponse
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json