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

Get Edit History

Get contract edit history
client.V2.Contracts.GetEditHistory(ctx, body) (*DataarrayV2ContractGetEditHistoryResponse, error)
post/v2/contracts/getEditHistory

Get the edit history of a specific contract. Contract editing must be enabled to use this endpoint.

Parameters
bodyContractIDfieldCustomerIDfieldV2ContractGetEditHistoryParams
Hide ParametersShow Parameters
ContractIDfield
param.Field[string]
formatuuid
CustomerIDfield
param.Field[string]
formatuuid
Returns
V2ContractGetEditHistoryResponsestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
TypeV2ContractGetEditHistoryResponseDataAddCommitsTypePrepaidV2ContractGetEditHistoryResponseDataAddCommitsTypeV2ContractGetEditHistoryResponseDataAddCommitsTypePostpaidV2ContractGetEditHistoryResponseDataAddCommitsTypeV2ContractGetEditHistoryResponseDataAddCommitsType
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCommitsTypePrepaidconst
V2ContractGetEditHistoryResponseDataAddCommitsTypePrepaidV2ContractGetEditHistoryResponseDataAddCommitsTypeV2ContractGetEditHistoryResponseDataAddCommitsTypePostpaidV2ContractGetEditHistoryResponseDataAddCommitsTypeV2ContractGetEditHistoryResponseDataAddCommitsType
"PREPAID"
V2ContractGetEditHistoryResponseDataAddCommitsTypePostpaidconst
V2ContractGetEditHistoryResponseDataAddCommitsTypePrepaidV2ContractGetEditHistoryResponseDataAddCommitsTypeV2ContractGetEditHistoryResponseDataAddCommitsTypePostpaidV2ContractGetEditHistoryResponseDataAddCommitsTypeV2ContractGetEditHistoryResponseDataAddCommitsType
"POSTPAID"
AccessScheduleScheduleItemsarrayCreditTypeCreditTypeDataScheduleDuration
optional

The schedule that the customer will gain access to the credits purposed with this commit.

ApplicableProductIDsarray
optional
[]string
ApplicableProductTagsarray
optional
[]string
Descriptionstring
optional

Optional configuration for commit hierarchy access control

Hide ParametersShow Parameters
ChildAccessV2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
InvoiceScheduleCreditTypeCreditTypeDataDoNotInvoiceboolScheduleItemsarraySchedulePointInTime
optional

The schedule that the customer will be invoiced for this commit.

Namestring
optional
NetsuiteSalesOrderIDstring
optional

This field's availability is dependent on your client's configuration.

Priorityfloat64
optional

If multiple credits or commits are applicable, the one with the lower priority will apply first.

RateTypeV2ContractGetEditHistoryResponseDataAddCommitsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddCommitsRateTypeV2ContractGetEditHistoryResponseDataAddCommitsRateTypeListRateV2ContractGetEditHistoryResponseDataAddCommitsRateTypeV2ContractGetEditHistoryResponseDataAddCommitsRateType
optional
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCommitsRateTypeCommitRateconst
V2ContractGetEditHistoryResponseDataAddCommitsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddCommitsRateTypeV2ContractGetEditHistoryResponseDataAddCommitsRateTypeListRateV2ContractGetEditHistoryResponseDataAddCommitsRateTypeV2ContractGetEditHistoryResponseDataAddCommitsRateType
"COMMIT_RATE"
V2ContractGetEditHistoryResponseDataAddCommitsRateTypeListRateconst
V2ContractGetEditHistoryResponseDataAddCommitsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddCommitsRateTypeV2ContractGetEditHistoryResponseDataAddCommitsRateTypeListRateV2ContractGetEditHistoryResponseDataAddCommitsRateTypeV2ContractGetEditHistoryResponseDataAddCommitsRateType
"LIST_RATE"
RolloverFractionfloat64
optional
SalesforceOpportunityIDstring
optional

This field's availability is dependent on your client's configuration.

Specifiersarray
optional

List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.

Hide ParametersShow Parameters
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional

If provided, the specifier will only apply to the product with the specified ID.

formatuuid
ProductTagsarray
optional
[]string

If provided, the specifier will only apply to products with all the specified tags.

Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCreditsTypeCreditconst
"CREDIT"
AccessScheduleScheduleItemsarrayCreditTypeCreditTypeDataScheduleDuration
optional

The schedule that the customer will gain access to the credits.

ApplicableProductIDsarray
optional
[]string
ApplicableProductTagsarray
optional
[]string
Descriptionstring
optional

Optional configuration for recurring credit hierarchy access control

Hide ParametersShow Parameters
ChildAccessV2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
Namestring
optional
NetsuiteSalesOrderIDstring
optional

This field's availability is dependent on your client's configuration.

Priorityfloat64
optional

If multiple credits or commits are applicable, the one with the lower priority will apply first.

SalesforceOpportunityIDstring
optional

This field's availability is dependent on your client's configuration.

Specifiersarray
optional

List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.

Hide ParametersShow Parameters
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional

If provided, the specifier will only apply to the product with the specified ID.

formatuuid
ProductTagsarray
optional
[]string

If provided, the specifier will only apply to products with all the specified tags.

AddDiscountsarray
optional
[]IDstringProductDiscountProductScheduleSchedulePointInTimeCustomFieldsmapNamestringNetsuiteSalesOrderIDstringDiscount
Hide ParametersShow Parameters
IDstring
formatuuid
ProductIDstringNamestringDiscountProduct
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
ScheduleCreditTypeCreditTypeDataDoNotInvoiceboolScheduleItemsarraySchedulePointInTime
CustomFieldsmap
optional
map[string, string]
Namestring
optional
minLength1
NetsuiteSalesOrderIDstring
optional

This field's availability is dependent on your client's configuration.

