v1

latestOpenAPI 3.0.3MIT-LICENSE2026-07-2469127278.1 KB
Discounts

Update Discount

Update an existing discount line for an existing order

put/orders/{id}/discount_lines/{discount_lines_id}

Path parameters

idstring required

Identifier of the resource

discount_lines_idstring required

discount line id identifier

Headers

Accept-Language'es' | 'en'

Use for knowing which language to use

X-Child-Company-Idstring

In the case of a holding company, the company id of the child company to which will process the request.

Request body

amountinteger
codestring

Discount code.

type'loyalty' | 'campaign' | 'coupon' | 'sign'

Example request

{
  "amount": 500,
  "code": "123",
  "type": "loyalty"
}

Response

successful