v1

latestOpenAPI 3.1.02026-07-241120379.1 KB

Create subscription

post/2023-10/subscription

Request body

customerShopifyIdinteger required

The unique identifier of the customer in Shopify

nextBillingDateEpochinteger required

Next billing date (in epoch seconds) of the subscription.

currencyCodestring required

Currency code of the subscription

paymentMethodIdinteger required

ID of the payment method of the customer

originOrderShopifyIdinteger

The Shopify order ID from which the subscription originated, used to link the subscription back to the original purchase.

discountCodestring
paymentMethodShopifyIdstring

Unique identifier of payment method id in Shopify.

Response

200

successboolean
messagestring
datastring
codestring
pageInfostring

Example response

{
  "success": true,
  "message": "Subscription created successfully",
  "code": "SUCCESS"
}