Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
19 lines
575 B
YAML
19 lines
575 B
YAML
type: object
|
|
required:
|
|
- code
|
|
properties:
|
|
code:
|
|
type: string
|
|
description: A unique code that will be used to redeem the Discount
|
|
usage_limit:
|
|
type: number
|
|
description: Maximum number of times the discount code can be used
|
|
default: 1
|
|
metadata:
|
|
type: object
|
|
description: An optional set of key-value pairs to hold additional information.
|
|
externalDocs:
|
|
description: Learn about the metadata attribute, and how to delete and update it.
|
|
url: >-
|
|
https://docs.medusajs.com/development/entities/overview#metadata-attribute
|