{
  "opencollection": "1.0.0",
  "info": {
    "name": "RevenueCat REST Apps Purchases API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Purchases",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a purchase (validate a receipt)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.revenuecat.com/v1/receipts",
            "headers": [
              {
                "name": "X-Platform",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Records a purchase by validating a store receipt or token from App Store, Google Play, Amazon, Stripe, Roku, or Paddle and attaches it to the given app user."
        },
        {
          "info": {
            "name": "Refund a transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.revenuecat.com/v1/subscribers/:app_user_id/transactions/:store_transaction_identifier/refund",
            "params": [
              {
                "name": "app_user_id",
                "value": "",
                "type": "path",
                "description": "The App User ID that identifies the customer."
              },
              {
                "name": "store_transaction_identifier",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Issues a refund for a Google Play transaction."
        },
        {
          "info": {
            "name": "Defer a Google subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.revenuecat.com/v1/subscribers/:app_user_id/subscriptions/:product_identifier/defer",
            "params": [
              {
                "name": "app_user_id",
                "value": "",
                "type": "path",
                "description": "The App User ID that identifies the customer."
              },
              {
                "name": "product_identifier",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Defers the next renewal date of an active Google Play subscription."
        }
      ]
    }
  ],
  "bundled": true
}