Skip to main content
POST
Edit Price Intervals

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The subscription ID

Body

application/json

An add/edit/remove op set to apply to the subscription's price timeline. At least one operation is required.

add
object[]

New override segments to add.

Maximum array length: 25
edit
object[]

Changes to existing intervals.

Maximum array length: 25
remove
object[]

Intervals to remove outright.

Maximum array length: 25

Response

The price intervals after the changes. If the request changed nothing, unchanged is true.

intervals
object[]
required

The timeline's effective price intervals after applying the op set, ordered by start date.

unchanged
boolean
required

True when the op set resolved to no change and nothing was written.

lineItems
object
required