---
title: "Create Discount"
method: POST
path: "/orders/{id}/discount_lines"
tags: ["Discounts"]
---

# Create Discount

`POST /orders/{id}/discount_lines`

Create discount lines for an existing orden

## Path parameters

- `id` string, required

## Headers

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

## Request body

- OrderDiscountLinesRequest — List of discounts that apply to the order.
  - `amount` integer, required — The amount to be deducted from the total sum of all payments, in cents.
  - `code` string, required — Discount code.
  - `type` string, required — It can be 'loyalty', 'campaign', 'coupon' o 'sign'

## Response `200`

successful

## Other responses

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

---

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