POST
/
prices
Create a new price
curl --request POST \
  --url https://api.paygentic.io/v0/prices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "billableMetricId": "<string>",
  "model": "standard",
  "invoiceDisplayName": "<string>",
  "properties": {
    "unitPrice": "<string>"
  }
}'
{
  "id": "<string>",
  "object": "price",
  "billableMetricId": "<string>",
  "model": "standard",
  "invoiceDisplayName": "<string>",
  "properties": {
    "unitPrice": "<string>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
billableMetricId
string
required

The unique identifier for the billable metric referred to by this price.

model
enum<string>
required

The pricing model to be used, which can be standard, dynamic, volume-based, or percentage-based.

Available options:
standard,
dynamic,
volume,
percentage
invoiceDisplayName
string
required

The name that will be displayed on invoices for this price.

properties
object
required

Response

Price created successfully

id
string

Unique identifier for a price

object
enum<string>
default:price
Available options:
price
billableMetricId
string

Unique identifier for a billable metric

model
enum<string>
Available options:
standard,
dynamic,
volume,
percentage
invoiceDisplayName
string
properties
object
createdAt
string<date-time>
updatedAt
string<date-time>