Eliminar Envío

Elimina un envío existente para una orden.

Argumentos

Tipo

Descripción

id

string

El id del envío.

order = Conekta::Order.find("ord_2fw8EWJusiRrxdPzT")
order.shipping_lines.first.delete
curl -H "Accept: application/vnd.conekta-v2.0.0+json" \
-H "Content-type: application/json" \
-u key_eYvWV7gSDkNYXsmr: \
-X DELETE https://api.conekta.io/orders/ord_2fw8EWJusiRrxdPzT/shipping_lines/ship_lin_2fw8EWJusiRrxdPzR
$order = \Conekta\Order.find("ord_2fw8EWJusiRrxdPzT");
$order->shipping_lines[0]->delete();
conekta.Order.find("ord_2fw8EWJusiRrxdPzT", function (err, order) {
    order.shipping_lines.get(0).delete(function (err, shippingLine) {
        console.log(shippingLine);
    });
});
order = conekta.order.find("ord_2fw8EWJusiRrxdPzT")
order.shipping_lines[0].delete()
Order order = Order.find("ord_2fw8EWJusiRrxdPzT");
ShippingLine shippingLine = (ShippingLine) order.shipping_lines.get(0);
shippingLine.delete();
Order order = new Order().find("ord_2fw8EWJusiRrxdPzT");
ShippingLine shipping = (ShippingLine)order.shipping_lines[0];
shipping.destroy();
import  (
    conekta "github.com/conekta/conekta-go"
    "github.com/conekta/conekta-go/shippinglines"
)

shippinglines.Delete("ord_2fw8EWJusiRrxdPzT", "ship_lin_2nBaWEC7ftCTpi8rP")