Hide ParametersShow Parameters
IDstring
formatuuid
StartingAtTime
formatdate-time
ApplicableProductTagsarray
optional
[]string
EndingBeforeTime
optional
formatdate-time
Entitledbool
optional
IsCommitSpecificbool
optional
Multiplierfloat64
optional
Hide ParametersShow Parameters
BillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequency
optional
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyMonthlyconst
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequency
"MONTHLY"
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyQuarterlyconst
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequency
"QUARTERLY"
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyAnnualconst
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequency
"ANNUAL"
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyWeeklyconst
V2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequencyV2ContractGetEditHistoryResponseDataAddOverridesOverrideSpecifiersBillingFrequency
"WEEKLY"
CommitIDsarray
optional
[]string
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional
formatuuid
ProductTagsarray
optional
[]string
RecurringCommitIDsarray
optional
[]string
RecurringCreditIDsarray
optional
[]string
Hide ParametersShow Parameters
Multiplierfloat64
Sizefloat64
optional
OverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCreditTypeCreditTypeDataCustomRatemapIsProratedboolPricefloat64Quantityfloat64TiersarrayV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRate
optional
Hide ParametersShow Parameters
RateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeFlatV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypePercentageV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeSubscriptionV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCustomV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateType
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeFlatconst
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeFlatV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypePercentageV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeSubscriptionV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCustomV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateType
"FLAT"
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypePercentageconst
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeFlatV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypePercentageV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeSubscriptionV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCustomV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateType
"PERCENTAGE"
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeSubscriptionconst
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeFlatV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypePercentageV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeSubscriptionV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCustomV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateType
"SUBSCRIPTION"
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeTieredconst
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeFlatV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypePercentageV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeSubscriptionV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCustomV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateType
"TIERED"
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCustomconst
V2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeFlatV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypePercentageV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeSubscriptionV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeCustomV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateTypeV2ContractGetEditHistoryResponseDataAddOverridesOverwriteRateRateType
"CUSTOM"
CreditTypeIDstringNamestringCreditTypeData
optional
CustomRatemap
optional
map[string, unknown]

Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.

IsProratedbool
optional

Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.

Pricefloat64
optional

Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.

Quantityfloat64
optional

Default quantity. For SUBSCRIPTION rate_type, this must be >=0.

Tiersarray
optional
[]Pricefloat64Sizefloat64Tier

Only set for TIERED rate_type.

Hide ParametersShow Parameters
Pricefloat64
Sizefloat64
optional
Priorityfloat64
optional
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
TargetV2ContractGetEditHistoryResponseDataAddOverridesTargetCommitRateV2ContractGetEditHistoryResponseDataAddOverridesTargetV2ContractGetEditHistoryResponseDataAddOverridesTargetListRateV2ContractGetEditHistoryResponseDataAddOverridesTargetV2ContractGetEditHistoryResponseDataAddOverridesTarget
optional
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddOverridesTargetCommitRateconst
V2ContractGetEditHistoryResponseDataAddOverridesTargetCommitRateV2ContractGetEditHistoryResponseDataAddOverridesTargetV2ContractGetEditHistoryResponseDataAddOverridesTargetListRateV2ContractGetEditHistoryResponseDataAddOverridesTargetV2ContractGetEditHistoryResponseDataAddOverridesTarget
"COMMIT_RATE"
V2ContractGetEditHistoryResponseDataAddOverridesTargetListRateconst
V2ContractGetEditHistoryResponseDataAddOverridesTargetCommitRateV2ContractGetEditHistoryResponseDataAddOverridesTargetV2ContractGetEditHistoryResponseDataAddOverridesTargetListRateV2ContractGetEditHistoryResponseDataAddOverridesTargetV2ContractGetEditHistoryResponseDataAddOverridesTarget
"LIST_RATE"
TypeV2ContractGetEditHistoryResponseDataAddOverridesTypeOverwriteV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeMultiplierV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesType
optional
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddOverridesTypeOverwriteconst
V2ContractGetEditHistoryResponseDataAddOverridesTypeOverwriteV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeMultiplierV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesType
"OVERWRITE"
V2ContractGetEditHistoryResponseDataAddOverridesTypeMultiplierconst
V2ContractGetEditHistoryResponseDataAddOverridesTypeOverwriteV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeMultiplierV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesType
"MULTIPLIER"
V2ContractGetEditHistoryResponseDataAddOverridesTypeTieredconst
V2ContractGetEditHistoryResponseDataAddOverridesTypeOverwriteV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeMultiplierV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesTypeTieredV2ContractGetEditHistoryResponseDataAddOverridesTypeV2ContractGetEditHistoryResponseDataAddOverridesType
"TIERED"
Hide ParametersShow Parameters
CommitProductIDstringApplicableProductIDsarrayApplicableProductTagsarrayDescriptionstringNamestringSpecifiersarrayV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationCommit
Hide ParametersShow Parameters
ProductIDstring

The commit product that will be used to generate the line item for commit payment.

ApplicableProductIDsarray
optional
[]string

Which products the threshold commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.

ApplicableProductTagsarray
optional
[]string

Which tags the threshold commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.

Descriptionstring
optional
Namestring
optional

Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.

Specifiersarray
optional

List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.

Hide ParametersShow Parameters
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional

If provided, the specifier will only apply to the product with the specified ID.

formatuuid
ProductTagsarray
optional
[]string

If provided, the specifier will only apply to products with all the specified tags.

IsEnabledbool

When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.

Hide ParametersShow Parameters
PaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType

Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"NONE"
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"STRIPE"
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"EXTERNAL"

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
TaxAmountfloat64

Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule

TaxNamestring
optional

Name of the tax to be applied. This may be used in an invoice line item description.

Hide ParametersShow Parameters
PaymentTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType

If left blank, will default to INVOICE

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"INVOICE"
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"PAYMENT_INTENT"
InvoiceMetadatamap
optional
map[string, string]

Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.

TaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
optional

Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"NONE"
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"STRIPE"
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"ANROK"
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedconst
V2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"PRECALCULATED"
RechargeToAmountfloat64

Specify the amount the balance should be recharged to.

ThresholdAmountfloat64

Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.

CustomCreditTypeIDstring
optional

If provided, the threshold, recharge-to amount, and the resulting threshold commit amount will be in terms of this credit type instead of the fiat currency.

