Skip to main content
PUT
/
subscriptions
/
cp
/
api
/
subscription-contracts-update-shipping-address
curl --request PUT \
  --url https://www.myshop.com/apps/subscriptions/cp/api/subscription-contracts-update-shipping-address \
  --header 'Content-Type: application/json' \
  --data '
{
  "methodType": "SHIPPING",
  "firstName": "John",
  "lastName": "Doe",
  "company": "Acme Corp",
  "address1": "456 New Street",
  "address2": "Suite 200",
  "city": "Los Angeles",
  "provinceCode": "CA",
  "countryCode": "US",
  "zip": "90001",
  "phone": "+12135551234"
}
'
{
  "id": "gid://shopify/SubscriptionContract/123456789",
  "status": "ACTIVE",
  "nextBillingDate": "2024-03-01T00:00:00Z",
  "customer": {
    "id": "gid://shopify/Customer/987654321",
    "email": "customer@example.com"
  },
  "deliveryMethod": {
    "__typename": "SubscriptionDeliveryMethodShipping",
    "address": {
      "address1": "456 New Street",
      "address2": "Suite 200",
      "city": "Los Angeles",
      "provinceCode": "CA",
      "countryCode": "US",
      "zip": "90001",
      "firstName": "John",
      "lastName": "Doe",
      "company": "Acme Corp",
      "phone": "+12135551234"
    }
  },
  "deliveryPrice": {
    "amount": "7.99",
    "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.

Query Parameters

contractId
integer<int64>
required

Body

application/json

New shipping address and delivery method details

address1
string
address2
string
city
string
firstName
string
lastName
string
phone
string
province
string
zip
string
country
string
countryCode
string
provinceCode
string
company
string
locationId
string
methodType
string

Response

Shipping address successfully updated

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