Schemas
  • 01 Aug 2023
  • 1 Minute to read
  • Contributors

    Schemas


      Article Summary

      Request Headers

      Each request must include the following request headers:

      PropertyData TypeDescription
      Authorization*StringYour temporary Access Token obtained using the /authorize method
      Content-Type*
      String
      application/json

      Request Body Schemas

      Subscriptions

      Create, Modify, and Add add-ons and subscriptions to a specific Perimeter 81 tenant. Each addon is a purchased license for a Member(s) or Gateway(s).

      Addon

      Information for a single addon. Found in Subscription.

      PropertyData TypeDescription
      amount*NumberNumber of new add-ons to purchase.
      quantity*NumberTotal number of add-ons.
      additionalTypeStringInternal name of addon.
      currencyCodeString ISO currency code. Currently, only 'USD'.
      pricingModel
      String
      Addon pricing model. One of:
      • volume
      • per_unit
      • flat_fee
      periodUnit*StringPayment period. One of:
      • month
      • year
      statusStringAddon status. Value 'active'.
      price*NumberPrice of the addon.
      id*StringID of the addon.


      AddonStatistics

      Statistics for a single addon. Found in AddonsStatisticsList.

      PropertyData TypeDescription
      remaining*NumberNumber of add-ons remaining.
      expired*NumberNumber of add-ons that expired.
      total*NumberTotal number of add-ons.
      additionalType*StringInternal name of addon.
      used*NumberNumber of addons used.


      AddonsStatisticsList

      List of statistics for all addons. Response to GET /v1/addons.

      PropertyData TypeDescription
      data*Array of AddonStatisticsList of addon statistics.


      BuyAddonsDto

      DTO for purchasing add-ons. Request body in POST /v1/addons/members and POST /v1/addons/gateways.

      PropertyData TypeDescription
      amount*IntegerNumber of add-ons to purchase. Minimum 1.


      Subscription

      List of subscription add-ons. Response to POST /v1/addons/members and POST /v1/addons/gateways.

      PropertyData TypeDescription
      addons*Array of AddonList of subscription add-ons.
      currencyCode*StringISO currency code. Currently, only 'USD'.
      deleted*BooleanWhether the subscription is deleted (true).
      status*StringStatus of subscription. One of:
      • non_renewing
      • active
      billingPeriodUnit*StringUnit of the billing period. Currently, only '1'.
      id*StringID of subscription.



      Was this article helpful?