formatuuid
AddProServicesarray
optional
[]IDstringMaxAmountfloat64ProductIDstringQuantityfloat64UnitPricefloat64CustomFieldsmapDescriptionstringNetsuiteSalesOrderIDstringProService
Hide ParametersShow Parameters
IDstring
formatuuid
MaxAmountfloat64

Maximum amount for the term.

ProductIDstring
formatuuid
Quantityfloat64

Quantity for the charge. Will be multiplied by unit_price to determine the amount.

UnitPricefloat64

Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified.

CustomFieldsmap
optional
map[string, string]
Descriptionstring
optional
NetsuiteSalesOrderIDstring
optional

This field's availability is dependent on your client's configuration.

Hide ParametersShow Parameters
IDstring
formatuuid
AccessAmountCreditTypeIDstringUnitPricefloat64Quantityfloat64V2ContractGetEditHistoryResponseDataAddRecurringCommitsAccessAmount

The amount of commit to grant.

Hide ParametersShow Parameters
CreditTypeIDstring
formatuuid
UnitPricefloat64
Quantityfloat64
optional
Hide ParametersShow Parameters
Valuefloat64
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsCommitDurationUnitPeriodsconst
"PERIODS"
Priorityfloat64

Will be passed down to the individual commits

Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
RateTypeV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeListRateV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateType

Whether the created commits will use the commit rate or list rate

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeCommitRateconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeListRateV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateType
"COMMIT_RATE"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeListRateconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeListRateV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCommitsRateType
"LIST_RATE"
StartingAtTime

Determines the start time for the first commit

formatdate-time
ApplicableProductIDsarray
optional
[]string

Will be passed down to the individual commits

ApplicableProductTagsarray
optional
[]string

Will be passed down to the individual commits

Hide ParametersShow Parameters
IDstring
formatuuid
Descriptionstring
optional

Will be passed down to the individual commits

EndingBeforeTime
optional

Determines when the contract will stop creating recurring commits. Optional

formatdate-time

Optional configuration for recurring credit hierarchy access control

Hide ParametersShow Parameters
ChildAccessV2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
InvoiceAmountCreditTypeIDstringQuantityfloat64UnitPricefloat64V2ContractGetEditHistoryResponseDataAddRecurringCommitsInvoiceAmount
optional

The amount the customer should be billed for the commit. Not required.

Hide ParametersShow Parameters
CreditTypeIDstring
formatuuid
Quantityfloat64
UnitPricefloat64
Namestring
optional

Displayed on invoices. Will be passed through to the individual commits

NetsuiteSalesOrderIDstring
optional

Will be passed down to the individual commits

ProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProration
optional

Determines whether the first and last commit will be prorated. If not provided, the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationNoneconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProration
"NONE"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProration
"FIRST"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationLastconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProration
"LAST"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstAndLastconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCommitsProrationV2ContractGetEditHistoryResponseDataAddRecurringCommitsProration
"FIRST_AND_LAST"
RecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequency
optional

The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyMonthlyconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequency
"MONTHLY"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyQuarterlyconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequency
"QUARTERLY"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyAnnualconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequency
"ANNUAL"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyWeeklyconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCommitsRecurrenceFrequency
"WEEKLY"
RolloverFractionfloat64
optional

Will be passed down to the individual commits. This controls how much of an individual unexpired commit will roll over upon contract transition. Must be between 0 and 1.

Specifiersarray
optional

List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown.

Hide ParametersShow Parameters
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional

If provided, the specifier will only apply to the product with the specified ID.

formatuuid
ProductTagsarray
optional
[]string

If provided, the specifier will only apply to products with all the specified tags.

Hide ParametersShow Parameters
AllocationV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationIndividualV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationPooledV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocation
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationIndividualconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationIndividualV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationPooledV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocation
"INDIVIDUAL"
V2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationPooledconst
V2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationIndividualV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationPooledV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCommitsSubscriptionConfigAllocation
"POOLED"
Hide ParametersShow Parameters
IsProratedbool

Indicates whether a mid-period seat increase should be prorated.

SubscriptionIDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
AccessAmountCreditTypeIDstringUnitPricefloat64Quantityfloat64V2ContractGetEditHistoryResponseDataAddRecurringCreditsAccessAmount

The amount of commit to grant.

Hide ParametersShow Parameters
CreditTypeIDstring
formatuuid
UnitPricefloat64
Quantityfloat64
optional
Hide ParametersShow Parameters
Valuefloat64
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsCommitDurationUnitPeriodsconst
"PERIODS"
Priorityfloat64

Will be passed down to the individual commits

Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
RateTypeV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeListRateV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateType

Whether the created commits will use the commit rate or list rate

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeCommitRateconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeListRateV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateType
"COMMIT_RATE"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeListRateconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeCommitRateV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeListRateV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateTypeV2ContractGetEditHistoryResponseDataAddRecurringCreditsRateType
"LIST_RATE"
StartingAtTime

Determines the start time for the first commit

formatdate-time
ApplicableProductIDsarray
optional
[]string

Will be passed down to the individual commits

ApplicableProductTagsarray
optional
[]string

Will be passed down to the individual commits

Hide ParametersShow Parameters
IDstring
formatuuid
Descriptionstring
optional

Will be passed down to the individual commits

EndingBeforeTime
optional

Determines when the contract will stop creating recurring commits. Optional

formatdate-time

Optional configuration for recurring credit hierarchy access control

Hide ParametersShow Parameters
ChildAccessV2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
Namestring
optional

Displayed on invoices. Will be passed through to the individual commits

NetsuiteSalesOrderIDstring
optional

Will be passed down to the individual commits

ProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProration
optional

Determines whether the first and last commit will be prorated. If not provided, the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationNoneconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProration
"NONE"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProration
"FIRST"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationLastconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProration
"LAST"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstAndLastconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationNoneV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationFirstAndLastV2ContractGetEditHistoryResponseDataAddRecurringCreditsProrationV2ContractGetEditHistoryResponseDataAddRecurringCreditsProration
"FIRST_AND_LAST"
RecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequency
optional

