The price object

Price is a numerical amount to pay that is associated with a product. Speed intends for its users to be able to create a price associated with a product. Later users can associate that price with an invoice and share it with their customers in order to be paid.
The Speed web application allows you to define multiple prices for a product. Alternatively you can extend the functionality and create prices via price APIs, in addition to the benefits of this no-code option.

{
    "id": "price_lkwdo2n790gwM",
    "object": "price",
    "active": true,
    "product": "prod_lkwdlc2pNs6tH",
    "type": "one_time",
    "currency": "USD",
    "unit_amount": 10,
    "billing_scheme": "per_unit",
    "metadata": {},
    "created": 1691140968547,
    "modified": 1691140968547
}

Attributes


id string
Unique identifier for the object.


object string
The type of the object indicates to which entity this response belongs.


active boolean
Active attribute can have 2 values as mentioned below:

  • true
  • Upon generation, by default, it will be true.
  • false
  • If you don't intend to use a product, you can set the active status to false.

product string
This attribute represents id of the product, attached with a price.


type string
This attribute represents that the price is for a one-time purchase.


currency string
Your preferred currency (base currency) in which you want to create a price.


unit_amount BigDecimal
A positive integer representing how much to charge for a product. Values up to 32 digits can be handled by the amount param, which can have a decimal precision of up to 16 digits.


billing_scheme string
This attribute describes how to compute the price. per_unit indicates charging customers a fixed price for each individual unit of a product or service they consume or acquire. Under the per_unit billing scheme, the price per unit remains constant, regardless of the total quantity purchased.


metadata object
You can use this to store additional information about the object in a structured format.


created timestamp
Time at which the price was created.


modified timestamp
Time at which the last modification was made.