Menu
subscriptionDraftLineRemove
Removes a subscription line from a subscription draft.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the subscriptionDraftLineRemove action (under Subscription).
- Fill in the fields below, then reference the result from later steps as
{{subscriptiondraftlineremove.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation SubscriptionDraftLineRemove($draftId: ID!, $lineId: ID!) {
subscriptionDraftLineRemove(draftId: $draftId, lineId: $lineId) {
discountsUpdated {
entitledLines {
all
}
id
recurringCycleLimit
rejectionReason
targetType
title
type
usageCount
value
}
draft {
billingCycle {
billingAttemptExpectedDate
cycleEndAt
cycleIndex
cycleStartAt
edited
editedContract
skipped
sourceContract
status
}
billingPolicy {
anchors
interval
intervalCount
maxCycles
minCycles
}
currencyCode
customAttributes {
key
value
}
customer {
amountSpent
canDelete
companyContactProfiles
createdAt
dataSaleOptOut
defaultAddress
defaultEmailAddress
defaultPhoneNumber
displayName
email
emailMarketingConsent
firstName
hasTimelineComment
id
identityProviderSubjects
lastName
lastOrder
legacyResourceId
lifetimeDuration
locale
market
mergeable
multipassIdentifier
note
numberOfOrders
phone
productSubscriberStatus
smsMarketingConsent
state
statistics
tags
taxExempt
taxExemptions
taxSettings
unsubscribeUrl
updatedAt
validEmailAddress
verifiedEmail
}
deliveryMethod
deliveryPolicy {
anchors
interval
intervalCount
}
deliveryPrice {
amount
currencyCode
}
id
nextBillingDate
note
originalContract {
app
appAdminUrl
billingPolicy
createdAt
currencyCode
customAttributes
customer
deliveryMethod
deliveryPolicy
deliveryPrice
id
lastBillingAttemptErrorType
lastPaymentStatus
lineCount
linesCount
nextBillingDate
note
originOrder
revisionId
status
updatedAt
}
status
}
lineRemoved {
concatenatedOriginContract {
app
appAdminUrl
billingPolicy
createdAt
currencyCode
customAttributes
customer
deliveryMethod
deliveryPolicy
deliveryPrice
id
lastBillingAttemptErrorType
lastPaymentStatus
lineCount
linesCount
nextBillingDate
note
originOrder
revisionId
status
updatedAt
}
currentPrice {
amount
currencyCode
}
customAttributes {
key
value
}
discountAllocations {
amount
discount
}
id
lineDiscountedPrice {
amount
currencyCode
}
pricingPolicy {
basePrice
cycleDiscounts
}
productId
quantity
requiresShipping
sellingPlanId
sellingPlanName
sku
taxable
title
variantId
variantImage {
altText
height
id
originalSrc
src
thumbhash
width
}
variantTitle
}
userErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"draftId": "string",
"lineId": "string"
}
Response
Read the result with {{subscriptiondraftlineremove.response.data.data.subscriptionDraftLineRemove}}. If the API returns errors, the step fails and they are at {{subscriptiondraftlineremove.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?