---
updatedAt: 2026-07-24T17:59:48.000Z
agentTools:
  projectIndex: https://docs.stay.ai/llms.txt
---

# Create Webhook Subscription

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "web-hooks",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.retextion.com/api/v2/webhooks"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RETEXTION-ACCESS-TOKEN",
        "x-default": "{{APP_API_KEY}}"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/": {
      "post": {
        "summary": "Create Webhook Subscription",
        "description": "",
        "operationId": "create-webhook-subscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "event",
                  "url"
                ],
                "properties": {
                  "event": {
                    "type": "string",
                    "description": "Webhook Topics include `SUBSCRIPTION`, `CANCELLATION`, `FAILED_PAYMENT`, `SUCCESSFUL_PAYMENT`, `SUBSCRIPTION_UPDATE`, `SUBSCRIPTION_UPDATE_GRANULAR`, `DATA_EXPORTED`, `SPG_CREATED`, `SPG_UPDATED`, `REACTIVATION`, `ORDER_CREATED`, `CUSTOMER_CREATED`, `CUSTOMER_REACTIVATED`, `CUSTOMER_CANCELLED`"
                  },
                  "url": {
                    "type": "string",
                    "description": "Webhook URL"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Failed Payment": {
                    "value": "[\n    {\n        \"subscriptionContract\": {\n            \"id\": \"1\",\n            \"createdAt\": \"2023-08-04T17:59:42.898Z\",\n            \"updatedAt\": \"2023-08-04T17:59:42.898Z\",\n            \"shopifySubscriptionContractId\": \"gid://shopify/SubscriptionContract/123\",\n            \"status\": \"ACTIVE\",\n            \"shopifyCreatedAt\": \"2023-08-04T17:59:25.000Z\",\n            \"nextBillingDate\": \"2023-09-03T17:00:00.000Z\",\n            \"scheduledBillingDate\": \"2023-09-03T17:00:00.000Z\",\n            \"pausedUntil\": null,\n            \"dunningStartedAt\": null,\n            \"dunningExitedAt\": null,\n            \"cancelledAt\": null,\n            \"cancellationReasons\": null,\n            \"cancelledBy\": null,\n            \"billingPolicy\": {\n                \"interval\": \"DAY\",\n                \"intervalCount\": 30\n            },\n            \"anchors\": null,\n            \"assignedPricingPolicy\": [\n                {\n                    \"adjustmentType\": \"PERCENTAGE\",\n                    \"adjustmentValue\": {\n                        \"percentage\": 20\n                    }\n                }\n            ],\n            \"address\": {\n                \"zip\": \"12345\",\n                \"city\": \"Fake City\",\n                \"phone\": null,\n                \"company\": null,\n                \"country\": \"United States\",\n                \"address1\": \"123 Street\",\n                \"address2\": null,\n                \"lastName\": \"John\",\n                \"province\": \"Florida\",\n                \"firstName\": \"Doe\",\n                \"countryCode\": \"US\",\n                \"provinceCode\": \"FL\"\n            },\n            \"giftAddress\": null,\n            \"lineCount\": 1,\n            \"originOrderId\": \"gid://shopify/Order123\",\n            \"originOrderPrice\": 32.07,\n            \"currencyCode\": \"USD\",\n            \"failedPaymentBillingAttempts\": 0,\n            \"outOfStockBillingAttempts\": 0,\n            \"prePaid\": false,\n            \"prepaidNextDeliveryDate\": null,\n            \"prepaidShipmentsRemaining\": 0,\n            \"prepaidDeliveryPolicy\": null,\n            \"prepaidAllowRenewal\": false,\n            \"prepaidRenewNextOrder\": false,\n            \"prepaidtotalShipmentsPerCycle\": null,\n            \"prepaidCancelAtEndOfCycle\": false,\n            \"paymentMethodId\": \"gid://shopify/CustomerPaymentMethod/123\",\n            \"deliveryPrice\": 0,\n            \"deletedAt\": null,\n            \"lastSeenIp\": \"\",\n            \"churnRisk\": null,\n            \"notes\": null,\n            \"accountId\": \"1\",\n            \"accountCustomerId\": \"1\",\n            \"lines\": []\n        },\n        \"customer\": {\n            \"id\": \"1\",\n            \"createdAt\": \"2023-05-07T18:57:32.230Z\",\n            \"updatedAt\": \"2023-08-04T17:59:41.851Z\",\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"\",\n            \"phone\": \"\",\n            \"shopifyCustomerId\": \"gid://shopify/Customer/123\"\n        },\n        \"shopifyPayload\": {\n            \"id\": 1,\n            \"status\": \"active\",\n            \"customer_id\": 1,\n            \"revision_id\": \"1\",\n            \"currency_code\": \"USD\",\n            \"billing_policy\": {\n                \"interval\": \"day\",\n                \"max_cycles\": null,\n                \"min_cycles\": null,\n                \"interval_count\": 30\n            },\n            \"delivery_policy\": {\n                \"interval\": \"day\",\n                \"interval_count\": 30\n            },\n            \"origin_order_id\": 1,\n            \"admin_graphql_api_id\": \"gid://shopify/SubscriptionContract/123\",\n            \"admin_graphql_api_customer_id\": \"gid://shopify/Customer/123\",\n            \"admin_graphql_api_origin_order_id\": \"gid://shopify/Order/123\"\n        }\n    }\n]"
                  },
                  "Subscription": {
                    "value": "[\n    {\n        \"subscriptionContract\": {\n            \"id\": \"1\",\n            \"createdAt\": \"2023-08-04T17:59:42.898Z\",\n            \"updatedAt\": \"2023-08-04T17:59:42.898Z\",\n            \"shopifySubscriptionContractId\": \"gid://shopify/SubscriptionContract/123\",\n            \"status\": \"ACTIVE\",\n            \"shopifyCreatedAt\": \"2023-08-04T17:59:25.000Z\",\n            \"nextBillingDate\": \"2023-09-03T17:00:00.000Z\",\n            \"scheduledBillingDate\": \"2023-09-03T17:00:00.000Z\",\n            \"pausedUntil\": null,\n            \"dunningStartedAt\": null,\n            \"dunningExitedAt\": null,\n            \"cancelledAt\": null,\n            \"cancellationReasons\": null,\n            \"cancelledBy\": null,\n            \"billingPolicy\": {\n                \"interval\": \"DAY\",\n                \"intervalCount\": 30\n            },\n            \"anchors\": null,\n            \"assignedPricingPolicy\": [\n                {\n                    \"adjustmentType\": \"PERCENTAGE\",\n                    \"adjustmentValue\": {\n                        \"percentage\": 20\n                    }\n                }\n            ],\n            \"address\": {\n                \"zip\": \"12345\",\n                \"city\": \"Fake City\",\n                \"phone\": null,\n                \"company\": null,\n                \"country\": \"United States\",\n                \"address1\": \"123 Street\",\n                \"address2\": null,\n                \"lastName\": \"John\",\n                \"province\": \"Florida\",\n                \"firstName\": \"Doe\",\n                \"countryCode\": \"US\",\n                \"provinceCode\": \"FL\"\n            },\n            \"giftAddress\": null,\n            \"lineCount\": 1,\n            \"originOrderId\": \"gid://shopify/Order123\",\n            \"originOrderPrice\": 32.07,\n            \"currencyCode\": \"USD\",\n            \"failedPaymentBillingAttempts\": 0,\n            \"outOfStockBillingAttempts\": 0,\n            \"prePaid\": false,\n            \"prepaidNextDeliveryDate\": null,\n            \"prepaidShipmentsRemaining\": 0,\n            \"prepaidDeliveryPolicy\": null,\n            \"prepaidAllowRenewal\": false,\n            \"prepaidRenewNextOrder\": false,\n            \"prepaidtotalShipmentsPerCycle\": null,\n            \"prepaidCancelAtEndOfCycle\": false,\n            \"paymentMethodId\": \"gid://shopify/CustomerPaymentMethod/123\",\n            \"deliveryPrice\": 0,\n            \"deletedAt\": null,\n            \"lastSeenIp\": \"\",\n            \"churnRisk\": null,\n            \"notes\": null,\n            \"accountId\": \"1\",\n            \"accountCustomerId\": \"1\",\n            \"lines\": []\n        },\n        \"customer\": {\n            \"id\": \"1\",\n            \"createdAt\": \"2023-05-07T18:57:32.230Z\",\n            \"updatedAt\": \"2023-08-04T17:59:41.851Z\",\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"\",\n            \"phone\": \"\",\n            \"shopifyCustomerId\": \"gid://shopify/Customer/123\"\n        },\n        \"shopifyPayload\": {\n            \"id\": 1,\n            \"status\": \"active\",\n            \"customer_id\": 1,\n            \"revision_id\": \"1\",\n            \"currency_code\": \"USD\",\n            \"billing_policy\": {\n                \"interval\": \"day\",\n                \"max_cycles\": null,\n                \"min_cycles\": null,\n                \"interval_count\": 30\n            },\n            \"delivery_policy\": {\n                \"interval\": \"day\",\n                \"interval_count\": 30\n            },\n            \"origin_order_id\": 1,\n            \"admin_graphql_api_id\": \"gid://shopify/SubscriptionContract/123\",\n            \"admin_graphql_api_customer_id\": \"gid://shopify/Customer/123\",\n            \"admin_graphql_api_origin_order_id\": \"gid://shopify/Order/123\"\n        }\n    }\n]"
                  },
                  "Subscription Update": {
                    "value": "[\n    {\n        \"subscriptionContract\": {\n            \"id\": \"1\",\n            \"createdAt\": \"2023-08-04T17:59:42.898Z\",\n            \"updatedAt\": \"2023-08-04T17:59:42.898Z\",\n            \"shopifySubscriptionContractId\": \"gid://shopify/SubscriptionContract/123\",\n            \"status\": \"ACTIVE\",\n            \"shopifyCreatedAt\": \"2023-08-04T17:59:25.000Z\",\n            \"nextBillingDate\": \"2023-09-03T17:00:00.000Z\",\n            \"scheduledBillingDate\": \"2023-09-03T17:00:00.000Z\",\n            \"pausedUntil\": null,\n            \"dunningStartedAt\": null,\n            \"dunningExitedAt\": null,\n            \"cancelledAt\": null,\n            \"cancellationReasons\": null,\n            \"cancelledBy\": null,\n            \"billingPolicy\": {\n                \"interval\": \"DAY\",\n                \"intervalCount\": 30\n            },\n            \"anchors\": null,\n            \"assignedPricingPolicy\": [\n                {\n                    \"adjustmentType\": \"PERCENTAGE\",\n                    \"adjustmentValue\": {\n                        \"percentage\": 20\n                    }\n                }\n            ],\n            \"address\": {\n                \"zip\": \"12345\",\n                \"city\": \"Fake City\",\n                \"phone\": null,\n                \"company\": null,\n                \"country\": \"United States\",\n                \"address1\": \"123 Street\",\n                \"address2\": null,\n                \"lastName\": \"John\",\n                \"province\": \"Florida\",\n                \"firstName\": \"Doe\",\n                \"countryCode\": \"US\",\n                \"provinceCode\": \"FL\"\n            },\n            \"giftAddress\": null,\n            \"lineCount\": 1,\n            \"originOrderId\": \"gid://shopify/Order123\",\n            \"originOrderPrice\": 32.07,\n            \"currencyCode\": \"USD\",\n            \"failedPaymentBillingAttempts\": 0,\n            \"outOfStockBillingAttempts\": 0,\n            \"prePaid\": false,\n            \"prepaidNextDeliveryDate\": null,\n            \"prepaidShipmentsRemaining\": 0,\n            \"prepaidDeliveryPolicy\": null,\n            \"prepaidAllowRenewal\": false,\n            \"prepaidRenewNextOrder\": false,\n            \"prepaidtotalShipmentsPerCycle\": null,\n            \"prepaidCancelAtEndOfCycle\": false,\n            \"paymentMethodId\": \"gid://shopify/CustomerPaymentMethod/123\",\n            \"deliveryPrice\": 0,\n            \"deletedAt\": null,\n            \"lastSeenIp\": \"\",\n            \"churnRisk\": null,\n            \"notes\": null,\n            \"accountId\": \"1\",\n            \"accountCustomerId\": \"1\",\n            \"lines\": []\n        },\n        \"customer\": {\n            \"id\": \"1\",\n            \"createdAt\": \"2023-05-07T18:57:32.230Z\",\n            \"updatedAt\": \"2023-08-04T17:59:41.851Z\",\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"\",\n            \"phone\": \"\",\n            \"shopifyCustomerId\": \"gid://shopify/Customer/123\"\n        },\n        \"shopifyPayload\": {\n            \"id\": 1,\n            \"status\": \"active\",\n            \"customer_id\": 1,\n            \"revision_id\": \"1\",\n            \"currency_code\": \"USD\",\n            \"billing_policy\": {\n                \"interval\": \"day\",\n                \"max_cycles\": null,\n                \"min_cycles\": null,\n                \"interval_count\": 30\n            },\n            \"delivery_policy\": {\n                \"interval\": \"day\",\n                \"interval_count\": 30\n            },\n            \"origin_order_id\": 1,\n            \"admin_graphql_api_id\": \"gid://shopify/SubscriptionContract/123\",\n            \"admin_graphql_api_customer_id\": \"gid://shopify/Customer/123\",\n            \"admin_graphql_api_origin_order_id\": \"gid://shopify/Order/123\"\n        }\n    }\n]"
                  },
                  "Cancellation": {
                    "value": [
                      {
                        "subscriptionContract": {
                          "id": "1",
                          "createdAt": "2023-08-04T17:59:42.898Z",
                          "updatedAt": "2023-08-04T17:59:42.898Z",
                          "shopifySubscriptionContractId": "gid://shopify/SubscriptionContract/123",
                          "status": "ACTIVE",
                          "shopifyCreatedAt": "2023-08-04T17:59:25.000Z",
                          "nextBillingDate": "2023-09-03T17:00:00.000Z",
                          "scheduledBillingDate": "2023-09-03T17:00:00.000Z",
                          "pausedUntil": null,
                          "dunningStartedAt": null,
                          "dunningExitedAt": null,
                          "cancelledAt": null,
                          "cancellationReasons": null,
                          "cancelledBy": null,
                          "billingPolicy": {
                            "interval": "DAY",
                            "intervalCount": 30
                          },
                          "anchors": null,
                          "assignedPricingPolicy": [
                            {
                              "adjustmentType": "PERCENTAGE",
                              "adjustmentValue": {
                                "percentage": 20
                              }
                            }
                          ],
                          "address": {
                            "zip": "12345",
                            "city": "Fake City",
                            "phone": null,
                            "company": null,
                            "country": "United States",
                            "address1": "123 Street",
                            "address2": null,
                            "lastName": "John",
                            "province": "Florida",
                            "firstName": "Doe",
                            "countryCode": "US",
                            "provinceCode": "FL"
                          },
                          "giftAddress": null,
                          "lineCount": 1,
                          "originOrderId": "gid://shopify/Order123",
                          "originOrderPrice": 32.07,
                          "currencyCode": "USD",
                          "failedPaymentBillingAttempts": 0,
                          "outOfStockBillingAttempts": 0,
                          "prePaid": false,
                          "prepaidNextDeliveryDate": null,
                          "prepaidShipmentsRemaining": 0,
                          "prepaidDeliveryPolicy": null,
                          "prepaidAllowRenewal": false,
                          "prepaidRenewNextOrder": false,
                          "prepaidtotalShipmentsPerCycle": null,
                          "prepaidCancelAtEndOfCycle": false,
                          "paymentMethodId": "gid://shopify/CustomerPaymentMethod/123",
                          "deliveryPrice": 0,
                          "deletedAt": null,
                          "lastSeenIp": "",
                          "churnRisk": null,
                          "notes": null,
                          "accountId": "1",
                          "accountCustomerId": "1",
                          "lines": [
                            {
                              "id": "clx8line000000example001",
                              "subscriptionContractLineItemId": "gid://shopify/SubscriptionLine/111",
                              "shopifySellingPlanId": "gid://shopify/SellingPlan/222",
                              "title": "House Blend Coffee - 12oz",
                              "shopifyProductId": "gid://shopify/Product/7001",
                              "variantId": "gid://shopify/ProductVariant/8001",
                              "variantTitle": "12oz / Whole Bean",
                              "sku": "COF-HB-12",
                              "currentPrice": 24,
                              "lineDiscountedPrice": 21.6,
                              "quantity": 1,
                              "isOneTime": false,
                              "type": "STANDARD",
                              "subscriptionContractId": "clx8sub0000001example001"
                            },
                            {
                              "id": "clx8line000000example002",
                              "subscriptionContractLineItemId": "gid://shopify/SubscriptionLine/112",
                              "shopifySellingPlanId": null,
                              "title": "Reusable Filter (one-time)",
                              "shopifyProductId": "gid://shopify/Product/7002",
                              "variantId": "gid://shopify/ProductVariant/8002",
                              "sku": "ACC-FLT-01",
                              "currentPrice": 9,
                              "lineDiscountedPrice": 9,
                              "quantity": 1,
                              "isOneTime": true,
                              "type": "STANDARD",
                              "subscriptionContractId": "clx8sub0000001example001"
                            }
                          ]
                        },
                        "shopifyPayload": {
                          "id": 1,
                          "status": "active",
                          "customer_id": 1,
                          "revision_id": "1",
                          "currency_code": "USD",
                          "billing_policy": {
                            "interval": "day",
                            "max_cycles": null,
                            "min_cycles": null,
                            "interval_count": 30
                          },
                          "delivery_policy": {
                            "interval": "day",
                            "interval_count": 30
                          },
                          "origin_order_id": 1,
                          "admin_graphql_api_id": "gid://shopify/SubscriptionContract/123",
                          "admin_graphql_api_customer_id": "gid://shopify/Customer/123",
                          "admin_graphql_api_origin_order_id": "gid://shopify/Order/123"
                        }
                      }
                    ]
                  },
                  "Successful Payment": {
                    "value": "[\n  {\n        \"customer\": {\n            \"id\": \"1\",\n            \"createdAt\": \"2023-05-07T18:57:32.230Z\",\n            \"updatedAt\": \"2023-08-04T17:59:41.851Z\",\n            \"firstName\": \"John\",\n            \"lastName\": \"Doe\",\n            \"email\": \"\",\n            \"phone\": \"\",\n            \"shopifyCustomerId\": \"gid://shopify/Customer/123\"\n        },\n        \"shopifyPayload\": {\n            \"id\": 1,\n            \"status\": \"active\",\n            \"customer_id\": 1,\n            \"revision_id\": \"1\",\n            \"currency_code\": \"USD\",\n            \"billing_policy\": {\n                \"interval\": \"day\",\n                \"max_cycles\": null,\n                \"min_cycles\": null,\n                \"interval_count\": 30\n            },\n            \"delivery_policy\": {\n                \"interval\": \"day\",\n                \"interval_count\": 30\n            },\n            \"origin_order_id\": 1,\n            \"admin_graphql_api_id\": \"gid://shopify/SubscriptionContract/123\",\n            \"admin_graphql_api_customer_id\": \"gid://shopify/Customer/123\",\n            \"admin_graphql_api_origin_order_id\": \"gid://shopify/Order/123\"\n        }\n    }\n]"
                  },
                  "Selling Plan Group Create": {
                    "value": "{\n    \"name\": \"Name\",\n    \"options\": \"Options\",\n    \"customLabel\": \"Custom Label\",\n    \"customDescription\": \"Description\",\n    \"productIds\": [],\n    \"variantIds\": [\n        \"gid://shopify/ProductVariant/123\",\n        \"gid://shopify/ProductVariant/123\"\n    ],\n    \"sellingPlansToCreate\": [\n        {\n            \"name\": \"Weekly\",\n            \"options\": \"Weekly\",\n            \"position\": 1,\n            \"billingPolicy\": {\n                \"interval\": \"WEEK\",\n                \"intervalCount\": \"1\"\n            },\n            \"pricingPolicies\": [\n                {\n                    \"adjustmentType\": \"PERCENTAGE\",\n                    \"adjustmentValue\": {\n                        \"percentage\": 10\n                    }\n                }\n            ]\n        }\n    ]\n}"
                  },
                  "Selling Plan Group Update": {
                    "value": "{\n    \"customLabel\": \"Label\",\n    \"customDescription\": \"Description\",\n    \"name\": \"Name,\n    \"bundleMinimum\": 0,\n    \"bundleMaximum\": 0,\n    \"options\": \"Options\",\n    \"cutoffDays\": 0,\n    \"allowGifting\": false,\n    \"prepaidAllowRenewal\": false,\n    \"skipOneProductEnabled\": false,\n    \"productIds\": [],\n    \"variantIds\": [\n        \"gid://shopify/ProductVariant/123\"\n        \"gid://shopify/ProductVariant/123\"\n    ],\n    \"sellingPlansToUpdate\": [\n        {\n            \"id\": \"gid://shopify/SellingPlan/123\",\n            \"name\": \"Weekly\",\n            \"options\": \"Weekly\",\n            \"position\": 1,\n            \"billingPolicy\": {\n                \"interval\": \"WEEK\",\n                \"intervalCount\": 1\n            },\n            \"pricingPolicies\": [\n                {\n                    \"adjustmentType\": \"PERCENTAGE\",\n                    \"adjustmentValue\": {\n                        \"percentage\": 10\n                    }\n                }\n            ]\n        }\n    ]\n}"
                  },
                  "Reactivation": {
                    "summary": "Reactivation",
                    "value": {
                      "subscriptionContract": {
                        "id": "clx000example000contract0001",
                        "createdAt": "2025-01-15T09:00:00.000Z",
                        "updatedAt": "2025-03-01T12:30:00.000Z",
                        "shopifySubscriptionContractId": "gid://shopify/SubscriptionContract/1234567890",
                        "status": "ACTIVE",
                        "billingStatus": null,
                        "subStatus": null,
                        "nextBillingDate": "2025-04-01T12:00:00.000Z",
                        "pausedUntil": "2025-02-15T12:00:00.000Z",
                        "dunningStartedAt": null,
                        "dunningExitedAt": null,
                        "cancelledAt": "2025-02-10T10:00:00.000Z",
                        "cancellationReasons": [
                          ""
                        ],
                        "treatmentOffer": null,
                        "cancelledBy": "ACCOUNT",
                        "billingPolicy": {
                          "interval": "MONTH",
                          "intervalCount": 1
                        },
                        "anchors": null,
                        "assignedPricingPolicy": [
                          {
                            "adjustmentType": "PERCENTAGE",
                            "adjustmentValue": {
                              "percentage": 15
                            }
                          }
                        ],
                        "address": {
                          "zip": "90001",
                          "city": "Anytown",
                          "phone": null,
                          "company": null,
                          "country": "United States",
                          "address1": "123 Example Street",
                          "address2": null,
                          "lastName": "Doe",
                          "province": "California",
                          "firstName": "Jane",
                          "countryCode": "US",
                          "provinceCode": "CA"
                        },
                        "giftAddress": null,
                        "lineCount": 1,
                        "originOrderId": "gid://shopify/Order/2000000000001",
                        "originOrderPrice": 25,
                        "currencyCode": "USD",
                        "failedPaymentBillingAttempts": 0,
                        "outOfStockBillingAttempts": 0,
                        "prePaid": false,
                        "prepaidNextDeliveryDate": null,
                        "prepaidShipmentsRemaining": 0,
                        "prepaidDeliveryPolicy": null,
                        "prepaidAllowRenewal": false,
                        "prepaidRenewNextOrder": false,
                        "prepaidtotalShipmentsPerCycle": null,
                        "prepaidCancelAtEndOfCycle": false,
                        "paymentMethodId": "gid://shopify/CustomerPaymentMethod/00000000000000000000000000000000",
                        "deliveryPrice": 5,
                        "deletedAt": null,
                        "lastSeenIp": "203.0.113.0",
                        "notes": null,
                        "giftBirthDate": null,
                        "prepaidCalendarIntervalToSkip": null,
                        "isSplit": false,
                        "orderNotes": "",
                        "subscriptionName": null,
                        "lastOutOfStockEmailSentAt": null,
                        "accountId": "clx000example000account00001",
                        "accountCustomerId": "clx000example000acctcust0001",
                        "subscriptionPaymentMethodId": "clx000example000subpaymeth01",
                        "lines": [
                          {
                            "id": "clx000example000line00000001",
                            "createdAt": "2025-01-15T09:00:00.000Z",
                            "updatedAt": "2025-01-15T09:00:00.000Z",
                            "subscriptionContractLineItemId": "gid://shopify/SubscriptionLine/00000000-0000-0000-0000-000000000000",
                            "shopifySellingPlanId": "gid://shopify/SellingPlan/1111111111",
                            "title": "Example Product",
                            "shopifyProductId": "gid://shopify/Product/3000000000001",
                            "variantId": "gid://shopify/ProductVariant/4000000000001",
                            "variantTitle": null,
                            "variantImage": "https://cdn.example.com/images/example-product.png",
                            "sku": "EXAMPLE-SKU-001",
                            "currentPrice": 20,
                            "lineDiscountedPrice": 17,
                            "quantity": 1,
                            "isOneTime": false,
                            "outOfStockRollover": 0,
                            "shouldSkipItem": false,
                            "bundleId": null,
                            "prepaidOriginalContractLinePrice": 20,
                            "customAttributes": [],
                            "type": "STANDARD",
                            "subscriptionContractId": "clx000example000contract0001",
                            "shopifySubscriptionContractPromotionId": null
                          }
                        ]
                      },
                      "customer": {
                        "id": "clx000example000customer0001",
                        "createdAt": "2024-11-01T08:00:00.000Z",
                        "updatedAt": "2025-03-01T12:30:00.000Z",
                        "firstName": "Jane",
                        "lastName": "Doe",
                        "email": "jane.doe@example.com",
                        "phone": null,
                        "shopifyCustomerId": "gid://shopify/Customer/5000000000001"
                      },
                      "shopifyPayload": null,
                      "totalOrdersCount": 3
                    }
                  },
                  "Order Created": {
                    "summary": "Order Created",
                    "value": {
                      "orderId": "gid://shopify/Order/6100000000234",
                      "orderName": "#1042",
                      "customerId": "7300000000456",
                      "stayCustomerId": "clz000example000acctcust01",
                      "subscriptionId": "gid://shopify/SubscriptionContract/9900000123",
                      "staySubscriptionID": "clz000example000contract001",
                      "createdAt": "2026-08-01T14:05:00.000Z",
                      "updatedAt": "2026-08-01T14:05:12.000Z",
                      "fulfillmentStatus": null,
                      "currency": "USD",
                      "totalPrice": 74.5,
                      "cartDiscountAmount": 15,
                      "currentTotalTax": 4.5,
                      "totalShippingPrice": 5,
                      "address": {
                        "zip": "60601",
                        "city": "Chicago",
                        "phone": null,
                        "company": null,
                        "country": "United States",
                        "address1": "456 Example Avenue",
                        "address2": "Suite 200",
                        "lastName": "Smith",
                        "province": "Illinois",
                        "firstName": "John",
                        "countryCode": "US",
                        "provinceCode": "IL"
                      },
                      "tags": "Subscription,Get It Now",
                      "orderNumber": 1,
                      "source": "Checkout",
                      "lineItems": [
                        {
                          "lineId": "gid://shopify/LineItem/18200000000001",
                          "productTitle": "Example Face Serum",
                          "shopifyProductId": "gid://shopify/Product/8100000000011",
                          "variantTitle": "30ml",
                          "shopifyVariantId": "gid://shopify/ProductVariant/9200000000021",
                          "sku": "SERUM-30ML",
                          "quantity": 1,
                          "subtotalPrice": 42.5,
                          "originalLinePrice": 50,
                          "lineDiscount": 7.5,
                          "customAttributes": [
                            {
                              "name": "_stay-one-time-line",
                              "value": "false"
                            }
                          ],
                          "shopifySubscriptionContractId": "gid://shopify/SubscriptionContract/9900000123"
                        },
                        {
                          "lineId": "gid://shopify/LineItem/18200000000002",
                          "productTitle": "Example Vitamin C Cleanser",
                          "shopifyProductId": "gid://shopify/Product/8100000000012",
                          "variantTitle": null,
                          "shopifyVariantId": "gid://shopify/ProductVariant/9200000000022",
                          "sku": "CLEANSER-STD",
                          "quantity": 1,
                          "subtotalPrice": 25.5,
                          "originalLinePrice": 30,
                          "lineDiscount": 4.5,
                          "customAttributes": [],
                          "shopifySubscriptionContractId": "gid://shopify/SubscriptionContract/9900000123"
                        }
                      ],
                      "priceBreakdown": {
                        "LineItemsPrice": 80,
                        "LineDiscount": 12,
                        "lineItemsPriceDiscounted": 68,
                        "shippingPrice": 5,
                        "shippingDiscount": 0,
                        "shippingPriceDiscounted": 5,
                        "orderDiscount": 3,
                        "totalDiscount": 15,
                        "totalTax": 4.5,
                        "totalPrice": 74.5
                      },
                      "customOrderAttributes": [
                        {
                          "name": "browser_ip",
                          "value": "198.51.100.42"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Failed Payment",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "cl88fxoi100409ha3qjo6n8iu"
                        },
                        "createdAt": {
                          "type": "string",
                          "example": "2022-09-19T07:23:19.753Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "example": "2022-09-19T07:23:19.753Z"
                        },
                        "accountId": {
                          "type": "string",
                          "example": "ckw2lwyeu0002quosj3dbjcrm"
                        },
                        "appId": {
                          "type": "string",
                          "example": "cl7t95c540173mia3u9ai5k09"
                        },
                        "event": {
                          "type": "string",
                          "example": "SUBSCRIPTION"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://your-site.com/hooks/retextion-subscription"
                        }
                      }
                    },
                    {
                      "title": "Subscription",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "subscriptionContract": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "shopifySubscriptionContractId": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "status": {
                                "type": "string",
                                "example": "ACTIVE"
                              },
                              "shopifyCreatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:25.000Z"
                              },
                              "nextBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "scheduledBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "pausedUntil": {},
                              "dunningStartedAt": {},
                              "dunningExitedAt": {},
                              "cancelledAt": {},
                              "cancellationReasons": {},
                              "cancelledBy": {},
                              "billingPolicy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "DAY"
                                  },
                                  "intervalCount": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "anchors": {},
                              "assignedPricingPolicy": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "adjustmentType": {
                                      "type": "string",
                                      "example": "PERCENTAGE"
                                    },
                                    "adjustmentValue": {
                                      "type": "object",
                                      "properties": {
                                        "percentage": {
                                          "type": "integer",
                                          "example": 20,
                                          "default": 0
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "address": {
                                "type": "object",
                                "properties": {
                                  "zip": {
                                    "type": "string",
                                    "example": "12345"
                                  },
                                  "city": {
                                    "type": "string",
                                    "example": "Fake City"
                                  },
                                  "phone": {},
                                  "company": {},
                                  "country": {
                                    "type": "string",
                                    "example": "United States"
                                  },
                                  "address1": {
                                    "type": "string",
                                    "example": "123 Street"
                                  },
                                  "address2": {},
                                  "lastName": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "province": {
                                    "type": "string",
                                    "example": "Florida"
                                  },
                                  "firstName": {
                                    "type": "string",
                                    "example": "Doe"
                                  },
                                  "countryCode": {
                                    "type": "string",
                                    "example": "US"
                                  },
                                  "provinceCode": {
                                    "type": "string",
                                    "example": "FL"
                                  }
                                }
                              },
                              "giftAddress": {},
                              "lineCount": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "originOrderId": {
                                "type": "string",
                                "example": "gid://shopify/Order123"
                              },
                              "originOrderPrice": {
                                "type": "number",
                                "example": 32.07,
                                "default": 0
                              },
                              "currencyCode": {
                                "type": "string",
                                "example": "USD"
                              },
                              "failedPaymentBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "outOfStockBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prePaid": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidNextDeliveryDate": {},
                              "prepaidShipmentsRemaining": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prepaidDeliveryPolicy": {},
                              "prepaidAllowRenewal": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidRenewNextOrder": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidtotalShipmentsPerCycle": {},
                              "prepaidCancelAtEndOfCycle": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "paymentMethodId": {
                                "type": "string",
                                "example": "gid://shopify/CustomerPaymentMethod/123"
                              },
                              "deliveryPrice": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "deletedAt": {},
                              "lastSeenIp": {
                                "type": "string",
                                "example": ""
                              },
                              "churnRisk": {},
                              "notes": {},
                              "accountId": {
                                "type": "string",
                                "example": "1"
                              },
                              "accountCustomerId": {
                                "type": "string",
                                "example": "1"
                              },
                              "lines": {
                                "type": "array"
                              }
                            }
                          },
                          "customer": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-05-07T18:57:32.230Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:41.851Z"
                              },
                              "firstName": {
                                "type": "string",
                                "example": "John"
                              },
                              "lastName": {
                                "type": "string",
                                "example": "Doe"
                              },
                              "email": {
                                "type": "string",
                                "example": ""
                              },
                              "phone": {
                                "type": "string",
                                "example": ""
                              },
                              "shopifyCustomerId": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              }
                            }
                          },
                          "shopifyPayload": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              },
                              "customer_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "revision_id": {
                                "type": "string",
                                "example": "1"
                              },
                              "currency_code": {
                                "type": "string",
                                "example": "USD"
                              },
                              "billing_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "max_cycles": {},
                                  "min_cycles": {},
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "delivery_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "origin_order_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "admin_graphql_api_id": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "admin_graphql_api_customer_id": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              },
                              "admin_graphql_api_origin_order_id": {
                                "type": "string",
                                "example": "gid://shopify/Order/123"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Subscription Update",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "subscriptionContract": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "shopifySubscriptionContractId": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "status": {
                                "type": "string",
                                "example": "ACTIVE"
                              },
                              "shopifyCreatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:25.000Z"
                              },
                              "nextBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "scheduledBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "pausedUntil": {},
                              "dunningStartedAt": {},
                              "dunningExitedAt": {},
                              "cancelledAt": {},
                              "cancellationReasons": {},
                              "cancelledBy": {},
                              "billingPolicy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "DAY"
                                  },
                                  "intervalCount": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "anchors": {},
                              "assignedPricingPolicy": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "adjustmentType": {
                                      "type": "string",
                                      "example": "PERCENTAGE"
                                    },
                                    "adjustmentValue": {
                                      "type": "object",
                                      "properties": {
                                        "percentage": {
                                          "type": "integer",
                                          "example": 20,
                                          "default": 0
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "address": {
                                "type": "object",
                                "properties": {
                                  "zip": {
                                    "type": "string",
                                    "example": "12345"
                                  },
                                  "city": {
                                    "type": "string",
                                    "example": "Fake City"
                                  },
                                  "phone": {},
                                  "company": {},
                                  "country": {
                                    "type": "string",
                                    "example": "United States"
                                  },
                                  "address1": {
                                    "type": "string",
                                    "example": "123 Street"
                                  },
                                  "address2": {},
                                  "lastName": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "province": {
                                    "type": "string",
                                    "example": "Florida"
                                  },
                                  "firstName": {
                                    "type": "string",
                                    "example": "Doe"
                                  },
                                  "countryCode": {
                                    "type": "string",
                                    "example": "US"
                                  },
                                  "provinceCode": {
                                    "type": "string",
                                    "example": "FL"
                                  }
                                }
                              },
                              "giftAddress": {},
                              "lineCount": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "originOrderId": {
                                "type": "string",
                                "example": "gid://shopify/Order123"
                              },
                              "originOrderPrice": {
                                "type": "number",
                                "example": 32.07,
                                "default": 0
                              },
                              "currencyCode": {
                                "type": "string",
                                "example": "USD"
                              },
                              "failedPaymentBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "outOfStockBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prePaid": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidNextDeliveryDate": {},
                              "prepaidShipmentsRemaining": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prepaidDeliveryPolicy": {},
                              "prepaidAllowRenewal": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidRenewNextOrder": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidtotalShipmentsPerCycle": {},
                              "prepaidCancelAtEndOfCycle": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "paymentMethodId": {
                                "type": "string",
                                "example": "gid://shopify/CustomerPaymentMethod/123"
                              },
                              "deliveryPrice": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "deletedAt": {},
                              "lastSeenIp": {
                                "type": "string",
                                "example": ""
                              },
                              "churnRisk": {},
                              "notes": {},
                              "accountId": {
                                "type": "string",
                                "example": "1"
                              },
                              "accountCustomerId": {
                                "type": "string",
                                "example": "1"
                              },
                              "lines": {
                                "type": "array"
                              }
                            }
                          },
                          "customer": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-05-07T18:57:32.230Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:41.851Z"
                              },
                              "firstName": {
                                "type": "string",
                                "example": "John"
                              },
                              "lastName": {
                                "type": "string",
                                "example": "Doe"
                              },
                              "email": {
                                "type": "string",
                                "example": ""
                              },
                              "phone": {
                                "type": "string",
                                "example": ""
                              },
                              "shopifyCustomerId": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              }
                            }
                          },
                          "shopifyPayload": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              },
                              "customer_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "revision_id": {
                                "type": "string",
                                "example": "1"
                              },
                              "currency_code": {
                                "type": "string",
                                "example": "USD"
                              },
                              "billing_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "max_cycles": {},
                                  "min_cycles": {},
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "delivery_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "origin_order_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "admin_graphql_api_id": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "admin_graphql_api_customer_id": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              },
                              "admin_graphql_api_origin_order_id": {
                                "type": "string",
                                "example": "gid://shopify/Order/123"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Cancellation",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "subscriptionContract": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "shopifySubscriptionContractId": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "status": {
                                "type": "string",
                                "example": "ACTIVE"
                              },
                              "shopifyCreatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:25.000Z"
                              },
                              "nextBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "scheduledBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "pausedUntil": {},
                              "dunningStartedAt": {},
                              "dunningExitedAt": {},
                              "cancelledAt": {},
                              "cancellationReasons": {},
                              "cancelledBy": {},
                              "billingPolicy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "DAY"
                                  },
                                  "intervalCount": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "anchors": {},
                              "assignedPricingPolicy": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "adjustmentType": {
                                      "type": "string",
                                      "example": "PERCENTAGE"
                                    },
                                    "adjustmentValue": {
                                      "type": "object",
                                      "properties": {
                                        "percentage": {
                                          "type": "integer",
                                          "example": 20,
                                          "default": 0
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "address": {
                                "type": "object",
                                "properties": {
                                  "zip": {
                                    "type": "string",
                                    "example": "12345"
                                  },
                                  "city": {
                                    "type": "string",
                                    "example": "Fake City"
                                  },
                                  "phone": {},
                                  "company": {},
                                  "country": {
                                    "type": "string",
                                    "example": "United States"
                                  },
                                  "address1": {
                                    "type": "string",
                                    "example": "123 Street"
                                  },
                                  "address2": {},
                                  "lastName": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "province": {
                                    "type": "string",
                                    "example": "Florida"
                                  },
                                  "firstName": {
                                    "type": "string",
                                    "example": "Doe"
                                  },
                                  "countryCode": {
                                    "type": "string",
                                    "example": "US"
                                  },
                                  "provinceCode": {
                                    "type": "string",
                                    "example": "FL"
                                  }
                                }
                              },
                              "giftAddress": {},
                              "lineCount": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "originOrderId": {
                                "type": "string",
                                "example": "gid://shopify/Order123"
                              },
                              "originOrderPrice": {
                                "type": "number",
                                "example": 32.07,
                                "default": 0
                              },
                              "currencyCode": {
                                "type": "string",
                                "example": "USD"
                              },
                              "failedPaymentBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "outOfStockBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prePaid": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidNextDeliveryDate": {},
                              "prepaidShipmentsRemaining": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prepaidDeliveryPolicy": {},
                              "prepaidAllowRenewal": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidRenewNextOrder": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidtotalShipmentsPerCycle": {},
                              "prepaidCancelAtEndOfCycle": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "paymentMethodId": {
                                "type": "string",
                                "example": "gid://shopify/CustomerPaymentMethod/123"
                              },
                              "deliveryPrice": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "deletedAt": {},
                              "lastSeenIp": {
                                "type": "string",
                                "example": ""
                              },
                              "churnRisk": {},
                              "notes": {},
                              "accountId": {
                                "type": "string",
                                "example": "1"
                              },
                              "accountCustomerId": {
                                "type": "string",
                                "example": "1"
                              },
                              "lines": {
                                "type": "array"
                              }
                            }
                          },
                          "shopifyPayload": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              },
                              "customer_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "revision_id": {
                                "type": "string",
                                "example": "1"
                              },
                              "currency_code": {
                                "type": "string",
                                "example": "USD"
                              },
                              "billing_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "max_cycles": {},
                                  "min_cycles": {},
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "delivery_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "origin_order_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "admin_graphql_api_id": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "admin_graphql_api_customer_id": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              },
                              "admin_graphql_api_origin_order_id": {
                                "type": "string",
                                "example": "gid://shopify/Order/123"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Successful Payment",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "customer": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-05-07T18:57:32.230Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:41.851Z"
                              },
                              "firstName": {
                                "type": "string",
                                "example": "John"
                              },
                              "lastName": {
                                "type": "string",
                                "example": "Doe"
                              },
                              "email": {
                                "type": "string",
                                "example": ""
                              },
                              "phone": {
                                "type": "string",
                                "example": ""
                              },
                              "shopifyCustomerId": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              }
                            }
                          },
                          "shopifyPayload": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              },
                              "customer_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "revision_id": {
                                "type": "string",
                                "example": "1"
                              },
                              "currency_code": {
                                "type": "string",
                                "example": "USD"
                              },
                              "billing_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "max_cycles": {},
                                  "min_cycles": {},
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "delivery_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "origin_order_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "admin_graphql_api_id": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "admin_graphql_api_customer_id": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              },
                              "admin_graphql_api_origin_order_id": {
                                "type": "string",
                                "example": "gid://shopify/Order/123"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Failed Payment",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "subscriptionContract": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:42.898Z"
                              },
                              "shopifySubscriptionContractId": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "status": {
                                "type": "string",
                                "example": "ACTIVE"
                              },
                              "shopifyCreatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:25.000Z"
                              },
                              "nextBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "scheduledBillingDate": {
                                "type": "string",
                                "example": "2023-09-03T17:00:00.000Z"
                              },
                              "pausedUntil": {},
                              "dunningStartedAt": {},
                              "dunningExitedAt": {},
                              "cancelledAt": {},
                              "cancellationReasons": {},
                              "cancelledBy": {},
                              "billingPolicy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "DAY"
                                  },
                                  "intervalCount": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "anchors": {},
                              "assignedPricingPolicy": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "adjustmentType": {
                                      "type": "string",
                                      "example": "PERCENTAGE"
                                    },
                                    "adjustmentValue": {
                                      "type": "object",
                                      "properties": {
                                        "percentage": {
                                          "type": "integer",
                                          "example": 20,
                                          "default": 0
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "address": {
                                "type": "object",
                                "properties": {
                                  "zip": {
                                    "type": "string",
                                    "example": "12345"
                                  },
                                  "city": {
                                    "type": "string",
                                    "example": "Fake City"
                                  },
                                  "phone": {},
                                  "company": {},
                                  "country": {
                                    "type": "string",
                                    "example": "United States"
                                  },
                                  "address1": {
                                    "type": "string",
                                    "example": "123 Street"
                                  },
                                  "address2": {},
                                  "lastName": {
                                    "type": "string",
                                    "example": "John"
                                  },
                                  "province": {
                                    "type": "string",
                                    "example": "Florida"
                                  },
                                  "firstName": {
                                    "type": "string",
                                    "example": "Doe"
                                  },
                                  "countryCode": {
                                    "type": "string",
                                    "example": "US"
                                  },
                                  "provinceCode": {
                                    "type": "string",
                                    "example": "FL"
                                  }
                                }
                              },
                              "giftAddress": {},
                              "lineCount": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "originOrderId": {
                                "type": "string",
                                "example": "gid://shopify/Order123"
                              },
                              "originOrderPrice": {
                                "type": "number",
                                "example": 32.07,
                                "default": 0
                              },
                              "currencyCode": {
                                "type": "string",
                                "example": "USD"
                              },
                              "failedPaymentBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "outOfStockBillingAttempts": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prePaid": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidNextDeliveryDate": {},
                              "prepaidShipmentsRemaining": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "prepaidDeliveryPolicy": {},
                              "prepaidAllowRenewal": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidRenewNextOrder": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "prepaidtotalShipmentsPerCycle": {},
                              "prepaidCancelAtEndOfCycle": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "paymentMethodId": {
                                "type": "string",
                                "example": "gid://shopify/CustomerPaymentMethod/123"
                              },
                              "deliveryPrice": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "deletedAt": {},
                              "lastSeenIp": {
                                "type": "string",
                                "example": ""
                              },
                              "churnRisk": {},
                              "notes": {},
                              "accountId": {
                                "type": "string",
                                "example": "1"
                              },
                              "accountCustomerId": {
                                "type": "string",
                                "example": "1"
                              },
                              "lines": {
                                "type": "array"
                              }
                            }
                          },
                          "customer": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "1"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2023-05-07T18:57:32.230Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "example": "2023-08-04T17:59:41.851Z"
                              },
                              "firstName": {
                                "type": "string",
                                "example": "John"
                              },
                              "lastName": {
                                "type": "string",
                                "example": "Doe"
                              },
                              "email": {
                                "type": "string",
                                "example": ""
                              },
                              "phone": {
                                "type": "string",
                                "example": ""
                              },
                              "shopifyCustomerId": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              }
                            }
                          },
                          "shopifyPayload": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "status": {
                                "type": "string",
                                "example": "active"
                              },
                              "customer_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "revision_id": {
                                "type": "string",
                                "example": "1"
                              },
                              "currency_code": {
                                "type": "string",
                                "example": "USD"
                              },
                              "billing_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "max_cycles": {},
                                  "min_cycles": {},
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "delivery_policy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "day"
                                  },
                                  "interval_count": {
                                    "type": "integer",
                                    "example": 30,
                                    "default": 0
                                  }
                                }
                              },
                              "origin_order_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "admin_graphql_api_id": {
                                "type": "string",
                                "example": "gid://shopify/SubscriptionContract/123"
                              },
                              "admin_graphql_api_customer_id": {
                                "type": "string",
                                "example": "gid://shopify/Customer/123"
                              },
                              "admin_graphql_api_origin_order_id": {
                                "type": "string",
                                "example": "gid://shopify/Order/123"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Selling Plan Group Create",
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Name"
                        },
                        "options": {
                          "type": "string",
                          "example": "Options"
                        },
                        "customLabel": {
                          "type": "string",
                          "example": "Custom Label"
                        },
                        "customDescription": {
                          "type": "string",
                          "example": "Description"
                        },
                        "productIds": {
                          "type": "array"
                        },
                        "variantIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "gid://shopify/ProductVariant/123"
                          }
                        },
                        "sellingPlansToCreate": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Weekly"
                              },
                              "options": {
                                "type": "string",
                                "example": "Weekly"
                              },
                              "position": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "billingPolicy": {
                                "type": "object",
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "example": "WEEK"
                                  },
                                  "intervalCount": {
                                    "type": "string",
                                    "example": "1"
                                  }
                                }
                              },
                              "pricingPolicies": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "adjustmentType": {
                                      "type": "string",
                                      "example": "PERCENTAGE"
                                    },
                                    "adjustmentValue": {
                                      "type": "object",
                                      "properties": {
                                        "percentage": {
                                          "type": "integer",
                                          "example": 10,
                                          "default": 0
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```