Skip to main content
POST
/
pricemodels
curl --request POST \
     --url https://api.tryaqueduct.com/v1/pricemodels \
     --header 'Accept: application/json' \
     --header 'Authorization: null' \
     --header 'Content-Type: application/json'
{
  "id": "prmod_01FSSVRVGQ7GGB13815DE3F518",
  "name": "<string>",
  "namedPriceFunctions": [
    {
      "id": "price_01FSSVRVGQ7GGB13815DE3F518",
      "name": "API requests",
      "type": "per-unit",
      "billingFrequency": "monthly",
      "variables": {},
      "currency": "USD",
      "isDiscount": true,
      "destinationAccountId": "<string>"
    }
  ]
}
curl --request POST \
     --url https://api.tryaqueduct.com/v1/pricemodels \
     --header 'Accept: application/json' \
     --header 'Authorization: null' \
     --header 'Content-Type: application/json'

Authorizations

Authorization
string
header
required

Body

application/json
name
string

Name of the price model.

Example:

"Flat rate with included usage plus overage"

namedPriceFunctions
object[]

Response

201 - application/json

Returns the created PriceModel

A group of NamedPriceFunctions used to express more complex business models. All NamedPriceFunctions in a PriceModel must have the same billing frequency.

id
string
required

A unique identifier for the object

Example:

"prmod_01FSSVRVGQ7GGB13815DE3F518"

name
string
required

A description of the price model.

namedPriceFunctions
object[]
required