All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
createPlan | POST /plans | Create Plan |
deletePlan | DELETE /plans/{id} | Delete Plan |
getPlan | GET /plans/{id} | Get Plan |
getPlans | GET /plans | Get A List of Plans |
updatePlan | PUT /plans/{id} | Update Plan |
PlanResponse createPlan(planRequest, acceptLanguage, xChildCompanyId)
Create Plan
Create a new plan for an existing order
// Import classes:
//import io.conekta.PlansApi;
PlansApi apiInstance = new PlansApi();
PlanRequest planRequest = new PlanRequest(); // PlanRequest | requested field for plan
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 {
PlanResponse result = apiInstance.createPlan(planRequest, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PlansApi#createPlan");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
planRequest | PlanRequest | requested field for plan | |
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
PlanResponse deletePlan(id, acceptLanguage)
Delete Plan
// Import classes:
//import io.conekta.PlansApi;
PlansApi apiInstance = new PlansApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
String acceptLanguage = es; // String | Use for knowing which language to use
try {
PlanResponse result = apiInstance.deletePlan(id, acceptLanguage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PlansApi#deletePlan");
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] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
PlanResponse getPlan(id, acceptLanguage, xChildCompanyId)
Get Plan
// Import classes:
//import io.conekta.PlansApi;
PlansApi apiInstance = new PlansApi();
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 {
PlanResponse result = apiInstance.getPlan(id, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PlansApi#getPlan");
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
GetPlansResponse getPlans(acceptLanguage, xChildCompanyId, limit, search, next, previous)
Get A List of Plans
// Import classes:
//import io.conekta.PlansApi;
PlansApi apiInstance = new PlansApi();
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 {
GetPlansResponse result = apiInstance.getPlans(acceptLanguage, xChildCompanyId, limit, search, next, previous);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PlansApi#getPlans");
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
PlanResponse updatePlan(id, planUpdateRequest, acceptLanguage, xChildCompanyId)
Update Plan
// Import classes:
//import io.conekta.PlansApi;
PlansApi apiInstance = new PlansApi();
String id = 6307a60c41de27127515a575; // String | Identifier of the resource
PlanUpdateRequest planUpdateRequest = new PlanUpdateRequest(); // PlanUpdateRequest | requested field for plan
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 {
PlanResponse result = apiInstance.updatePlan(id, planUpdateRequest, acceptLanguage, xChildCompanyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PlansApi#updatePlan");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | [default to null] |
planUpdateRequest | PlanUpdateRequest | requested field for plan | |
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