Overview
/
Developer Tools
/
API Reference
/
Payments
/
Create or update a price for a subscription plan.

Create or update a price for a subscription plan
hidden

Path parameters

  • /{slug}

    string

HTTP Request

  • application/json

    //
    • active:

      boolean,
      //
    • unit_amount:

      numberdouble,
      //
    • billing_model:

      "flat"+1
      • //A flat amount charged every interval.
        "flat"
      • //A per-seat amount charged every interval.
        "per_user"
      ,
      //
    • cadence:

      "day"+4
      • //Day.
        "day"
      • //Month.
        "month"
      • //Week.
        "week"
      • //Year.
        "year"
      • //Don't use.
        "unknown"
      //
    }

Response

  • 200 OK
    • //
      • active:

        boolean,
        //
      • created_at:

        stringISO-8601,
        //
      • id:

        stringUUID,
        //
      • stripe_price_id:

        string,
        //
      • subscription_plan_id:

        stringUUID,
        //
      • unit_amount:

        string,
        //
      • updated_at:

        stringISO-8601,
        //
      • billing_model:

        "flat"+1
        • //A flat amount charged every interval.
          "flat"
        • //A per-seat amount charged every interval.
          "per_user"
        ,
        //
      • cadence:

        "day"+4
        • //Day.
          "day"
        • //Month.
          "month"
        • //Week.
          "week"
        • //Year.
          "year"
        • //Don't use.
          "unknown"
        //
      }

Examples

post
/subscription-plans/{slug}/prices
200 OK
Response