---
title: "Update Discount"
method: PUT
path: "/orders/{id}/discount_lines/{discount_lines_id}"
tags: ["Discounts"]
---

# Update Discount

`PUT /orders/{id}/discount_lines/{discount_lines_id}`

Update an existing discount lines for an existing orden

## Path parameters

- `id` string, required
- `discount_lines_id` string, required

## Headers

- `Accept-Language` 'es' | 'en'
- `X-Child-Company-Id` string

## Request body

- UpdateOrderDiscountLinesRequest — List of discounts that apply to the order.
  - `amount` integer
  - `code` string — Discount code.
  - `type` string

## Response `200`

successful

## Other responses

- `401` — authentication error
- `404` — not found entity
- `422` — parameter validation error
- `500` — internal server error

---

[API](https://skmtc.dev/conekta/apis/conekta-api.md) · [All operations](https://skmtc.dev/conekta/apis/conekta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/conekta/conekta-api/revisions/029df3052bca/schema)
