Skip to content

External APIs (0.0.1)

Comprehensive API documentation for managing subscriptions, payments, and related operations. These APIs allow you to programmatically manage subscription lifecycles, handle payments, configure products, and integrate subscription functionality into your applications.

Languages
Servers
https://subscription-admin.appstle.com

Subscription Management

Core APIs for managing the complete subscription lifecycle including creation, updates, pausing, resuming, and cancellation of subscriptions.

Operations

Subscription Payments

APIs for managing subscription payment methods, processing payments, handling payment retries, and updating billing information.

Operations

Subscription Contracts

APIs for managing subscription contracts including delivery schedules, pricing, order notes, billing cycles, and shipping addresses.

Operations

Subscription Products

APIs for managing products within subscriptions including adding, removing, updating quantities, and swapping products.

Operations

Billing & Payments

APIs for handling billing operations, payment processing, and financial transactions related to subscriptions.

Operations

Subscription Discounts

APIs for managing discounts and promotional codes applied to subscriptions.

Operations

Subscription One-Time Products

APIs for managing one-time add-on products that can be purchased alongside recurring subscription items.

Operations

Subscription Plans

APIs for managing subscription plans, pricing tiers, and plan configurations.

Operations

Build-a-Box & Bundles

APIs for managing customizable product boxes and bundles where customers can select multiple items.

Operations

Product Catalog

APIs for managing the product catalog including product information, variants, and inventory.

Operations

Get a specific product swap by ID

Request

Retrieves detailed information about a specific product swap automation configuration. This endpoint returns complete details about the source products, destination products, swap triggers, and all associated settings.

Response Details:

  • Complete swap configuration
  • Source product variants with images and quantities
  • Destination product variants with images and quantities
  • Billing cycle triggers and conditions
  • Discount carry-forward settings
  • Email notification preferences
  • Swap status and history

Source and Destination Variants: Both source and destination variants are returned as JSON strings containing:

  • Variant ID
  • Display name/title
  • Product image URL
  • Quantity to swap
  • Product metadata

Swap Timing:

  • forBillingCycle: If set, swap occurs at this specific cycle number
  • checkForEveryRecurringOrder: If true, swap happens on every order
  • updatedFirstOrder: If true, can affect the initial subscription order

Discount Handling:

  • NONE: No discount carried forward
  • PERCENTAGE: Percentage discount is maintained
  • FIXED_AMOUNT: Fixed amount discount is maintained
  • PRICE: Specific price point is maintained

Authentication: Requires valid X-API-Key header

Path
idinteger(int64)required
Headers
X-API-Keystring
curl -i -X GET \
  'https://subscription-admin.appstle.com/api/external/v2/product-swaps/{id}' \
  -H 'X-API-Key: string'

Responses

Product swap returned successfully

Bodyapplication/json
idinteger(int64)
shopstringrequired
sourceVariantsstring
destinationVariantsstring
updatedFirstOrderboolean
checkForEveryRecurringOrderboolean
namestring
changeNextOrderDateByinteger(int32)
forBillingCycleinteger(int32)
carryDiscountForwardboolean
ruleSequenceinteger(int32)
stopSwapEmailsboolean
discountCarryForwardstring
Enum"NONE""EXISTING_PLAN""PRODUCT_PLAN""PRODUCT_THEN_EXISTING"
Response
application/json
{ "id": 0, "shop": "string", "sourceVariants": "string", "destinationVariants": "string", "updatedFirstOrder": true, "checkForEveryRecurringOrder": true, "name": "string", "changeNextOrderDateBy": 0, "forBillingCycle": 0, "carryDiscountForward": true, "ruleSequence": 0, "stopSwapEmails": true, "discountCarryForward": "NONE" }

Delete a product swap automation

Request

Permanently deletes a product swap automation configuration. Once deleted, the swap will no longer be applied to any subscription orders. Existing subscriptions that have already had products swapped are not affected.

Deletion Behavior:

  • Permanently removes the swap automation
  • Does not reverse past swaps that have already occurred
  • Future orders will not have this swap applied
  • Cannot be undone - swap configuration must be recreated if needed

Impact on Subscriptions:

  • Active Subscriptions: Will continue with current products (no automatic reversion)
  • Future Orders: Swap will not be applied
  • Past Orders: Already swapped products remain unchanged
  • Queued Swaps: Pending swaps for this automation are cancelled

When to Delete:

  • Discontinuing a seasonal product rotation
  • Removing outdated swap rules
  • Cleaning up test or experimental swaps
  • Product lines being discontinued
  • Correcting misconfigured swaps

Important Notes:

  • This operation is permanent and cannot be undone
  • Consider deactivating instead of deleting if you might reuse the configuration
  • Activity logs for past swaps are retained
  • Customers are not automatically notified of swap deletion

Best Practices:

  • Review affected subscriptions before deletion
  • Consider communicating changes to affected customers
  • Export swap configuration if you might need it later
  • Use deactivation for temporary pauses instead of deletion

Authentication: Requires valid X-API-Key header

Path
idinteger(int64)required
Headers
X-API-Keystring
curl -i -X DELETE \
  'https://subscription-admin.appstle.com/api/external/v2/product-swaps/{id}' \
  -H 'X-API-Key: string'

Responses

Product swap successfully deleted - No content returned

Response
No content

Operations & Settings

APIs for managing operational settings, configurations, and administrative functions.

Operations

Customer Portal

APIs powering the customer-facing portal where subscribers can manage their own subscriptions.

Operations

Customers

APIs for managing customer information, profiles, and account details.

Operations