Eliminar Producto

Elimina un producto existente.

Argumentos

Tipo

Descripción

id

string

Id del producto.

order = Conekta::Order.find("ord_2fw8EWJusiRrxdPzT");
line_item = order.line_items.first
line_item.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/line_items/line_item_2fw8EWJusiRrxdPzR
<?php

$order = \Conekta\Order::find("ord_2fw8EWJusiRrxdPzT");
$line_item = $order->line_items[0];
$line_item->delete();
conekta.Order.find("ord_2fw8EWJusiRrxdPzT", function (err, order) {
    order.line_items.get(0).delete(function (err, line_item) {
        console.log(line_item);
    });
});
order = conekta.order.find("ord_2fw8EWJusiRrxdPzT")
line_item = order.line_items[0]
line_item.delete()
Order order = Order.find("ord_2fw8EWJusiRrxdPzT");
LineItems lineItem = (LineItems) order.line_items.get(0);
lineItem.delete();
Order order = new Order().find("ord_2fw8EWJusiRrxdPzT");
LineItem line_item = (LineItem) order.line_items.at(0);
line_item.destroy();
import  (
    conekta "github.com/conekta/conekta-go"
    "github.com/conekta/conekta-go/shippinglines"
)

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