Skip to main content
inputCreateSalesSubscriptionDiscountLineItemCommandRequestInput

Fields

salesSubscriptionId
ID!
required

The ID of the subscription.

clientId
String

A temporary identifier chosen by the client, for example to match the answer to an optimistic update. It is not stored and is returned unchanged.

discountType
String!
required

The type of the discount. Known values: COUPON, NEW_CUSTOMER_COUPON, LEGACY_VOUCHER. The type of a discount line item.

name
String!
required

The name printed on the sales order; not empty.

amount
Decimal!
required

The net amount by which each follow-up sales order is reduced; greater than 0.

note
String

A note on the line item.

sortOrder
Int

The position of the line item. Defaults to the end.

idempotencyKey
String

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.