Skip to main content
GET
/
api
/
v1
/
pricing-models
/
{id}
/
export
Export a PricingModel
curl --request GET \
  --url https://app.flowglad.com/api/v1/pricing-models/{id}/export \
  --header 'Authorization: <api-key>'
{
  "pricingModel": {
    "isDefault": false,
    "name": "<string>",
    "features": [
      {
        "type": "<string>",
        "slug": "<string>",
        "name": "<string>",
        "description": "<string>",
        "active": true
      }
    ],
    "products": [
      {
        "product": {
          "name": "<string>",
          "active": true,
          "slug": "<string>",
          "description": "<string>",
          "imageURL": "<string>",
          "singularQuantityLabel": "<string>",
          "pluralQuantityLabel": "<string>",
          "default": true
        },
        "price": {
          "intervalUnit": "day",
          "intervalCount": 123,
          "type": "<string>",
          "isDefault": true,
          "unitPrice": 4503599627370495,
          "usageEventsPerUnit": "<unknown>",
          "usageMeterId": "<unknown>",
          "name": "<string>",
          "trialPeriodDays": 4503599627370495,
          "active": true,
          "slug": "<string>",
          "currency": "USD"
        },
        "features": [
          "<string>"
        ]
      }
    ],
    "usageMeters": [
      {
        "usageMeter": {
          "name": "<string>",
          "slug": "<string>",
          "aggregationType": "sum"
        },
        "prices": [
          {
            "intervalUnit": "day",
            "intervalCount": 123,
            "type": "<string>",
            "trialPeriodDays": "<unknown>",
            "isDefault": true,
            "unitPrice": 4503599627370495,
            "usageEventsPerUnit": 123,
            "name": "<string>",
            "active": true,
            "slug": "<string>",
            "currency": "USD"
          }
        ]
      }
    ],
    "resources": [
      {
        "slug": "<string>",
        "name": "<string>",
        "active": true
      }
    ]
  },
  "updatedAt": 0
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Response

Successful response

pricingModel
object
required

JSON structure of the pricing model configuration

updatedAt
integer
required

Epoch milliseconds timestamp of when the pricing model was last updated

Required range: -9007199254740991 <= x <= 9007199254740991