Skip to content
  • Auto
  • Light
  • Dark
Talk to an expert

List Price Adjustments

Get the plan adjustments for a customer
client.V1.Customers.Plans.ListPriceAdjustments(ctx, params) (*CursorPage[ChargeIDstringChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypePricesarrayStartPeriodfloat64Quantityfloat64V1CustomerPlanListPriceAdjustmentsResponse], error)
get/v1/customers/{customer_id}/plans/{customer_plan_id}/priceAdjustments

Lists a customer plans adjustments. See the price adjustments documentation for details.

Parameters
paramsCustomerIDfieldCustomerPlanIDfieldLimitfieldNextPagefieldV1CustomerPlanListPriceAdjustmentsParams
Hide ParametersShow Parameters
CustomerIDfield
param.Field[string]

Path param:

formatuuid
CustomerPlanIDfield
param.Field[string]

Path param: the ID of a customer-plan relationship

formatuuid
Limitfield
optional
param.Field[int64]

Query param: Max number of results that should be returned

minimum1
maximum100
NextPagefield
optional
param.Field[string]

Query param: Cursor that indicates where the next page of results should start.

Returns
V1CustomerPlanListPriceAdjustmentsResponsestruct
Hide ParametersShow Parameters
ChargeIDstring
formatuuid
ChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeUsageV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeFixedV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeCompositeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeMinimumV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeSeatV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeType
Hide ParametersShow Parameters
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeUsageconst
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeUsageV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeFixedV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeCompositeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeMinimumV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeSeatV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeType
"usage"
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeFixedconst
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeUsageV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeFixedV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeCompositeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeMinimumV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeSeatV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeType
"fixed"
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeCompositeconst
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeUsageV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeFixedV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeCompositeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeMinimumV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeSeatV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeType
"composite"
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeMinimumconst
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeUsageV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeFixedV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeCompositeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeMinimumV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeSeatV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeType
"minimum"
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeSeatconst
V1CustomerPlanListPriceAdjustmentsResponseChargeTypeUsageV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeFixedV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeCompositeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeMinimumV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeTypeSeatV1CustomerPlanListPriceAdjustmentsResponseChargeTypeV1CustomerPlanListPriceAdjustmentsResponseChargeType
"seat"
Hide ParametersShow Parameters
AdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeFixedV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeQuantityV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypePercentageV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeOverrideV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentType

Determines how the value will be applied.

Hide ParametersShow Parameters
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeFixedconst
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeFixedV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeQuantityV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypePercentageV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeOverrideV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentType
"fixed"
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeQuantityconst
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeFixedV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeQuantityV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypePercentageV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeOverrideV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentType
"quantity"
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypePercentageconst
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeFixedV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeQuantityV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypePercentageV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeOverrideV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentType
"percentage"
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeOverrideconst
V1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeFixedV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeQuantityV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypePercentageV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeOverrideV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentTypeV1CustomerPlanListPriceAdjustmentsResponsePricesAdjustmentType
"override"
Tierfloat64
optional

Used in pricing tiers. Indicates at what metric value the price applies.

Valuefloat64
optional
StartPeriodfloat64
Quantityfloat64
optional
package main

import (
  "context"
  "fmt"

  "github.com/Metronome-Industries/metronome-go"
  "github.com/Metronome-Industries/metronome-go/option"
)

func main() {
  client := metronome.NewClient(
    option.WithBearerToken("My Bearer Token"),
  )
  page, err := client.V1.Customers.Plans.ListPriceAdjustments(context.TODO(), metronome.V1CustomerPlanListPriceAdjustmentsParams{
    CustomerID: metronome.F("d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"),
    CustomerPlanID: metronome.F("7aa11640-0703-4600-8eb9-293f535a6b74"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
200 Example
{
  "data": [
    {
      "charge_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "charge_type": "usage",
      "prices": [
        {
          "adjustment_type": "fixed",
          "tier": 0,
          "value": 0
        }
      ],
      "start_period": 0,
      "quantity": 0
    }
  ],
  "next_page": "next_page"
}