The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyMonthlyconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequency
"MONTHLY"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyQuarterlyconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequency
"QUARTERLY"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyAnnualconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequency
"ANNUAL"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyWeeklyconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequencyV2ContractGetEditHistoryResponseDataAddRecurringCreditsRecurrenceFrequency
"WEEKLY"
RolloverFractionfloat64
optional

Will be passed down to the individual commits. This controls how much of an individual unexpired commit will roll over upon contract transition. Must be between 0 and 1.

Specifiersarray
optional

List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown.

Hide ParametersShow Parameters
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional

If provided, the specifier will only apply to the product with the specified ID.

formatuuid
ProductTagsarray
optional
[]string

If provided, the specifier will only apply to products with all the specified tags.

Hide ParametersShow Parameters
AllocationV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationIndividualV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationPooledV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocation
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationIndividualconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationIndividualV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationPooledV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocation
"INDIVIDUAL"
V2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationPooledconst
V2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationIndividualV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationPooledV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocationV2ContractGetEditHistoryResponseDataAddRecurringCreditsSubscriptionConfigAllocation
"POOLED"
Hide ParametersShow Parameters
IsProratedbool

Indicates whether a mid-period seat increase should be prorated.

SubscriptionIDstring
formatuuid
Hide ParametersShow Parameters
ResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerType
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsconst
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerType
"AWS"
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsProServiceconst
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerType
"AWS_PRO_SERVICE"
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpconst
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerType
"GCP"
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpProServiceconst
V2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerTypeV2ContractGetEditHistoryResponseDataAddResellerRoyaltiesResellerType
"GCP_PRO_SERVICE"
ApplicableProductIDsarray
optional
[]string
ApplicableProductTagsarray
optional
[]string
AwsAccountNumberstring
optional
AwsOfferIDstring
optional
AwsPayerReferenceIDstring
optional
EndingBeforeTime
optional
formatdate-time
Fractionfloat64
optional
GcpAccountIDstring
optional
GcpOfferIDstring
optional
NetsuiteResellerIDstring
optional
ResellerContractValuefloat64
optional
StartingAtTime
optional
formatdate-time
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
ScheduleCreditTypeCreditTypeDataDoNotInvoiceboolScheduleItemsarraySchedulePointInTime
Namestring
optional

displayed on invoices

minLength1
NetsuiteSalesOrderIDstring
optional

This field's availability is dependent on your client's configuration.

Hide ParametersShow Parameters
CommitProductIDstringDescriptionstringNamestringV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationCommit
Hide ParametersShow Parameters
ProductIDstring

The commit product that will be used to generate the line item for commit payment.

Descriptionstring
optional
Namestring
optional

Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.

IsEnabledbool

When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.

Hide ParametersShow Parameters
PaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateType

Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"NONE"
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"STRIPE"
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"EXTERNAL"

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
TaxAmountfloat64

Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule

TaxNamestring
optional

Name of the tax to be applied. This may be used in an invoice line item description.

Hide ParametersShow Parameters
PaymentTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType

If left blank, will default to INVOICE

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"INVOICE"
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"PAYMENT_INTENT"
InvoiceMetadatamap
optional
map[string, string]

Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.

TaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxType
optional

Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxType
"NONE"
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxType
"STRIPE"
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxType
"ANROK"
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedconst
V2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataAddSpendThresholdConfigurationPaymentGateConfigTaxType
"PRECALCULATED"
ThresholdAmountfloat64

Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.

AddSubscriptionsarray
optional

List of subscriptions on the contract.

Hide ParametersShow Parameters
CollectionScheduleV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleAdvanceV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleArrearsV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionSchedule
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleAdvanceconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleAdvanceV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleArrearsV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionSchedule
"ADVANCE"
V2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleArrearsconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleAdvanceV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleArrearsV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionScheduleV2ContractGetEditHistoryResponseDataAddSubscriptionsCollectionSchedule
"ARREARS"
Hide ParametersShow Parameters
InvoiceBehaviorV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillImmediatelyV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehavior
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillImmediatelyconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillImmediatelyV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehavior
"BILL_IMMEDIATELY"
V2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillImmediatelyV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehaviorV2ContractGetEditHistoryResponseDataAddSubscriptionsProrationInvoiceBehavior
"BILL_ON_NEXT_COLLECTION_DATE"
IsProratedbool
QuantitySchedulearray

List of quantity schedule items for the subscription. Only includes the current quantity and future quantity changes.

Hide ParametersShow Parameters
Quantityfloat64
StartingAtTime
formatdate-time
EndingBeforeTime
optional
formatdate-time
StartingAtTime
formatdate-time
Hide ParametersShow Parameters
BillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequency
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyMonthlyconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequency
"MONTHLY"
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyQuarterlyconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequency
"QUARTERLY"
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyAnnualconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequency
"ANNUAL"
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyWeeklyconst
V2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetEditHistoryResponseDataAddSubscriptionsSubscriptionRateBillingFrequency
"WEEKLY"
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
IDstring
optional
formatuuid
CustomFieldsmap
optional
map[string, string]
Descriptionstring
optional
EndingBeforeTime
optional
formatdate-time
FiatCreditTypeIDstring
optional
formatuuid
Namestring
optional
Hide ParametersShow Parameters
GroupKeystring
GroupValuesarray
[]string
StartingAtTime

This will match contract starting_at value if usage filter is active from the beginning of the contract.

formatdate-time
EndingBeforeTime
optional

This will match contract ending_before value if usage filter is active until the end of the contract. It will be undefined if the contract is open-ended.

formatdate-time
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
TimestampTime
optional
formatdate-time
Hide ParametersShow Parameters
IDstring
formatuuid
AccessScheduleAddScheduleItemsarrayRemoveScheduleItemsarrayUpdateScheduleItemsarrayV2ContractGetEditHistoryResponseDataUpdateCommitsAccessSchedule
optional
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Amountfloat64
EndingBeforeTime

RFC 3339 timestamp (exclusive)

formatdate-time
StartingAtTime

RFC 3339 timestamp (inclusive)

formatdate-time
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Amountfloat64
optional
EndingBeforeTime
optional

RFC 3339 timestamp (exclusive)

formatdate-time
StartingAtTime
optional

