PATCH
/
prices
/
{id}
Update a price
curl --request PATCH \
  --url https://api.paygentic.io/v0/prices/{id} \
  --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

Path Parameters

id
string
required

The unique identifier of the price

Body

application/json
billableMetricId
string

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

model
enum<string>

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

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

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

properties
object

Response

Price updated 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>