POST
/
prices
curl --request POST \
  --url https://api.sulu.sh/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",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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, or volume-based.

Available options:
standard,
dynamic,
volume
invoiceDisplayName
string
required

The display name of the price as it appears on invoices.

properties
any
required

Response

201
application/json
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
invoiceDisplayName
string
properties
object
createdAt
string
updatedAt
string
deletedAt
string