Skip to main content
PUT
/
api
/
external
/
v2
/
subscription-contracts-update-delivery-price
Update delivery price for a subscription contract
curl --request PUT \
  --url https://subscription-admin.appstle.com/api/external/v2/subscription-contracts-update-delivery-price \
  --header 'X-API-Key: <x-api-key>'
{
  "id": "gid://shopify/SubscriptionContract/123456789",
  "status": "ACTIVE",
  "nextBillingDate": "2024-04-01T00:00:00Z",
  "customer": {
    "id": "gid://shopify/Customer/987654321",
    "email": "customer@example.com",
    "displayName": "John Doe"
  },
  "deliveryPrice": {
    "amount": "9.99",
    "currencyCode": "USD"
  },
  "deliveryMethod": {
    "__typename": "SubscriptionDeliveryMethodShipping",
    "shippingOption": {
      "title": "Standard Shipping",
      "code": "STANDARD",
      "presentmentTitle": "Standard Shipping (5-7 days)"
    }
  },
  "lines": {
    "edges": [
      {
        "node": {
          "id": "gid://shopify/SubscriptionLine/111111",
          "quantity": 1,
          "variantId": "gid://shopify/ProductVariant/42549172011164",
          "title": "Monthly Subscription Box",
          "currentPrice": {
            "amount": "39.99",
            "currencyCode": "USD"
          }
        }
      }
    ]
  },
  "totalPrice": {
    "amount": "49.98",
    "currencyCode": "USD"
  }
}

Documentation Index

Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-API-Key
string
required

API Key for authentication

Query Parameters

contractId
integer<int64>
required

The unique identifier of the subscription contract

deliveryPrice
number<double>
required

New delivery price to be applied to the subscription contract. This is a fixed price that overrides any calculated shipping rates. Set to 0 for free delivery. Price must be in the shop's base currency.

Required range: 0 <= x <= 99999.99
api_key
string

Deprecated API Key parameter; use the X-API-Key header instead

Response

Successfully updated delivery price and returned the updated subscription contract

get__typename
string
id
string
createdAt
object
updatedAt
object
nextBillingDate
object
status
enum<string>
Available options:
ACTIVE,
PAUSED,
CANCELLED,
EXPIRED,
FAILED,
$UNKNOWN
deliveryPrice
object
lastPaymentStatus
enum<string>
Available options:
SUCCEEDED,
FAILED,
$UNKNOWN
billingPolicy
object
deliveryPolicy
object
lines
object
customerPaymentMethod
object
deliveryMethod
object
originOrder
object
customer
object
discounts
object
note
string
customAttributes
object[]
billingAttempts
object