query GetSubscriptionContractDeliveryOptions {
subscriptionDraft(id: "gid://shopify/SubscriptionDraft/123456789") {
id
deliveryOptions {
... on SubscriptionDeliveryOptionResultSuccess {
deliveryOptions {
... on SubscriptionShippingOption {
title
presentmentTitle
description
code
price {
amount
currencyCode
}
}
# ... on SubscriptionPickupOption {
# title
# description
# code
# price {
# amount
# currencyCode
# }
# }
# ... on SubscriptionLocalDeliveryOption {
# title
# description
# code
# price {
# amount
# currencyCode
# }
# }
}
}
... on SubscriptionDeliveryOptionResultFailure {
message
}
}
}
}
The response looks like this:
{
subscriptionDraft: {
id: 'gid://shopify/SubscriptionDraft/123456789',
deliveryOptions: {
deliveryOptions: [
{
title: 'two dollars',
presentmentTitle: 'two dollars',
description: null,
code: 'two dollars',
price: { amount: '2.0', currencyCode: 'USD' }
}
]
}
}
}
It should return all the available options but it just displays 1 instead. I tried to add another shipping rate, it shows the new one instead of both. Does anyone know how to fix this?
