POST
/
v1
/
price-configurations
/
{id}
/
prices
curl --request POST \
  --url https://api.hyperline.co/v1/price-configurations/{id}/prices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "type": "fee",
    "amount": 123,
    "interval": "<string>"
  }
]'
{
  "id": "<string>",
  "currency": "EUR",
  "country": "FR",
  "plan_id": "<string>",
  "billing_interval": {
    "period": "weeks",
    "count": 123
  },
  "commitment_interval": {
    "period": "weeks",
    "count": 123
  },
  "updated_at": "<string>",
  "type": "fee",
  "prices": [
    {
      "type": "fee",
      "amount": 123
    }
  ]
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

id
string
required

Body

application/json · object[]
type
enum<string>
default: fee
Available options:
fee
amount
number
required
interval
string | null
default: once

Response

200 - application/json
id
string
required

Price configuration ID.

currency
string
required

Currency code. See ISO 4217.

country
string | null
required

Two-letter country code in ISO format. See ISO 3166 Alpha 2.

plan_id
string | null
required

ID of the plan on which this price configuration is eligible

billing_interval
object | null
required

Billing interval on which the price configuration is eligible.

commitment_interval
object | null
required

Commitment interval on which the price configuration is eligible.

updated_at
string
required

Last edition date of the price configuration.

type
enum<string>
required
Available options:
fee
prices
object[]
required

Price tiers of the price configuration. If fixed amount, only one price is available.