subscriptionDraftLineUpdate mutation
Updates a subscription line on a subscription draft.
Required access
write_own_subscription_contracts
access scope.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
draftId
(
ID!
)
required
|
The gid of the Subscription Contract draft to update a subscription line from. |
input
(
SubscriptionLineUpdateInput!
)
required
|
The properties of the new Subscription Line. |
lineId
(
ID!
)
required
|
The gid of the Subscription Line to update. |
SubscriptionLineUpdateInput fields
-
currentPrice (
Decimal
)The price of the product.
-
customAttributes (
[AttributeInput!]
)The custom attributes for this subscription line.
-
pricingPolicy (
SubscriptionPricingPolicyInput
)Describes expected price changes of the subscription line over time.
-
productVariantId (
ID
)The ID of the product variant the subscription line refers to.
-
quantity (
Int
)The quantity of the product.
-
sellingPlanId (
ID
)The selling plan for the subscription line.
-
sellingPlanName (
String
)The selling plan name for the subscription line.
Return fields
-
draft (
SubscriptionDraft
)The Subscription Contract draft object.
-
lineUpdated (
SubscriptionLine
)The updated Subscription Line.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.
Updates a subscription line on a subscription draft.
Required access
write_own_subscription_contracts
access scope.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
draftId
(
ID!
)
required
|
The gid of the Subscription Contract draft to update a subscription line from. |
input
(
SubscriptionLineUpdateInput!
)
required
|
The properties of the new Subscription Line. |
lineId
(
ID!
)
required
|
The gid of the Subscription Line to update. |
SubscriptionLineUpdateInput fields
-
currentPrice (
Decimal
)The price of the product.
-
customAttributes (
[AttributeInput!]
)The custom attributes for this subscription line.
-
pricingPolicy (
SubscriptionPricingPolicyInput
)Describes expected price changes of the subscription line over time.
-
productVariantId (
ID
)The ID of the product variant the subscription line refers to.
-
quantity (
Int
)The quantity of the product.
-
sellingPlanId (
ID
)The selling plan for the subscription line.
-
sellingPlanName (
String
)The selling plan name for the subscription line.
Return fields
-
draft (
SubscriptionDraft
)The Subscription Contract draft object.
-
lineUpdated (
SubscriptionLine
)The updated Subscription Line.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.
Updates a subscription line on a subscription draft.
Required access
write_own_subscription_contracts
access scope.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
draftId
(
ID!
)
required
|
The gid of the Subscription Contract draft to update a subscription line from. |
input
(
SubscriptionLineUpdateInput!
)
required
|
The properties of the new Subscription Line. |
lineId
(
ID!
)
required
|
The gid of the Subscription Line to update. |
SubscriptionLineUpdateInput fields
-
currentPrice (
Decimal
)The price of the product.
-
customAttributes (
[AttributeInput!]
)The custom attributes for this subscription line.
-
pricingPolicy (
SubscriptionPricingPolicyInput
)Describes expected price changes of the subscription line over time.
-
productVariantId (
ID
)The ID of the product variant the subscription line refers to.
-
quantity (
Int
)The quantity of the product.
-
sellingPlanId (
ID
)The selling plan for the subscription line.
-
sellingPlanName (
String
)The selling plan name for the subscription line.
Return fields
-
draft (
SubscriptionDraft
)The Subscription Contract draft object.
-
lineUpdated (
SubscriptionLine
)The updated Subscription Line.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.