GET
/
plans
curl --request GET \
  --url https://connect.withvayu.com/plans \
  --header 'Authorization: Bearer <token>'
{
  "plans": [
    {
      "name": "<string>",
      "status": "Active",
      "billingData": {
        "billingInterval": "Monthly",
        "duration": 1,
        "paymentTerm": "Postpayment",
        "autoRenewal": false,
        "proRated": true
      },
      "description": "<string>",
      "products": [
        {
          "name": "<string>",
          "description": "<string>",
          "variants": [
            {
              "meterId": "<string>",
              "pricing": {
                "pricingModel": "PerUnit",
                "priceConfiguration": {
                  "price": 1,
                  "chunkSize": 1
                }
              },
              "settings": {
                "productType": "Credit",
                "productConfiguration": {
                  "shouldCreateSeparateInvoice": false
                }
              },
              "description": "<string>",
              "name": "<string>"
            }
          ],
          "basePrice": 1,
          "commitment": {
            "amount": 1,
            "type": "Price",
            "replenishmentInterval": 123
          },
          "currencyCommitment": 123,
          "paymentTerm": "Postpayment",
          "billingInterval": "Monthly",
          "accumulationInterval": 123,
          "proRata": true,
          "erpMetadata": {
            "erpId": "<string>",
            "erpName": "<string>",
            "displayId": "<string>"
          },
          "rateMultiplier": 123,
          "isPeriodicVariants": false
        }
      ],
      "trial": {
        "duration": 123,
        "type": "Weeks",
        "free": false
      },
      "basedFromPlanId": "<string>",
      "purchaseOrder": "<string>",
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "hasMore": true,
  "nextCursor": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
number
default:10
Required range: x <= 1000
cursor
string

Response

200
application/json
RequestSuccess
plans
object[]
required
total
number
required
hasMore
boolean
required
nextCursor
string