Post API v1 stripe price

Changed on
post/api/v1/stripe_price/

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Request body

$schemastring uri

A URL to the JSON Schema for this object.

idstring required

ID of the product

intervalstring required

Interval between payments

interval_countinteger required

Number of intervals a billing cycle lasts

totalinteger required

Price per billing cycle.

Example request

{
  "$schema": "https://example.com/schemas/CreateStripePriceRequest.json",
  "id": "product_123",
  "interval": "day",
  "interval_count": 3,
  "total": 2550
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

activeboolean required
createdinteger required
currencystring required
idstring required
intervalstring required
interval_countinteger required
product_idstring required
unit_amountinteger required

Example response

{
  "$schema": "https://example.com/schemas/StripePriceResponse.json",
  "active": true,
  "created": 1700000000,
  "currency": "usd",
  "id": "price_12345",
  "interval": "month",
  "interval_count": 1,
  "product_id": "prod_12345",
  "unit_amount": 2000
}

Changes