RFC 3339 timestamp (inclusive)

formatdate-time
ApplicableProductIDsarray
optional
[]string

Which products the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.

ApplicableProductTagsarray
optional
[]string

Which tags the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.

Hide ParametersShow Parameters
ChildAccessV2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
InvoiceScheduleAddScheduleItemsarrayRemoveScheduleItemsarrayUpdateScheduleItemsarrayV2ContractGetEditHistoryResponseDataUpdateCommitsInvoiceSchedule
optional
Hide ParametersShow Parameters
Hide ParametersShow Parameters
TimestampTime
formatdate-time
Amountfloat64
optional
Quantityfloat64
optional
UnitPricefloat64
optional
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Amountfloat64
optional
Quantityfloat64
optional
TimestampTime
optional
formatdate-time
UnitPricefloat64
optional
Namestring
optional
NetsuiteSalesOrderIDstring
optional
Priorityfloat64
optional

If multiple commits are applicable, the one with the lower priority will apply first.

ProductIDstring
optional
formatuuid
RolloverFractionfloat64
optional
Specifiersarray
optional

List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.

Hide ParametersShow Parameters
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional

If provided, the specifier will only apply to the product with the specified ID.

formatuuid
ProductTagsarray
optional
[]string

If provided, the specifier will only apply to products with all the specified tags.

UpdateContractEndDateTime
optional
formatdate-time
UpdateContractNamestring
optional

Value to update the contract name to. If not provided, the contract name will remain unchanged.

Hide ParametersShow Parameters
IDstring
formatuuid
AccessScheduleAddScheduleItemsarrayRemoveScheduleItemsarrayUpdateScheduleItemsarrayV2ContractGetEditHistoryResponseDataUpdateCreditsAccessSchedule
optional
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Amountfloat64
EndingBeforeTime

RFC 3339 timestamp (exclusive)

formatdate-time
StartingAtTime

RFC 3339 timestamp (inclusive)

formatdate-time
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Amountfloat64
optional
EndingBeforeTime
optional

RFC 3339 timestamp (exclusive)

formatdate-time
StartingAtTime
optional

RFC 3339 timestamp (inclusive)

formatdate-time
Hide ParametersShow Parameters
ChildAccessV2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
Namestring
optional
NetsuiteSalesOrderIDstring
optional
Priorityfloat64
optional

If multiple credits are applicable, the one with the lower priority will apply first.

RolloverFractionfloat64
optional
Hide ParametersShow Parameters
IDstring
formatuuid
CustomFieldsmap
optional
map[string, string]
Namestring
optional
NetsuiteSalesOrderIDstring
optional

Must provide either schedule_items or recurring_schedule.

Hide ParametersShow Parameters
CreditTypeIDstring
optional

Defaults to USD (cents) if not passed.

formatuuid
DoNotInvoicebool
optional

This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.

Enter the unit price and quantity for the charge or instead only send the amount. If amount is sent, the unit price is assumed to be the amount and quantity is inferred to be 1.

Hide ParametersShow Parameters
AmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedRoundedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionEachV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistribution
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedRoundedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionEachV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistribution
"DIVIDED"
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedRoundedconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedRoundedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionEachV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistribution
"DIVIDED_ROUNDED"
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionEachconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionDividedRoundedV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionEachV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistributionV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleAmountDistribution
"EACH"
EndingBeforeTime

RFC 3339 timestamp (exclusive).

formatdate-time
FrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyMonthlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyQuarterlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencySemiAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyWeeklyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequency
Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyMonthlyconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyMonthlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyQuarterlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencySemiAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyWeeklyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequency
"MONTHLY"
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyQuarterlyconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyMonthlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyQuarterlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencySemiAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyWeeklyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequency
"QUARTERLY"
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencySemiAnnualconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyMonthlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyQuarterlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencySemiAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyWeeklyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequency
"SEMI_ANNUAL"
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyAnnualconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyMonthlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyQuarterlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencySemiAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyWeeklyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequency
"ANNUAL"
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyWeeklyconst
V2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyMonthlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyQuarterlyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencySemiAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyAnnualV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyWeeklyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequencyV2ContractGetEditHistoryResponseDataUpdateDiscountsScheduleRecurringScheduleFrequency
"WEEKLY"
StartingAtTime

RFC 3339 timestamp (inclusive).

formatdate-time
Amountfloat64
optional

Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.

Quantityfloat64
optional

Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.

UnitPricefloat64
optional

Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.

ScheduleItemsarray
optional

Either provide amount or provide both unit_price and quantity.

Hide ParametersShow Parameters
TimestampTime

timestamp of the scheduled event

formatdate-time
Amountfloat64
optional

Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.

Quantityfloat64
optional

Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.

UnitPricefloat64
optional

Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.

Hide ParametersShow Parameters
CommitApplicableProductIDsarrayApplicableProductTagsarrayDescriptionstringNamestringProductIDstringSpecifiersarrayV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationCommit
optional
Hide ParametersShow Parameters
ApplicableProductIDsarray
optional
[]string

Which products the threshold commit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the commit applies to all products.

ApplicableProductTagsarray
optional
[]string

Which tags the threshold commit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the commit applies to all products.

Descriptionstring
optional
Namestring
optional

Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.

ProductIDstring
optional

The commit product that will be used to generate the line item for commit payment.

Specifiersarray
optional

List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.

Hide ParametersShow Parameters
PresentationGroupValuesmap
optional
map[string, string]
PricingGroupValuesmap
optional
map[string, string]
ProductIDstring
optional

If provided, the specifier will only apply to the product with the specified ID.

formatuuid
ProductTagsarray
optional
[]string

If provided, the specifier will only apply to products with all the specified tags.

CustomCreditTypeIDstring
optional

If provided, the threshold, recharge-to amount, and the resulting threshold commit amount will be in terms of this credit type instead of the fiat currency.

formatuuid
IsEnabledbool
optional

When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.

Hide ParametersShow Parameters
PaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType

Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"NONE"
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"STRIPE"
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"EXTERNAL"

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
TaxAmountfloat64

Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule

TaxNamestring
optional

Name of the tax to be applied. This may be used in an invoice line item description.

