{
  "host": "store-api.athom.com",
  "basePath": "/api",
  "operations": {
    "getOrders": {
      "path": "/user/order",
      "method": "get",
      "parameters": {}
    },
    "verifySubscription": {
      "path": "/subscription/verify",
      "method": "post",
      "parameters": {
        "token": {
          "type": "string",
          "in": "body"
        },
        "sku": {
          "type": "string",
          "in": "body"
        },
        "packageName": {
          "type": "string",
          "in": "body"
        },
        "receipt": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "deferSubscription": {
      "path": "/subscription/defer",
      "method": "post",
      "parameters": {
        "sku": {
          "type": "string",
          "in": "body"
        },
        "packageName": {
          "type": "string",
          "in": "body"
        },
        "athomId": {
          "type": "string",
          "in": "body"
        },
        "quantity": {
          "type": "number",
          "in": "body"
        },
        "duration": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "restoreSubscriptions": {
      "path": "/subscription/restore",
      "method": "get",
      "parameters": {}
    },
    "getExpiredSubscriptions": {
      "path": "/subscription/expired",
      "method": "post",
      "parameters": {
        "users": {
          "type": "array",
          "in": "body"
        },
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "verifyOneTimePurchase": {
      "path": "/one-time-purchase/verify",
      "method": "post",
      "parameters": {
        "homeyId": {
          "type": "string",
          "in": "body"
        },
        "token": {
          "type": "string",
          "in": "body"
        },
        "sku": {
          "type": "string",
          "in": "body"
        },
        "packageName": {
          "type": "string",
          "in": "body"
        },
        "receipt": {
          "type": "string",
          "in": "body"
        },
        "orderId": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "getOffer": {
      "path": "/offer/{offerId}",
      "method": "get",
      "parameters": {
        "offerId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "redeemReferAFriend": {
      "path": "/offer/refer_a_friend",
      "method": "post",
      "parameters": {
        "paymentProvider": {
          "type": "string",
          "in": "body"
        },
        "inviterId": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "redeemOffer": {
      "path": "/offer/{offerId}/redeem",
      "method": "post",
      "parameters": {
        "offerId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "paymentProvider": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "createOfferCouponApple": {
      "path": "/offer/coupon_apple",
      "method": "post",
      "parameters": {
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "coupon": {
          "type": "string",
          "in": "body"
        },
        "expiresAt": {
          "type": "string",
          "in": "body"
        },
        "subscriptionType": {
          "type": "string",
          "in": "body"
        },
        "subscriptionQuantity": {
          "type": "number",
          "in": "body"
        },
        "subscriptionDuration": {
          "type": "string",
          "in": "body"
        },
        "newCustomersOnly": {
          "type": "boolean",
          "in": "body"
        }
      }
    },
    "getOffers": {
      "path": "/offer",
      "method": "get",
      "parameters": {}
    },
    "createOffer": {
      "path": "/offer",
      "method": "post",
      "parameters": {
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "userId": {
          "type": "string",
          "in": "body"
        },
        "expiresAt": {
          "type": "string",
          "in": "body"
        },
        "campaignId": {
          "type": "string",
          "in": "body"
        },
        "subscriptionType": {
          "type": "string",
          "in": "body"
        },
        "subscriptionQuantity": {
          "type": "number",
          "in": "body"
        },
        "subscriptionDuration": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "createCoupon": {
      "path": "/coupon",
      "method": "post",
      "parameters": {
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "couponCode": {
          "type": "string",
          "in": "body"
        },
        "expiresAt": {
          "type": "string",
          "in": "body"
        },
        "campaignId": {
          "type": "string",
          "in": "body"
        },
        "subscriptionType": {
          "type": "string",
          "in": "body"
        },
        "subscriptionQuantity": {
          "type": "number",
          "in": "body"
        },
        "subscriptionDuration": {
          "type": "string",
          "in": "body"
        },
        "maxRedeems": {
          "type": "number",
          "in": "body"
        }
      }
    },
    "redeemCoupon": {
      "path": "/coupon/{couponCode}/redeem",
      "method": "post",
      "parameters": {
        "couponCode": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    }
  }
}