Files
medusa-store/www/apps/api-reference/specs/admin/components/schemas/AdminPromotion.yaml
2024-08-30 08:35:10 +02:00

38 lines
792 B
YAML

type: object
description: The promotion's details.
x-schemaName: AdminPromotion
required:
- id
properties:
id:
type: string
title: id
description: The promotion's ID.
code:
type: string
title: code
description: The promotion's code.
type:
type: string
description: The promotion's type.
enum:
- standard
- buyget
is_automatic:
type: boolean
title: is_automatic
description: The promotion's is automatic.
application_method:
$ref: ./BaseApplicationMethod.yaml
rules:
type: array
description: The promotion's rules.
items:
$ref: ./BasePromotionRule.yaml
campaign_id:
type: string
title: campaign_id
description: The promotion's campaign id.
campaign:
$ref: ./AdminCampaign.yaml