Hide ParametersShow Parameters
PaymentTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType

If left blank, will default to INVOICE

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"INVOICE"
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"PAYMENT_INTENT"
InvoiceMetadatamap
optional
map[string, string]

Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.

TaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
optional

Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"NONE"
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"STRIPE"
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"ANROK"
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedconst
V2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdatePrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"PRECALCULATED"
RechargeToAmountfloat64
optional

Specify the amount the balance should be recharged to.

ThresholdAmountfloat64
optional

Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.

Hide ParametersShow Parameters
IDstring
formatuuid
AccessAmountQuantityfloat64UnitPricefloat64V2ContractGetEditHistoryResponseDataUpdateRecurringCommitsAccessAmount
optional
Hide ParametersShow Parameters
Quantityfloat64
optional
UnitPricefloat64
optional
EndingBeforeTime
optional
formatdate-time
InvoiceAmountQuantityfloat64UnitPricefloat64V2ContractGetEditHistoryResponseDataUpdateRecurringCommitsInvoiceAmount
optional
Hide ParametersShow Parameters
Quantityfloat64
optional
UnitPricefloat64
optional
Hide ParametersShow Parameters
IDstring
formatuuid
AccessAmountQuantityfloat64UnitPricefloat64V2ContractGetEditHistoryResponseDataUpdateRecurringCreditsAccessAmount
optional
Hide ParametersShow Parameters
Quantityfloat64
optional
UnitPricefloat64
optional
EndingBeforeTime
optional
formatdate-time
Hide ParametersShow Parameters
DateTime
formatdate-time
InvoiceIDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
InvoiceScheduleAddScheduleItemsarrayRemoveScheduleItemsarrayUpdateScheduleItemsarrayV2ContractGetEditHistoryResponseDataUpdateScheduledChargesInvoiceSchedule
optional
Hide ParametersShow Parameters
Hide ParametersShow Parameters
TimestampTime
formatdate-time
Amountfloat64
optional
Quantityfloat64
optional
UnitPricefloat64
optional
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Amountfloat64
optional
Quantityfloat64
optional
TimestampTime
optional
formatdate-time
UnitPricefloat64
optional
Namestring
optional
NetsuiteSalesOrderIDstring
optional
Hide ParametersShow Parameters
CommitDescriptionstringNamestringProductIDstringV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationCommit
optional
Hide ParametersShow Parameters
Descriptionstring
optional
Namestring
optional

Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.

ProductIDstring
optional

The commit product that will be used to generate the line item for commit payment.

IsEnabledbool
optional

When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.

Hide ParametersShow Parameters
PaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateType

Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"NONE"
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"STRIPE"
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"EXTERNAL"

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
TaxAmountfloat64

Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule

TaxNamestring
optional

Name of the tax to be applied. This may be used in an invoice line item description.

Hide ParametersShow Parameters
PaymentTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType

If left blank, will default to INVOICE

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"INVOICE"
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"PAYMENT_INTENT"
InvoiceMetadatamap
optional
map[string, string]

Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.

TaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxType
optional

Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.

Hide ParametersShow Parameters
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxType
"NONE"
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxType
"STRIPE"
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxType
"ANROK"
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedconst
V2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetEditHistoryResponseDataUpdateSpendThresholdConfigurationPaymentGateConfigTaxType
"PRECALCULATED"
ThresholdAmountfloat64
optional

Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.

UpdateSubscriptionsarray
optional

Optional list of subscriptions to update.

