APIs for managing Shopify delivery profiles, shipping rates, zones, and free shipping configuration for subscription memberships
- Cancel pending downgrade for a subscription contract
External (0.0.1)
Request
Retrieves the pending/scheduled downgrade details for a specific subscription contract. This endpoint returns information about a downgrade that has been scheduled but not yet executed.
Response Information:
- contractId: The subscription contract ID
- waitTillTimestamp: When the downgrade will be executed
- oldVariantId: The current product variant ID
- newVariantId: The target product variant ID after downgrade
- oldPrice: Current subscription price
- newPrice: New price after downgrade
- sellingPlanId: The selling plan ID for the new subscription
- sellingPlanName: Name of the selling plan
Use Cases:
- Check if a customer has a pending downgrade scheduled
- Display pending downgrade information in custom dashboards
- Verify downgrade details before allowing further modifications
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
- https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/12345/pending-downgrade?api_key=string' \
-H 'X-API-Key: string'{ "shop": "string", "contractId": 0, "waitTillTimestamp": "string", "oldLineId": "string", "oldVariantId": "string", "newVariantId": "string", "sellingPlanId": "string", "sellingPlanName": "string", "oldPrice": 0.1, "newPrice": 0.1, "newCustomerTag": "string", "oldCustomerTags": "string", "newOrderTag": "string", "eventSource": "string", "retryCount": 0, "customerId": 0, "executionArn": "string" }
Request
Cancels a scheduled/pending downgrade for a specific subscription contract. This endpoint removes the pending downgrade so that the subscription will continue with its current plan.
Important Notes:
- The downgrade must be pending (not yet executed) to be cancelled
- Once cancelled, the subscription will remain on its current plan
- An activity log entry is created when a downgrade is cancelled
Use Cases:
- Allow customers to change their mind about a scheduled downgrade
- Cancel downgrades when customers upgrade or renew
- Administrative cancellation of pending plan changes
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
- https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/{contractId}/pending-downgrade
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/12345/pending-downgrade?api_key=string' \
-H 'X-API-Key: string'Request
Retrieves fulfillment information for the most recent order generated by a subscription contract. Shows shipping status, tracking numbers, and delivery progress.
Key Features:
- Latest Order: Returns fulfillment data for the most recent subscription order
- Tracking Info: Includes tracking numbers, URLs, and shipping carriers
- Fulfillment Status: Shows whether items are unfulfilled, fulfilled, or partially fulfilled
- Multi-Fulfillment: Handles orders split across multiple shipments
Returned Fulfillment Data:
- Order Info: Order name/number, creation date, financial status
- Fulfillment Status: FULFILLED, PARTIAL, UNFULFILLED, etc.
- Fulfillments List: Array of all fulfillments for the order
- Tracking Numbers: Tracking codes for each fulfillment
- Tracking URLs: Direct links to carrier tracking pages
- Shipping Carrier: Carrier name (USPS, FedEx, UPS, etc.)
- Fulfillment Date: When each shipment was fulfilled
- Line Items: Which products/variants are in each shipment
- Delivery Address: Where the order is being shipped
Common Use Cases:
- Order Tracking: Show customers where their subscription delivery is
- Customer Portal: Display "Track Your Order" links
- Shipping Updates: Check fulfillment status for recent orders
- Support: Help customers track delayed or missing shipments
- Notifications: Trigger custom shipping notifications
- Analytics: Track fulfillment performance metrics
Response Structure: Returns an Order object containing:
- Basic order information
- Array of fulfillments with tracking details
- Line items per fulfillment
- Shipping and delivery information
Note: This returns data for the MOST RECENT order only. For historical fulfillment data, use order history endpoints.
Parameters:
- contractId (required, path): The subscription contract ID
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
- https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/subscription-fulfillments/{contractId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://membership-admin.appstle.com/api/external/v2/subscription-contract-details/subscription-fulfillments/12345?api_key=string' \
-H 'X-API-Key: string'{ "get__typename": "string", "id": "string", "fulfillmentOrders": { "get__typename": "string", "nodes": [ … ], "pageInfo": { … } } }