Create subscriptionAsk AIpost https://api.loopsubscriptions.com/admin/2023-10/subscriptionBody ParamscustomerShopifyIdint64requiredThe unique identifier of the customer in ShopifynextBillingDateEpochint32requiredNext billing date (in epoch seconds) of the subscription.currencyCodestringrequiredCurrency code of the subscriptionpaymentMethodIdint32requiredID of the payment method of the customerbillingPolicyobjectrequiredDefines when the customer is billed, including interval (e.g., monthly, yearly), interval count, min and max cycle for billing.billingPolicy objectdeliveryPolicyobjectrequiredSpecifies how often deliveries occur, including delivery interval and interval count (e.g., every 2 weeks, monthly).deliveryPolicy objectlinesarray of objectsrequiredSpecifies list of variants to be included in the subscription, each with their variantShopifyIdlines*ADD objectshippingAddressobjectThe address where subscription orders will be delivered, including name, street, city, zip code, and country/province codes.It is required if at least one item in the order is a physical product that requires shipping.shippingAddress objectoriginOrderShopifyIdint64The Shopify order ID from which the subscription originated, used to link the subscription back to the original purchase.discountCodestringmanualDiscountobjectApply manual discount on a subscription contractmanualDiscount objectcustomAttributesarray of objectsAdd subscription attributes while creating subscriptioncustomAttributesADD objectpaymentMethodShopifyIdstringUnique identifier of payment method id in Shopify.Response 200200Updated 3 months ago