Updates an existing subscription contract’s details from the customer portal.
curl --request PUT \
--url https://www.myshop.com/apps/memberships/cp/api/subscription-contract-details \
--header 'Content-Type: application/json' \
--data '
{
"shop": "<string>"
}
'{
"shop": "<string>",
"id": 123,
"graphSubscriptionContractId": "<string>",
"subscriptionContractId": 123,
"billingPolicyInterval": "<string>",
"billingPolicyIntervalCount": 123,
"currencyCode": "<string>",
"customerId": 123,
"graphCustomerId": "<string>",
"deliveryPolicyInterval": "<string>",
"deliveryPolicyIntervalCount": 123,
"status": "<string>",
"graphOrderId": "<string>",
"orderId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"nextBillingDate": "2023-11-07T05:31:56Z",
"orderAmount": 123,
"orderName": "<string>",
"customerName": "<string>",
"customerEmail": "<string>",
"subscriptionCreatedEmailSent": true,
"endsAt": "2023-11-07T05:31:56Z",
"startsAt": "2023-11-07T05:31:56Z",
"minCycles": 123,
"maxCycles": 123,
"customerFirstName": "<string>",
"customerLastName": "<string>",
"autoCharge": true,
"importedId": "<string>",
"stopUpComingOrderEmail": true,
"pausedFromActive": true,
"phone": "<string>",
"activatedOn": "2023-11-07T05:31:56Z",
"pausedOn": "2023-11-07T05:31:56Z",
"cancelledOn": "2023-11-07T05:31:56Z",
"contractDetailsJSON": "<string>",
"cancellationFeedback": "<string>",
"orderNote": "<string>",
"orderNoteAttributes": "<string>",
"allowDeliveryPriceOverride": true,
"orderAmountUSD": 123,
"billingDateAfterTrial": "2023-11-07T05:31:56Z",
"trialEndDate": "2023-11-07T05:31:56Z",
"pausedBySecurityChallenge": true,
"dunning": true,
"contractAmount": 123,
"contractAmountUSD": 123,
"upcomingSwapRule": "<string>",
"emailBouncedOrFailed": true
}Documentation Index
Fetch the complete documentation index at: https://developers.appstle.com/llms.txt
Use this file to discover all available pages before exploring further.
SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_PAUSED_STATUS SENT, UNSENT, FAILED, SMS_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_PAUSED_STATUS, PHONE_NUMBER_EMPTY OK
SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_PAUSED_STATUS SENT, UNSENT, FAILED, SMS_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_PAUSED_STATUS, PHONE_NUMBER_EMPTY curl --request PUT \
--url https://www.myshop.com/apps/memberships/cp/api/subscription-contract-details \
--header 'Content-Type: application/json' \
--data '
{
"shop": "<string>"
}
'{
"shop": "<string>",
"id": 123,
"graphSubscriptionContractId": "<string>",
"subscriptionContractId": 123,
"billingPolicyInterval": "<string>",
"billingPolicyIntervalCount": 123,
"currencyCode": "<string>",
"customerId": 123,
"graphCustomerId": "<string>",
"deliveryPolicyInterval": "<string>",
"deliveryPolicyIntervalCount": 123,
"status": "<string>",
"graphOrderId": "<string>",
"orderId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"nextBillingDate": "2023-11-07T05:31:56Z",
"orderAmount": 123,
"orderName": "<string>",
"customerName": "<string>",
"customerEmail": "<string>",
"subscriptionCreatedEmailSent": true,
"endsAt": "2023-11-07T05:31:56Z",
"startsAt": "2023-11-07T05:31:56Z",
"minCycles": 123,
"maxCycles": 123,
"customerFirstName": "<string>",
"customerLastName": "<string>",
"autoCharge": true,
"importedId": "<string>",
"stopUpComingOrderEmail": true,
"pausedFromActive": true,
"phone": "<string>",
"activatedOn": "2023-11-07T05:31:56Z",
"pausedOn": "2023-11-07T05:31:56Z",
"cancelledOn": "2023-11-07T05:31:56Z",
"contractDetailsJSON": "<string>",
"cancellationFeedback": "<string>",
"orderNote": "<string>",
"orderNoteAttributes": "<string>",
"allowDeliveryPriceOverride": true,
"orderAmountUSD": 123,
"billingDateAfterTrial": "2023-11-07T05:31:56Z",
"trialEndDate": "2023-11-07T05:31:56Z",
"pausedBySecurityChallenge": true,
"dunning": true,
"contractAmount": 123,
"contractAmountUSD": 123,
"upcomingSwapRule": "<string>",
"emailBouncedOrFailed": true
}