Skip to main content
GET
/
api
/
v1
/
pricing-models
/
default
Get Default Pricing Model for Organization
curl --request GET \
  --url https://app.flowglad.com/api/v1/pricing-models/default \
  --header 'Authorization: <api-key>'
{
  "pricingModel": {
    "id": "<string>",
    "createdAt": 0,
    "updatedAt": 0,
    "livemode": true,
    "organizationId": "<string>",
    "isDefault": true,
    "name": "<string>",
    "products": [
      {
        "id": "<string>",
        "createdAt": 0,
        "updatedAt": 0,
        "livemode": true,
        "name": "<string>",
        "description": "<string>",
        "imageURL": "<string>",
        "organizationId": "<string>",
        "active": true,
        "singularQuantityLabel": "<string>",
        "pluralQuantityLabel": "<string>",
        "pricingModelId": "<string>",
        "default": true,
        "slug": "<string>",
        "prices": [
          {
            "id": "<string>",
            "createdAt": 0,
            "updatedAt": 0,
            "livemode": true,
            "intervalUnit": "day",
            "name": "<string>",
            "intervalCount": 4503599627370495,
            "type": "<string>",
            "trialPeriodDays": 4503599627370495,
            "isDefault": true,
            "unitPrice": 4503599627370495,
            "usageEventsPerUnit": null,
            "productId": "<string>",
            "active": true,
            "currency": "USD",
            "slug": "<string>",
            "usageMeterId": null
          }
        ],
        "defaultPrice": {
          "id": "<string>",
          "createdAt": 0,
          "updatedAt": 0,
          "livemode": true,
          "intervalUnit": "day",
          "name": "<string>",
          "intervalCount": 4503599627370495,
          "type": "<string>",
          "trialPeriodDays": 4503599627370495,
          "isDefault": true,
          "unitPrice": 4503599627370495,
          "usageEventsPerUnit": null,
          "productId": "<string>",
          "active": true,
          "currency": "USD",
          "slug": "<string>",
          "usageMeterId": null
        },
        "features": [
          {
            "id": "<string>",
            "createdAt": 0,
            "updatedAt": 0,
            "livemode": true,
            "organizationId": "<string>",
            "type": "<string>",
            "slug": "<string>",
            "name": "<string>",
            "description": "<string>",
            "amount": null,
            "usageMeterId": null,
            "renewalFrequency": null,
            "pricingModelId": "<string>",
            "active": true
          }
        ]
      }
    ],
    "usageMeters": [
      {
        "id": "<string>",
        "createdAt": 0,
        "updatedAt": 0,
        "livemode": true,
        "organizationId": "<string>",
        "name": "<string>",
        "pricingModelId": "<string>",
        "slug": "<string>",
        "aggregationType": "sum"
      }
    ],
    "defaultProduct": {
      "id": "<string>",
      "createdAt": 0,
      "updatedAt": 0,
      "livemode": true,
      "name": "<string>",
      "description": "<string>",
      "imageURL": "<string>",
      "organizationId": "<string>",
      "active": true,
      "singularQuantityLabel": "<string>",
      "pluralQuantityLabel": "<string>",
      "pricingModelId": "<string>",
      "default": true,
      "slug": "<string>",
      "prices": [
        {
          "id": "<string>",
          "createdAt": 0,
          "updatedAt": 0,
          "livemode": true,
          "intervalUnit": "day",
          "name": "<string>",
          "intervalCount": 4503599627370495,
          "type": "<string>",
          "trialPeriodDays": 4503599627370495,
          "isDefault": true,
          "unitPrice": 4503599627370495,
          "usageEventsPerUnit": null,
          "productId": "<string>",
          "active": true,
          "currency": "USD",
          "slug": "<string>",
          "usageMeterId": null
        }
      ],
      "defaultPrice": {
        "id": "<string>",
        "createdAt": 0,
        "updatedAt": 0,
        "livemode": true,
        "intervalUnit": "day",
        "name": "<string>",
        "intervalCount": 4503599627370495,
        "type": "<string>",
        "trialPeriodDays": 4503599627370495,
        "isDefault": true,
        "unitPrice": 4503599627370495,
        "usageEventsPerUnit": null,
        "productId": "<string>",
        "active": true,
        "currency": "USD",
        "slug": "<string>",
        "usageMeterId": null
      },
      "features": [
        {
          "id": "<string>",
          "createdAt": 0,
          "updatedAt": 0,
          "livemode": true,
          "organizationId": "<string>",
          "type": "<string>",
          "slug": "<string>",
          "name": "<string>",
          "description": "<string>",
          "amount": null,
          "usageMeterId": null,
          "renewalFrequency": null,
          "pricingModelId": "<string>",
          "active": true
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Response

Successful response

pricingModel
object
required
I