import 'package:conekta/api.dart';
All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
ordersCreateShipping | POST /orders/{id}/shipping_lines | Create Shipping |
ordersDeleteShipping | DELETE /orders/{id}/shipping_lines/{shipping_id} | Delete Shipping |
ordersUpdateShipping | PUT /orders/{id}/shipping_lines/{shipping_id} | Update Shipping |
ShippingOrderResponse ordersCreateShipping(id, shippingRequest, acceptLanguage, xChildCompanyId)
Create Shipping
Create new shipping for an existing orden
import 'package:conekta/api.dart';
final api = Conekta().getShippingsApi();
final String id = 6307a60c41de27127515a575; // String | Identifier of the resource
final ShippingRequest shippingRequest = ; // ShippingRequest | requested field for a shipping
final String acceptLanguage = es; // String | Use for knowing which language to use
final 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 {
final response = api.ordersCreateShipping(id, shippingRequest, acceptLanguage, xChildCompanyId);
print(response);
} catch on DioException (e) {
print('Exception when calling ShippingsApi->ordersCreateShipping: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | |
shippingRequest | ShippingRequest | requested field for a shipping | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ShippingOrderResponse ordersDeleteShipping(id, shippingId, acceptLanguage, xChildCompanyId)
Delete Shipping
Delete shipping
import 'package:conekta/api.dart';
final api = Conekta().getShippingsApi();
final String id = 6307a60c41de27127515a575; // String | Identifier of the resource
final String shippingId = ship_lin_2tQ974hSHcsdeSZHG; // String | identifier
final String acceptLanguage = es; // String | Use for knowing which language to use
final 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 {
final response = api.ordersDeleteShipping(id, shippingId, acceptLanguage, xChildCompanyId);
print(response);
} catch on DioException (e) {
print('Exception when calling ShippingsApi->ordersDeleteShipping: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | |
shippingId | String | identifier | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
- Content-Type: Not defined
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ShippingOrderResponse ordersUpdateShipping(id, shippingId, shippingRequest, acceptLanguage, xChildCompanyId)
Update Shipping
Update existing shipping for an existing orden
import 'package:conekta/api.dart';
final api = Conekta().getShippingsApi();
final String id = 6307a60c41de27127515a575; // String | Identifier of the resource
final String shippingId = ship_lin_2tQ974hSHcsdeSZHG; // String | identifier
final ShippingRequest shippingRequest = ; // ShippingRequest | requested field for a shipping
final String acceptLanguage = es; // String | Use for knowing which language to use
final 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 {
final response = api.ordersUpdateShipping(id, shippingId, shippingRequest, acceptLanguage, xChildCompanyId);
print(response);
} catch on DioException (e) {
print('Exception when calling ShippingsApi->ordersUpdateShipping: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of the resource | |
shippingId | String | identifier | |
shippingRequest | ShippingRequest | requested field for a shipping | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
xChildCompanyId | String | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]