Hide ParametersShow Parameters
IDstring
formatuuid
EndingBeforeTime
optional
formatdate-time
Hide ParametersShow Parameters
StartingAtTime
formatdate-time
Quantityfloat64
optional
QuantityDeltafloat64
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"),
  )
  response, err := client.V2.Contracts.GetEditHistory(context.TODO(), metronome.V2ContractGetEditHistoryParams{
    ContractID: metronome.F("d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"),
    CustomerID: metronome.F("13117714-3f05-48e5-a6e9-a66093f13b4d"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Data)
}
200 Example
{
  "data": [
    {
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "add_commits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "product": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "name": "name"
          },
          "type": "PREPAID",
          "access_schedule": {
            "schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "ending_before": "2019-12-27T18:11:19.117Z",
                "starting_at": "2019-12-27T18:11:19.117Z"
              }
            ],
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            }
          },
          "applicable_product_ids": [
            "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "description": "description",
          "hierarchy_configuration": {
            "child_access": {
              "type": "ALL"
            }
          },
          "invoice_schedule": {
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "do_not_invoice": true,
            "schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "quantity": 0,
                "timestamp": "2019-12-27T18:11:19.117Z",
                "unit_price": 0,
                "invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
              }
            ]
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "priority": 0,
          "rate_type": "COMMIT_RATE",
          "rollover_fraction": 0,
          "salesforce_opportunity_id": "salesforce_opportunity_id",
          "specifiers": [
            {
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ]
            }
          ]
        }
      ],
      "add_credits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "product": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "name": "name"
          },
          "type": "CREDIT",
          "access_schedule": {
            "schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "ending_before": "2019-12-27T18:11:19.117Z",
                "starting_at": "2019-12-27T18:11:19.117Z"
              }
            ],
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            }
          },
          "applicable_product_ids": [
            "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "description": "description",
          "hierarchy_configuration": {
            "child_access": {
              "type": "ALL"
            }
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "priority": 0,
          "salesforce_opportunity_id": "salesforce_opportunity_id",
          "specifiers": [
            {
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ]
            }
          ]
        }
      ],
      "add_discounts": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "product": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "name": "name"
          },
          "schedule": {
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "do_not_invoice": true,
            "schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "quantity": 0,
                "timestamp": "2019-12-27T18:11:19.117Z",
                "unit_price": 0,
                "invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
              }
            ]
          },
          "custom_fields": {
            "foo": "string"
          },
          "name": "x",
          "netsuite_sales_order_id": "netsuite_sales_order_id"
        }
      ],
      "add_overrides": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "starting_at": "2019-12-27T18:11:19.117Z",
          "applicable_product_tags": [
            "string"
          ],
          "ending_before": "2019-12-27T18:11:19.117Z",
          "entitled": true,
          "is_commit_specific": true,
          "multiplier": 0,
          "override_specifiers": [
            {
              "billing_frequency": "MONTHLY",
              "commit_ids": [
                "string"
              ],
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ],
              "recurring_commit_ids": [
                "string"
              ],
              "recurring_credit_ids": [
                "string"
              ]
            }
          ],
          "override_tiers": [
            {
              "multiplier": 0,
              "size": 0
            }
          ],
          "overwrite_rate": {
            "rate_type": "FLAT",
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "custom_rate": {
              "foo": "bar"
            },
            "is_prorated": true,
            "price": 0,
            "quantity": 0,
            "tiers": [
              {
                "price": 0,
                "size": 0
              }
            ]
          },
          "priority": 0,
          "product": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "name": "name"
          },
          "target": "COMMIT_RATE",
          "type": "OVERWRITE"
        }
      ],
      "add_prepaid_balance_threshold_configuration": {
        "commit": {
          "product_id": "product_id",
          "applicable_product_ids": [
            "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "description": "description",
          "name": "name",
          "specifiers": [
            {
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ]
            }
          ]
        },
        "is_enabled": true,
        "payment_gate_config": {
          "payment_gate_type": "NONE",
          "precalculated_tax_config": {
            "tax_amount": 0,
            "tax_name": "tax_name"
          },
          "stripe_config": {
            "payment_type": "INVOICE",
            "invoice_metadata": {
              "foo": "string"
            }
          },
          "tax_type": "NONE"
        },
        "recharge_to_amount": 0,
        "threshold_amount": 0,
        "custom_credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      },
      "add_pro_services": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "max_amount": 0,
          "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "quantity": 0,
          "unit_price": 0,
          "custom_fields": {
            "foo": "string"
          },
          "description": "description",
          "netsuite_sales_order_id": "netsuite_sales_order_id"
        }
      ],
      "add_recurring_commits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "access_amount": {
            "credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "unit_price": 0,
            "quantity": 0
          },
          "commit_duration": {
            "value": 0,
            "unit": "PERIODS"
          },
          "priority": 0,
          "product": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "name": "name"
          },
          "rate_type": "COMMIT_RATE",
          "starting_at": "2019-12-27T18:11:19.117Z",
          "applicable_product_ids": [
            "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "contract": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          },
          "description": "description",
          "ending_before": "2019-12-27T18:11:19.117Z",
          "hierarchy_configuration": {
            "child_access": {
              "type": "ALL"
            }
          },
          "invoice_amount": {
            "credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "quantity": 0,
            "unit_price": 0
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "proration": "NONE",
          "recurrence_frequency": "MONTHLY",
          "rollover_fraction": 0,
          "specifiers": [
            {
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ]
            }
          ],
          "subscription_config": {
            "allocation": "INDIVIDUAL",
            "apply_seat_increase_config": {
              "is_prorated": true
            },
            "subscription_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          }
        }
      ],
      "add_recurring_credits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "access_amount": {
            "credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "unit_price": 0,
            "quantity": 0
          },
          "commit_duration": {
            "value": 0,
            "unit": "PERIODS"
          },
          "priority": 0,
          "product": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "name": "name"
          },
          "rate_type": "COMMIT_RATE",
          "starting_at": "2019-12-27T18:11:19.117Z",
          "applicable_product_ids": [
            "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "contract": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          },
          "description": "description",
          "ending_before": "2019-12-27T18:11:19.117Z",
          "hierarchy_configuration": {
            "child_access": {
              "type": "ALL"
            }
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "proration": "NONE",
          "recurrence_frequency": "MONTHLY",
          "rollover_fraction": 0,
          "specifiers": [
            {
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ]
            }
          ],
          "subscription_config": {
            "allocation": "INDIVIDUAL",
            "apply_seat_increase_config": {
              "is_prorated": true
            },
            "subscription_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          }
        }
      ],
      "add_reseller_royalties": [
        {
          "reseller_type": "AWS",
          "applicable_product_ids": [
            "string"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "aws_account_number": "aws_account_number",
          "aws_offer_id": "aws_offer_id",
          "aws_payer_reference_id": "aws_payer_reference_id",
          "ending_before": "2019-12-27T18:11:19.117Z",
          "fraction": 0,
          "gcp_account_id": "gcp_account_id",
          "gcp_offer_id": "gcp_offer_id",
          "netsuite_reseller_id": "netsuite_reseller_id",
          "reseller_contract_value": 0,
          "starting_at": "2019-12-27T18:11:19.117Z"
        }
      ],
      "add_scheduled_charges": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "product": {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "name": "name"
          },
          "schedule": {
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "do_not_invoice": true,
            "schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "quantity": 0,
                "timestamp": "2019-12-27T18:11:19.117Z",
                "unit_price": 0,
                "invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
              }
            ]
          },
          "name": "x",
          "netsuite_sales_order_id": "netsuite_sales_order_id"
        }
      ],
      "add_spend_threshold_configuration": {
        "commit": {
          "product_id": "product_id",
          "description": "description",
          "name": "name"
        },
        "is_enabled": true,
        "payment_gate_config": {
          "payment_gate_type": "NONE",
          "precalculated_tax_config": {
            "tax_amount": 0,
            "tax_name": "tax_name"
          },
          "stripe_config": {
            "payment_type": "INVOICE",
            "invoice_metadata": {
              "foo": "string"
            }
          },
          "tax_type": "NONE"
        },
        "threshold_amount": 0
      },
      "add_subscriptions": [
        {
          "collection_schedule": "ADVANCE",
          "proration": {
            "invoice_behavior": "BILL_IMMEDIATELY",
            "is_prorated": true
          },
          "quantity_schedule": [
            {
              "quantity": 0,
              "starting_at": "2019-12-27T18:11:19.117Z",
              "ending_before": "2019-12-27T18:11:19.117Z"
            }
          ],
          "starting_at": "2019-12-27T18:11:19.117Z",
          "subscription_rate": {
            "billing_frequency": "MONTHLY",
            "product": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            }
          },
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "custom_fields": {
            "foo": "string"
          },
          "description": "description",
          "ending_before": "2019-12-27T18:11:19.117Z",
          "fiat_credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "name": "name"
        }
      ],
      "add_usage_filters": [
        {
          "group_key": "group_key",
          "group_values": [
            "string"
          ],
          "starting_at": "2019-12-27T18:11:19.117Z",
          "ending_before": "2019-12-27T18:11:19.117Z"
        }
      ],
      "archive_commits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        }
      ],
      "archive_credits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        }
      ],
      "archive_scheduled_charges": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        }
      ],
      "remove_overrides": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        }
      ],
      "timestamp": "2019-12-27T18:11:19.117Z",
      "update_commits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "access_schedule": {
            "add_schedule_items": [
              {
                "amount": 0,
                "ending_before": "2019-12-27T18:11:19.117Z",
                "starting_at": "2019-12-27T18:11:19.117Z"
              }
            ],
            "remove_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
              }
            ],
            "update_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "ending_before": "2019-12-27T18:11:19.117Z",
                "starting_at": "2019-12-27T18:11:19.117Z"
              }
            ]
          },
          "applicable_product_ids": [
            "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "hierarchy_configuration": {
            "child_access": {
              "type": "ALL"
            }
          },
          "invoice_schedule": {
            "add_schedule_items": [
              {
                "timestamp": "2019-12-27T18:11:19.117Z",
                "amount": 0,
                "quantity": 0,
                "unit_price": 0
              }
            ],
            "remove_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
              }
            ],
            "update_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "quantity": 0,
                "timestamp": "2019-12-27T18:11:19.117Z",
                "unit_price": 0
              }
            ]
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "priority": 0,
          "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "rollover_fraction": 0,
          "specifiers": [
            {
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ]
            }
          ]
        }
      ],
      "update_contract_end_date": "2019-12-27T18:11:19.117Z",
      "update_contract_name": "update_contract_name",
      "update_credits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "access_schedule": {
            "add_schedule_items": [
              {
                "amount": 0,
                "ending_before": "2019-12-27T18:11:19.117Z",
                "starting_at": "2019-12-27T18:11:19.117Z"
              }
            ],
            "remove_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
              }
            ],
            "update_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "ending_before": "2019-12-27T18:11:19.117Z",
                "starting_at": "2019-12-27T18:11:19.117Z"
              }
            ]
          },
          "hierarchy_configuration": {
            "child_access": {
              "type": "ALL"
            }
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "priority": 0,
          "rollover_fraction": 0
        }
      ],
      "update_discounts": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "custom_fields": {
            "foo": "string"
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "schedule": {
            "credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "do_not_invoice": true,
            "recurring_schedule": {
              "amount_distribution": "DIVIDED",
              "ending_before": "2019-12-27T18:11:19.117Z",
              "frequency": "MONTHLY",
              "starting_at": "2019-12-27T18:11:19.117Z",
              "amount": 0,
              "quantity": 0,
              "unit_price": 0
            },
            "schedule_items": [
              {
                "timestamp": "2019-12-27T18:11:19.117Z",
                "amount": 0,
                "quantity": 0,
                "unit_price": 0
              }
            ]
          }
        }
      ],
      "update_prepaid_balance_threshold_configuration": {
        "commit": {
          "applicable_product_ids": [
            "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
          ],
          "applicable_product_tags": [
            "string"
          ],
          "description": "description",
          "name": "name",
          "product_id": "product_id",
          "specifiers": [
            {
              "presentation_group_values": {
                "foo": "string"
              },
              "pricing_group_values": {
                "foo": "string"
              },
              "product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "product_tags": [
                "string"
              ]
            }
          ]
        },
        "custom_credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "is_enabled": true,
        "payment_gate_config": {
          "payment_gate_type": "NONE",
          "precalculated_tax_config": {
            "tax_amount": 0,
            "tax_name": "tax_name"
          },
          "stripe_config": {
            "payment_type": "INVOICE",
            "invoice_metadata": {
              "foo": "string"
            }
          },
          "tax_type": "NONE"
        },
        "recharge_to_amount": 0,
        "threshold_amount": 0
      },
      "update_recurring_commits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "access_amount": {
            "quantity": 0,
            "unit_price": 0
          },
          "ending_before": "2019-12-27T18:11:19.117Z",
          "invoice_amount": {
            "quantity": 0,
            "unit_price": 0
          }
        }
      ],
      "update_recurring_credits": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "access_amount": {
            "quantity": 0,
            "unit_price": 0
          },
          "ending_before": "2019-12-27T18:11:19.117Z"
        }
      ],
      "update_refund_invoices": [
        {
          "date": "2019-12-27T18:11:19.117Z",
          "invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        }
      ],
      "update_scheduled_charges": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "invoice_schedule": {
            "add_schedule_items": [
              {
                "timestamp": "2019-12-27T18:11:19.117Z",
                "amount": 0,
                "quantity": 0,
                "unit_price": 0
              }
            ],
            "remove_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
              }
            ],
            "update_schedule_items": [
              {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "amount": 0,
                "quantity": 0,
                "timestamp": "2019-12-27T18:11:19.117Z",
                "unit_price": 0
              }
            ]
          },
          "name": "name",
          "netsuite_sales_order_id": "netsuite_sales_order_id"
        }
      ],
      "update_spend_threshold_configuration": {
        "commit": {
          "description": "description",
          "name": "name",
          "product_id": "product_id"
        },
        "is_enabled": true,
        "payment_gate_config": {
          "payment_gate_type": "NONE",
          "precalculated_tax_config": {
            "tax_amount": 0,
            "tax_name": "tax_name"
          },
          "stripe_config": {
            "payment_type": "INVOICE",
            "invoice_metadata": {
              "foo": "string"
            }
          },
          "tax_type": "NONE"
        },
        "threshold_amount": 0
      },
      "update_subscriptions": [
        {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "ending_before": "2019-12-27T18:11:19.117Z",
          "quantity_updates": [
            {
              "starting_at": "2019-12-27T18:11:19.117Z",
              "quantity": 0,
              "quantity_delta": 0
            }
          ]
        }
      ]
    }
  ]
}