Eliminar Descuento

Elimina un descuento existente.

Argumentos

Tipo

Descripción

id

string

El id del descuento.

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/discount_lines/dis_lin_2fw8EWJusiRrxdPzR
order = Conekta::Order.find("ord_2fw8EWJusiRrxdPzT")
order.discount_lines.first.delete
$order = \Conekta\Order::find("ord_2fw8EWJusiRrxdPzT");
$order->discount_lines[0]->delete();
conekta.Order.find("ord_2fw8EWJusiRrxdPzT", function(err, order) {
    order.discount_lines.get(0).delete(function(err, discountLine) {
        console.log(discountLine);
    });
});
order = conekta.Order.find("ord_2fw8EWJusiRrxdPzT")
order.discount_lines[0].delete()
Order order = Order.find("ord_2fw8EWJusiRrxdPzT");
DiscountLine discountLine = null;
discountLine = (DiscountLine) order.discount_lines.get(0);
discountLine.delete();
Order order = new Order().find("ord_2fw8EWJusiRrxdPzT");
order.discount_lines.at(0).destroy();
import    (
    conekta "github.com/conekta/conekta-go"
    "github.com/conekta/conekta-go/discountlines"
)

discountlines.Delete("ord_2nBaWEC7ftCTpi8rS", "dis_lin_2nBe382k2zGYgSBbX")