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

Retrieve

Get a contract (v2)
client.V2.Contracts.Get(ctx, body) (*DataV2ContractGetResponseDataV2ContractGetResponse, error)
post/v2/contracts/get

Get a specific contract. New clients should use this endpoint rather than the v1 endpoint.

Parameters
bodyContractIDfieldCustomerIDfieldAsOfDatefieldIncludeBalancefieldIncludeLedgersfieldV2ContractGetParams
Hide ParametersShow Parameters
ContractIDfield
param.Field[string]
formatuuid
CustomerIDfield
param.Field[string]
formatuuid
AsOfDatefield
optional
param.Field[Time]

Optional RFC 3339 timestamp. Return the contract as of this date. Cannot be used with include_ledgers parameter.

formatdate-time
IncludeBalancefield
optional
param.Field[bool]

Include the balance of credits and commits in the response. Setting this flag may cause the query to be slower.

IncludeLedgersfield
optional
param.Field[bool]

Include commit/credit ledgers in the response. Setting this flag may cause the query to be slower. Cannot be used with as_of_date parameter.

Returns
V2ContractGetResponsestruct
Hide ParametersShow Parameters
DataIDstringCommitsarrayCreatedAtTimeCreatedBystringCustomerIDstringOverridesarrayScheduledChargesarrayStartingAtTimeTransitionsarrayUsageFilterarrayUsageStatementScheduleV2ContractGetResponseDataUsageStatementScheduleArchivedAtTimeCreditsarrayCustomFieldsmapCustomerBillingProviderConfigurationV2ContractGetResponseDataCustomerBillingProviderConfigurationDiscountsarrayEndingBeforeTimeHasMoreV2ContractGetResponseDataHasMoreHierarchyConfigurationV2ContractGetResponseDataHierarchyConfigurationMultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritizationNamestringNetPaymentTermsDaysfloat64NetsuiteSalesOrderIDstringPrepaidBalanceThresholdConfigurationV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPriorityfloat64ProfessionalServicesarrayRateCardIDstringRecurringCommitsarrayRecurringCreditsarrayResellerRoyaltiesarraySalesforceOpportunityIDstringScheduledChargesOnUsageInvoicesV2ContractGetResponseDataScheduledChargesOnUsageInvoicesSpendThresholdConfigurationV2ContractGetResponseDataSpendThresholdConfigurationSubscriptionsarrayTotalContractValuefloat64UniquenessKeystringV2ContractGetResponseData
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
TypeV2ContractGetResponseDataCommitsTypePrepaidV2ContractGetResponseDataCommitsTypeV2ContractGetResponseDataCommitsTypePostpaidV2ContractGetResponseDataCommitsTypeV2ContractGetResponseDataCommitsType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsTypePrepaidconst
V2ContractGetResponseDataCommitsTypePrepaidV2ContractGetResponseDataCommitsTypeV2ContractGetResponseDataCommitsTypePostpaidV2ContractGetResponseDataCommitsTypeV2ContractGetResponseDataCommitsType
"PREPAID"
V2ContractGetResponseDataCommitsTypePostpaidconst
V2ContractGetResponseDataCommitsTypePrepaidV2ContractGetResponseDataCommitsTypeV2ContractGetResponseDataCommitsTypePostpaidV2ContractGetResponseDataCommitsTypeV2ContractGetResponseDataCommitsType
"POSTPAID"
AccessScheduleScheduleItemsarrayCreditTypeCreditTypeDataScheduleDuration
optional

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

ApplicableContractIDsarray
optional
[]string
ApplicableProductIDsarray
optional
[]string
ApplicableProductTagsarray
optional
[]string
ArchivedAtTime
optional
formatdate-time
Balancefloat64
optional

The current balance of the credit or commit. This balance reflects the amount of credit or commit that the customer has access to use at this moment - thus, expired and upcoming credit or commit segments contribute 0 to the balance. The balance will match the sum of all ledger entries with the exception of the case where the sum of negative manual ledger entries exceeds the positive amount remaining on the credit or commit - in that case, the balance will be 0. All manual ledger entries associated with active credit or commit segments are included in the balance, including future-dated manual ledger entries.

Hide ParametersShow Parameters
IDstring
formatuuid
CustomFieldsmap
optional
map[string, string]
Descriptionstring
optional

Optional configuration for commit hierarchy access control

Hide ParametersShow Parameters
ChildAccessV2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"

The contract that this commit will be billed on.

Hide ParametersShow Parameters
IDstring
formatuuid
InvoiceScheduleCreditTypeCreditTypeDataDoNotInvoiceboolScheduleItemsarraySchedulePointInTime
optional

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

Ledgerarray
optional

A list of ordered events that impact the balance of a commit. For example, an invoice deduction or a rollover.

Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitSegmentStartLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitSegmentStartLedgerEntryTypePrepaidCommitSegmentStartV2ContractGetResponseDataCommitsLedgerPrepaidCommitSegmentStartLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitSegmentStartLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitSegmentStartLedgerEntryTypePrepaidCommitSegmentStartconst
"PREPAID_COMMIT_SEGMENT_START"
V2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntryTypePrepaidCommitAutomatedInvoiceDeductionV2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntryTypePrepaidCommitAutomatedInvoiceDeductionconst
V2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntryTypePrepaidCommitAutomatedInvoiceDeductionV2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitAutomatedInvoiceDeductionLedgerEntryType
"PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCommitsLedgerPrepaidCommitRolloverLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
NewContractIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitRolloverLedgerEntryTypePrepaidCommitRolloverV2ContractGetResponseDataCommitsLedgerPrepaidCommitRolloverLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitRolloverLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitRolloverLedgerEntryTypePrepaidCommitRolloverconst
"PREPAID_COMMIT_ROLLOVER"
V2ContractGetResponseDataCommitsLedgerPrepaidCommitExpirationLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitExpirationLedgerEntryTypePrepaidCommitExpirationV2ContractGetResponseDataCommitsLedgerPrepaidCommitExpirationLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitExpirationLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitExpirationLedgerEntryTypePrepaidCommitExpirationconst
"PREPAID_COMMIT_EXPIRATION"
V2ContractGetResponseDataCommitsLedgerPrepaidCommitCanceledLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitCanceledLedgerEntryTypePrepaidCommitCanceledV2ContractGetResponseDataCommitsLedgerPrepaidCommitCanceledLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitCanceledLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitCanceledLedgerEntryTypePrepaidCommitCanceledconst
"PREPAID_COMMIT_CANCELED"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCommitsLedgerPrepaidCommitCreditedLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitCreditedLedgerEntryTypePrepaidCommitCreditedV2ContractGetResponseDataCommitsLedgerPrepaidCommitCreditedLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitCreditedLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitCreditedLedgerEntryTypePrepaidCommitCreditedconst
"PREPAID_COMMIT_CREDITED"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntryTypePrepaidCommitSeatBasedAdjustmentV2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntryTypePrepaidCommitSeatBasedAdjustmentconst
V2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntryTypePrepaidCommitSeatBasedAdjustmentV2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPrepaidCommitSeatBasedAdjustmentLedgerEntryType
"PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT"
V2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntryTypePostpaidCommitInitialBalanceV2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntryTypePostpaidCommitInitialBalanceconst
V2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntryTypePostpaidCommitInitialBalanceV2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitInitialBalanceLedgerEntryType
"POSTPAID_COMMIT_INITIAL_BALANCE"
V2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntryTypePostpaidCommitAutomatedInvoiceDeductionV2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntryTypePostpaidCommitAutomatedInvoiceDeductionconst
V2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntryTypePostpaidCommitAutomatedInvoiceDeductionV2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitAutomatedInvoiceDeductionLedgerEntryType
"POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCommitsLedgerPostpaidCommitRolloverLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
NewContractIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitRolloverLedgerEntryTypePostpaidCommitRolloverV2ContractGetResponseDataCommitsLedgerPostpaidCommitRolloverLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitRolloverLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPostpaidCommitRolloverLedgerEntryTypePostpaidCommitRolloverconst
"POSTPAID_COMMIT_ROLLOVER"
V2ContractGetResponseDataCommitsLedgerPostpaidCommitTrueupLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPostpaidCommitTrueupLedgerEntryTypePostpaidCommitTrueupconst
"POSTPAID_COMMIT_TRUEUP"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCommitsLedgerPrepaidCommitManualLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
Reasonstring
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPrepaidCommitManualLedgerEntryTypePrepaidCommitManualconst
"PREPAID_COMMIT_MANUAL"
V2ContractGetResponseDataCommitsLedgerPostpaidCommitManualLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
Reasonstring
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPostpaidCommitManualLedgerEntryTypePostpaidCommitManualconst
"POSTPAID_COMMIT_MANUAL"
V2ContractGetResponseDataCommitsLedgerPostpaidCommitExpirationLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitExpirationLedgerEntryTypePostpaidCommitExpirationV2ContractGetResponseDataCommitsLedgerPostpaidCommitExpirationLedgerEntryTypeV2ContractGetResponseDataCommitsLedgerPostpaidCommitExpirationLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsLedgerPostpaidCommitExpirationLedgerEntryTypePostpaidCommitExpirationconst
"POSTPAID_COMMIT_EXPIRATION"
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.

RateTypeV2ContractGetResponseDataCommitsRateTypeCommitRateV2ContractGetResponseDataCommitsRateTypeV2ContractGetResponseDataCommitsRateTypeListRateV2ContractGetResponseDataCommitsRateTypeV2ContractGetResponseDataCommitsRateType
optional
Hide ParametersShow Parameters
V2ContractGetResponseDataCommitsRateTypeCommitRateconst
V2ContractGetResponseDataCommitsRateTypeCommitRateV2ContractGetResponseDataCommitsRateTypeV2ContractGetResponseDataCommitsRateTypeListRateV2ContractGetResponseDataCommitsRateTypeV2ContractGetResponseDataCommitsRateType
"COMMIT_RATE"
V2ContractGetResponseDataCommitsRateTypeListRateconst
V2ContractGetResponseDataCommitsRateTypeCommitRateV2ContractGetResponseDataCommitsRateTypeV2ContractGetResponseDataCommitsRateTypeListRateV2ContractGetResponseDataCommitsRateTypeV2ContractGetResponseDataCommitsRateType
"LIST_RATE"
RolledOverFromCommitIDstringContractIDstringV2ContractGetResponseDataCommitsRolledOverFrom
optional
Hide ParametersShow Parameters
CommitIDstring
formatuuid
ContractIDstring
formatuuid
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.

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.

CreatedAtTime
formatdate-time
CreatedBystring
CustomerIDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
StartingAtTime
formatdate-time
ApplicableProductTagsarray
optional
[]string
EndingBeforeTime
optional
formatdate-time
Entitledbool
optional
IsCommitSpecificbool
optional
Multiplierfloat64
optional
Hide ParametersShow Parameters
BillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequency
optional
Hide ParametersShow Parameters
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyMonthlyconst
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequency
"MONTHLY"
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyQuarterlyconst
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequency
"QUARTERLY"
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyAnnualconst
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequency
"ANNUAL"
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyWeeklyconst
V2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyMonthlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyQuarterlyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyAnnualV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyWeeklyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequencyV2ContractGetResponseDataOverridesOverrideSpecifiersBillingFrequency
"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
OverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeCreditTypeCreditTypeDataCustomRatemapIsProratedboolPricefloat64Quantityfloat64TiersarrayV2ContractGetResponseDataOverridesOverwriteRate
optional
Hide ParametersShow Parameters
RateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeFlatV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypePercentageV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeSubscriptionV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeTieredV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeCustomV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateType
Hide ParametersShow Parameters
V2ContractGetResponseDataOverridesOverwriteRateRateTypeFlatconst
V2ContractGetResponseDataOverridesOverwriteRateRateTypeFlatV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypePercentageV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeSubscriptionV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeTieredV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeCustomV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateType
"FLAT"
V2ContractGetResponseDataOverridesOverwriteRateRateTypePercentageconst
V2ContractGetResponseDataOverridesOverwriteRateRateTypeFlatV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypePercentageV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeSubscriptionV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeTieredV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeCustomV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateType
"PERCENTAGE"
V2ContractGetResponseDataOverridesOverwriteRateRateTypeSubscriptionconst
V2ContractGetResponseDataOverridesOverwriteRateRateTypeFlatV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypePercentageV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeSubscriptionV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeTieredV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeCustomV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateType
"SUBSCRIPTION"
V2ContractGetResponseDataOverridesOverwriteRateRateTypeTieredconst
V2ContractGetResponseDataOverridesOverwriteRateRateTypeFlatV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypePercentageV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeSubscriptionV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeTieredV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeCustomV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateType
"TIERED"
V2ContractGetResponseDataOverridesOverwriteRateRateTypeCustomconst
V2ContractGetResponseDataOverridesOverwriteRateRateTypeFlatV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypePercentageV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeSubscriptionV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeTieredV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateTypeCustomV2ContractGetResponseDataOverridesOverwriteRateRateTypeV2ContractGetResponseDataOverridesOverwriteRateRateType
"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
ProductIDstringNamestringV2ContractGetResponseDataOverridesProduct
optional
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
TargetV2ContractGetResponseDataOverridesTargetCommitRateV2ContractGetResponseDataOverridesTargetV2ContractGetResponseDataOverridesTargetListRateV2ContractGetResponseDataOverridesTargetV2ContractGetResponseDataOverridesTarget
optional
Hide ParametersShow Parameters
V2ContractGetResponseDataOverridesTargetCommitRateconst
V2ContractGetResponseDataOverridesTargetCommitRateV2ContractGetResponseDataOverridesTargetV2ContractGetResponseDataOverridesTargetListRateV2ContractGetResponseDataOverridesTargetV2ContractGetResponseDataOverridesTarget
"COMMIT_RATE"
V2ContractGetResponseDataOverridesTargetListRateconst
V2ContractGetResponseDataOverridesTargetCommitRateV2ContractGetResponseDataOverridesTargetV2ContractGetResponseDataOverridesTargetListRateV2ContractGetResponseDataOverridesTargetV2ContractGetResponseDataOverridesTarget
"LIST_RATE"
TypeV2ContractGetResponseDataOverridesTypeOverwriteV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeMultiplierV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeTieredV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesType
optional
Hide ParametersShow Parameters
V2ContractGetResponseDataOverridesTypeOverwriteconst
V2ContractGetResponseDataOverridesTypeOverwriteV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeMultiplierV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeTieredV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesType
"OVERWRITE"
V2ContractGetResponseDataOverridesTypeMultiplierconst
V2ContractGetResponseDataOverridesTypeOverwriteV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeMultiplierV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeTieredV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesType
"MULTIPLIER"
V2ContractGetResponseDataOverridesTypeTieredconst
V2ContractGetResponseDataOverridesTypeOverwriteV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeMultiplierV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesTypeTieredV2ContractGetResponseDataOverridesTypeV2ContractGetResponseDataOverridesType
"TIERED"
ScheduledChargesarray
[]IDstringProductScheduledChargeProductScheduleSchedulePointInTimeArchivedAtTimeCustomFieldsmapNamestringNetsuiteSalesOrderIDstringScheduledCharge
Hide ParametersShow Parameters
IDstring
formatuuid
ProductIDstringNamestringScheduledChargeProduct
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
ScheduleCreditTypeCreditTypeDataDoNotInvoiceboolScheduleItemsarraySchedulePointInTime
ArchivedAtTime
optional
formatdate-time
CustomFieldsmap
optional
map[string, string]
Namestring
optional

displayed on invoices

minLength1
NetsuiteSalesOrderIDstring
optional

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

StartingAtTime
formatdate-time
Hide ParametersShow Parameters
FromContractIDstring
formatuuid
ToContractIDstring
formatuuid
TypeV2ContractGetResponseDataTransitionsTypeSupersedeV2ContractGetResponseDataTransitionsTypeV2ContractGetResponseDataTransitionsTypeRenewalV2ContractGetResponseDataTransitionsTypeV2ContractGetResponseDataTransitionsType
Hide ParametersShow Parameters
V2ContractGetResponseDataTransitionsTypeSupersedeconst
V2ContractGetResponseDataTransitionsTypeSupersedeV2ContractGetResponseDataTransitionsTypeV2ContractGetResponseDataTransitionsTypeRenewalV2ContractGetResponseDataTransitionsTypeV2ContractGetResponseDataTransitionsType
"SUPERSEDE"
V2ContractGetResponseDataTransitionsTypeRenewalconst
V2ContractGetResponseDataTransitionsTypeSupersedeV2ContractGetResponseDataTransitionsTypeV2ContractGetResponseDataTransitionsTypeRenewalV2ContractGetResponseDataTransitionsTypeV2ContractGetResponseDataTransitionsType
"RENEWAL"
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
BillingAnchorDateTime

Contract usage statements follow a selected cadence based on this date.

formatdate-time
FrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyMonthlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyQuarterlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyAnnualV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyWeeklyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequency
Hide ParametersShow Parameters
V2ContractGetResponseDataUsageStatementScheduleFrequencyMonthlyconst
V2ContractGetResponseDataUsageStatementScheduleFrequencyMonthlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyQuarterlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyAnnualV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyWeeklyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequency
"MONTHLY"
V2ContractGetResponseDataUsageStatementScheduleFrequencyQuarterlyconst
V2ContractGetResponseDataUsageStatementScheduleFrequencyMonthlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyQuarterlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyAnnualV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyWeeklyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequency
"QUARTERLY"
V2ContractGetResponseDataUsageStatementScheduleFrequencyAnnualconst
V2ContractGetResponseDataUsageStatementScheduleFrequencyMonthlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyQuarterlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyAnnualV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyWeeklyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequency
"ANNUAL"
V2ContractGetResponseDataUsageStatementScheduleFrequencyWeeklyconst
V2ContractGetResponseDataUsageStatementScheduleFrequencyMonthlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyQuarterlyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyAnnualV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequencyWeeklyV2ContractGetResponseDataUsageStatementScheduleFrequencyV2ContractGetResponseDataUsageStatementScheduleFrequency
"WEEKLY"
ArchivedAtTime
optional
formatdate-time
Creditsarray
optional
Hide ParametersShow Parameters
IDstring
formatuuid
Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsTypeCreditconst
"CREDIT"
AccessScheduleScheduleItemsarrayCreditTypeCreditTypeDataScheduleDuration
optional

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

ApplicableContractIDsarray
optional
[]string
ApplicableProductIDsarray
optional
[]string
ApplicableProductTagsarray
optional
[]string
Balancefloat64
optional

The current balance of the credit or commit. This balance reflects the amount of credit or commit that the customer has access to use at this moment - thus, expired and upcoming credit or commit segments contribute 0 to the balance. The balance will match the sum of all ledger entries with the exception of the case where the sum of negative manual ledger entries exceeds the positive amount remaining on the credit or commit - in that case, the balance will be 0. All manual ledger entries associated with active credit or commit segments are included in the balance, including future-dated manual ledger entries.

Hide ParametersShow Parameters
IDstring
formatuuid
CustomFieldsmap
optional
map[string, string]
Descriptionstring
optional

Optional configuration for credit hierarchy access control

Hide ParametersShow Parameters
ChildAccessV2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
Ledgerarray
optional

A list of ordered events that impact the balance of a credit. For example, an invoice deduction or an expiration.

Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditSegmentStartLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditSegmentStartLedgerEntryTypeCreditSegmentStartconst
"CREDIT_SEGMENT_START"
V2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntryTypeCreditAutomatedInvoiceDeductionV2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntryTypeV2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntryTypeCreditAutomatedInvoiceDeductionconst
V2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntryTypeCreditAutomatedInvoiceDeductionV2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntryTypeV2ContractGetResponseDataCreditsLedgerCreditAutomatedInvoiceDeductionLedgerEntryType
"CREDIT_AUTOMATED_INVOICE_DEDUCTION"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCreditsLedgerCreditExpirationLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditExpirationLedgerEntryTypeCreditExpirationconst
"CREDIT_EXPIRATION"
V2ContractGetResponseDataCreditsLedgerCreditCanceledLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditCanceledLedgerEntryTypeCreditCanceledconst
"CREDIT_CANCELED"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCreditsLedgerCreditCreditedLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
InvoiceIDstring
formatuuid
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditCreditedLedgerEntryTypeCreditCreditedconst
"CREDIT_CREDITED"
ContractIDstring
optional
formatuuid
V2ContractGetResponseDataCreditsLedgerCreditManualLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
Reasonstring
TimestampTime
formatdate-time
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditManualLedgerEntryTypeCreditManualconst
"CREDIT_MANUAL"
V2ContractGetResponseDataCreditsLedgerCreditSeatBasedAdjustmentLedgerEntrystruct
Hide ParametersShow Parameters
Amountfloat64
SegmentIDstring
formatuuid
TimestampTime
formatdate-time
TypeV2ContractGetResponseDataCreditsLedgerCreditSeatBasedAdjustmentLedgerEntryTypeCreditSeatBasedAdjustmentV2ContractGetResponseDataCreditsLedgerCreditSeatBasedAdjustmentLedgerEntryTypeV2ContractGetResponseDataCreditsLedgerCreditSeatBasedAdjustmentLedgerEntryType
Hide ParametersShow Parameters
V2ContractGetResponseDataCreditsLedgerCreditSeatBasedAdjustmentLedgerEntryTypeCreditSeatBasedAdjustmentconst
"CREDIT_SEAT_BASED_ADJUSTMENT"
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.

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.

CustomFieldsmap
optional
map[string, string]

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

Hide ParametersShow Parameters
IDstring

ID of Customer's billing provider configuration.

formatuuid
BillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
Hide ParametersShow Parameters
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"aws_marketplace"
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"stripe"
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"netsuite"
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"custom"
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"azure_marketplace"
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"quickbooks_online"
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"workday"
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAwsMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderStripeV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderNetsuiteV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderCustomV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderAzureMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderQuickbooksOnlineV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderWorkdayV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderGcpMarketplaceV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationBillingProvider
"gcp_marketplace"
DeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodDirectToBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSqsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodTackleV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSnsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethod
Hide ParametersShow Parameters
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodDirectToBillingProviderconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodDirectToBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSqsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodTackleV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSnsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethod
"direct_to_billing_provider"
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSqsconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodDirectToBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSqsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodTackleV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSnsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethod
"aws_sqs"
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodTackleconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodDirectToBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSqsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodTackleV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSnsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethod
"tackle"
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSnsconst
V2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodDirectToBillingProviderV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSqsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodTackleV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodAwsSnsV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethodV2ContractGetResponseDataCustomerBillingProviderConfigurationDeliveryMethod
"aws_sns"
Discountsarray
optional
[]IDstringProductDiscountProductScheduleSchedulePointInTimeCustomFieldsmapNamestringNetsuiteSalesOrderIDstringDiscount

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

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.

EndingBeforeTime
optional
formatdate-time
HasMoreCommitsboolCreditsboolV2ContractGetResponseDataHasMore
optional

Indicates whether there are more items than the limit for this endpoint. Use the respective list endpoints to get the full lists.

Hide ParametersShow Parameters
Commitsbool

Whether there are more commits on this contract than the limit for this endpoint. Use the /contracts/customerCommits/list endpoint to get the full list of commits.

Creditsbool

Whether there are more credits on this contract than the limit for this endpoint. Use the /contracts/customerCredits/list endpoint to get the full list of credits.

HierarchyConfigurationV2ContractGetResponseDataHierarchyConfigurationParentHierarchyConfigurationstruct{…}V2ContractGetResponseDataHierarchyConfigurationChildHierarchyConfigurationstruct{…}V2ContractGetResponseDataHierarchyConfiguration
optional

Either a parent configuration with a list of children or a child configuration with a single parent.

Hide ParametersShow Parameters
V2ContractGetResponseDataHierarchyConfigurationParentHierarchyConfigurationstruct
Hide ParametersShow Parameters
Childrenarray

List of contracts that belong to this parent.

Hide ParametersShow Parameters
ContractIDstring
formatuuid
CustomerIDstring
formatuuid
V2ContractGetResponseDataHierarchyConfigurationChildHierarchyConfigurationstruct
Hide ParametersShow Parameters

The single parent contract/customer for this child.

Hide ParametersShow Parameters
ContractIDstring
formatuuid
CustomerIDstring
formatuuid
MultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritizationLowestMultiplierV2ContractGetResponseDataMultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritizationExplicitV2ContractGetResponseDataMultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritization
optional

Defaults to LOWEST_MULTIPLIER, which applies the greatest discount to list prices automatically. EXPLICIT prioritization requires specifying priorities for each multiplier; the one with the lowest priority value will be prioritized first.

Hide ParametersShow Parameters
V2ContractGetResponseDataMultiplierOverridePrioritizationLowestMultiplierconst
V2ContractGetResponseDataMultiplierOverridePrioritizationLowestMultiplierV2ContractGetResponseDataMultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritizationExplicitV2ContractGetResponseDataMultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritization
"LOWEST_MULTIPLIER"
V2ContractGetResponseDataMultiplierOverridePrioritizationExplicitconst
V2ContractGetResponseDataMultiplierOverridePrioritizationLowestMultiplierV2ContractGetResponseDataMultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritizationExplicitV2ContractGetResponseDataMultiplierOverridePrioritizationV2ContractGetResponseDataMultiplierOverridePrioritization
"EXPLICIT"
Namestring
optional
NetPaymentTermsDaysfloat64
optional
NetsuiteSalesOrderIDstring
optional

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

PrepaidBalanceThresholdConfigurationCommitV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationCommitIsEnabledboolPaymentGateConfigV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigRechargeToAmountfloat64ThresholdAmountfloat64CustomCreditTypeIDstringV2ContractGetResponseDataPrepaidBalanceThresholdConfiguration
optional
Hide ParametersShow Parameters
CommitProductIDstringApplicableProductIDsarrayApplicableProductTagsarrayDescriptionstringNamestringSpecifiersarrayV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationCommit
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
PaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType

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
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"NONE"
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"STRIPE"
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigPaymentGateType
"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
PaymentTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType

If left blank, will default to INVOICE

Hide ParametersShow Parameters
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"INVOICE"
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"PAYMENT_INTENT"
InvoiceMetadatamap
optional
map[string, string]

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

TaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
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
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"NONE"
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"STRIPE"
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"ANROK"
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedconst
V2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataPrepaidBalanceThresholdConfigurationPaymentGateConfigTaxType
"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
Priorityfloat64
optional

Priority of the contract.

ProfessionalServicesarray
optional
[]IDstringMaxAmountfloat64ProductIDstringQuantityfloat64UnitPricefloat64CustomFieldsmapDescriptionstringNetsuiteSalesOrderIDstringProService

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

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.

RateCardIDstring
optional
formatuuid
RecurringCommitsarray
optional
Hide ParametersShow Parameters
IDstring
formatuuid
AccessAmountCreditTypeIDstringUnitPricefloat64Quantityfloat64V2ContractGetResponseDataRecurringCommitsAccessAmount

The amount of commit to grant.

Hide ParametersShow Parameters
CreditTypeIDstring
formatuuid
UnitPricefloat64
Quantityfloat64
optional

The amount of time the created commits will be valid for

Hide ParametersShow Parameters
Valuefloat64
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCommitsCommitDurationUnitPeriodsconst
"PERIODS"
Priorityfloat64

Will be passed down to the individual commits

Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
RateTypeV2ContractGetResponseDataRecurringCommitsRateTypeCommitRateV2ContractGetResponseDataRecurringCommitsRateTypeV2ContractGetResponseDataRecurringCommitsRateTypeListRateV2ContractGetResponseDataRecurringCommitsRateTypeV2ContractGetResponseDataRecurringCommitsRateType

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

Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCommitsRateTypeCommitRateconst
V2ContractGetResponseDataRecurringCommitsRateTypeCommitRateV2ContractGetResponseDataRecurringCommitsRateTypeV2ContractGetResponseDataRecurringCommitsRateTypeListRateV2ContractGetResponseDataRecurringCommitsRateTypeV2ContractGetResponseDataRecurringCommitsRateType
"COMMIT_RATE"
V2ContractGetResponseDataRecurringCommitsRateTypeListRateconst
V2ContractGetResponseDataRecurringCommitsRateTypeCommitRateV2ContractGetResponseDataRecurringCommitsRateTypeV2ContractGetResponseDataRecurringCommitsRateTypeListRateV2ContractGetResponseDataRecurringCommitsRateTypeV2ContractGetResponseDataRecurringCommitsRateType
"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
ChildAccessV2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCommitsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"CONTRACT_IDS"
InvoiceAmountCreditTypeIDstringQuantityfloat64UnitPricefloat64V2ContractGetResponseDataRecurringCommitsInvoiceAmount
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

ProrationV2ContractGetResponseDataRecurringCommitsProrationNoneV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstAndLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProration
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
V2ContractGetResponseDataRecurringCommitsProrationNoneconst
V2ContractGetResponseDataRecurringCommitsProrationNoneV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstAndLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProration
"NONE"
V2ContractGetResponseDataRecurringCommitsProrationFirstconst
V2ContractGetResponseDataRecurringCommitsProrationNoneV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstAndLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProration
"FIRST"
V2ContractGetResponseDataRecurringCommitsProrationLastconst
V2ContractGetResponseDataRecurringCommitsProrationNoneV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstAndLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProration
"LAST"
V2ContractGetResponseDataRecurringCommitsProrationFirstAndLastconst
V2ContractGetResponseDataRecurringCommitsProrationNoneV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProrationFirstAndLastV2ContractGetResponseDataRecurringCommitsProrationV2ContractGetResponseDataRecurringCommitsProration
"FIRST_AND_LAST"
RecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequency
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
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyMonthlyconst
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequency
"MONTHLY"
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyQuarterlyconst
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequency
"QUARTERLY"
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyAnnualconst
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequency
"ANNUAL"
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyWeeklyconst
V2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequencyV2ContractGetResponseDataRecurringCommitsRecurrenceFrequency
"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
AllocationV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationIndividualV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationPooledV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocation
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationIndividualconst
V2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationIndividualV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationPooledV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocation
"INDIVIDUAL"
V2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationPooledconst
V2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationIndividualV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationPooledV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCommitsSubscriptionConfigAllocation
"POOLED"
Hide ParametersShow Parameters
IsProratedbool

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

SubscriptionIDstring
formatuuid
RecurringCreditsarray
optional
Hide ParametersShow Parameters
IDstring
formatuuid
AccessAmountCreditTypeIDstringUnitPricefloat64Quantityfloat64V2ContractGetResponseDataRecurringCreditsAccessAmount

The amount of commit to grant.

Hide ParametersShow Parameters
CreditTypeIDstring
formatuuid
UnitPricefloat64
Quantityfloat64
optional

The amount of time the created commits will be valid for

Hide ParametersShow Parameters
Valuefloat64
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCreditsCommitDurationUnitPeriodsconst
"PERIODS"
Priorityfloat64

Will be passed down to the individual commits

Hide ParametersShow Parameters
IDstring
formatuuid
Namestring
RateTypeV2ContractGetResponseDataRecurringCreditsRateTypeCommitRateV2ContractGetResponseDataRecurringCreditsRateTypeV2ContractGetResponseDataRecurringCreditsRateTypeListRateV2ContractGetResponseDataRecurringCreditsRateTypeV2ContractGetResponseDataRecurringCreditsRateType

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

Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCreditsRateTypeCommitRateconst
V2ContractGetResponseDataRecurringCreditsRateTypeCommitRateV2ContractGetResponseDataRecurringCreditsRateTypeV2ContractGetResponseDataRecurringCreditsRateTypeListRateV2ContractGetResponseDataRecurringCreditsRateTypeV2ContractGetResponseDataRecurringCreditsRateType
"COMMIT_RATE"
V2ContractGetResponseDataRecurringCreditsRateTypeListRateconst
V2ContractGetResponseDataRecurringCreditsRateTypeCommitRateV2ContractGetResponseDataRecurringCreditsRateTypeV2ContractGetResponseDataRecurringCreditsRateTypeListRateV2ContractGetResponseDataRecurringCreditsRateTypeV2ContractGetResponseDataRecurringCreditsRateType
"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
ChildAccessV2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct{…}V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct{…}V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct{…}V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccess
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllstruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessAllTypeAllconst
"ALL"
V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNonestruct
Hide ParametersShow Parameters
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessNoneTypeNoneconst
"NONE"
V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsstruct
Hide ParametersShow Parameters
ContractIDsarray
[]string
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCreditsHierarchyConfigurationChildAccessCommitHierarchyChildAccessContractIDsTypeContractIDsconst
"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

ProrationV2ContractGetResponseDataRecurringCreditsProrationNoneV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstAndLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProration
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
V2ContractGetResponseDataRecurringCreditsProrationNoneconst
V2ContractGetResponseDataRecurringCreditsProrationNoneV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstAndLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProration
"NONE"
V2ContractGetResponseDataRecurringCreditsProrationFirstconst
V2ContractGetResponseDataRecurringCreditsProrationNoneV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstAndLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProration
"FIRST"
V2ContractGetResponseDataRecurringCreditsProrationLastconst
V2ContractGetResponseDataRecurringCreditsProrationNoneV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstAndLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProration
"LAST"
V2ContractGetResponseDataRecurringCreditsProrationFirstAndLastconst
V2ContractGetResponseDataRecurringCreditsProrationNoneV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProrationFirstAndLastV2ContractGetResponseDataRecurringCreditsProrationV2ContractGetResponseDataRecurringCreditsProration
"FIRST_AND_LAST"
RecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequency
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
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyMonthlyconst
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequency
"MONTHLY"
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyQuarterlyconst
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequency
"QUARTERLY"
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyAnnualconst
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequency
"ANNUAL"
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyWeeklyconst
V2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyMonthlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyQuarterlyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyAnnualV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyWeeklyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequencyV2ContractGetResponseDataRecurringCreditsRecurrenceFrequency
"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
AllocationV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationIndividualV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationPooledV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocation
Hide ParametersShow Parameters
V2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationIndividualconst
V2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationIndividualV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationPooledV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocation
"INDIVIDUAL"
V2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationPooledconst
V2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationIndividualV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationPooledV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocationV2ContractGetResponseDataRecurringCreditsSubscriptionConfigAllocation
"POOLED"
Hide ParametersShow Parameters
IsProratedbool

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

SubscriptionIDstring
formatuuid
ResellerRoyaltiesarray
optional

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

Hide ParametersShow Parameters
ResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerType
Hide ParametersShow Parameters
V2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsconst
V2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerType
"AWS"
V2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsProServiceconst
V2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerType
"AWS_PRO_SERVICE"
V2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpconst
V2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerType
"GCP"
V2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpProServiceconst
V2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesResellerTypeV2ContractGetResponseDataResellerRoyaltiesResellerType
"GCP_PRO_SERVICE"
Hide ParametersShow Parameters
Fractionfloat64
NetsuiteResellerIDstring
ResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerType
Hide ParametersShow Parameters
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsconst
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerType
"AWS"
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsProServiceconst
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerType
"AWS_PRO_SERVICE"
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpconst
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerType
"GCP"
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpProServiceconst
V2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeAwsProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeGcpProServiceV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerTypeV2ContractGetResponseDataResellerRoyaltiesSegmentsResellerType
"GCP_PRO_SERVICE"
StartingAtTime
formatdate-time
ApplicableProductIDsarray
optional
[]string
ApplicableProductTagsarray
optional
[]string
AwsAccountNumberstring
optional
AwsOfferIDstring
optional
AwsPayerReferenceIDstring
optional
EndingBeforeTime
optional
formatdate-time
GcpAccountIDstring
optional
GcpOfferIDstring
optional
ResellerContractValuefloat64
optional
SalesforceOpportunityIDstring
optional

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

ScheduledChargesOnUsageInvoicesV2ContractGetResponseDataScheduledChargesOnUsageInvoicesAllV2ContractGetResponseDataScheduledChargesOnUsageInvoicesV2ContractGetResponseDataScheduledChargesOnUsageInvoices
optional

Determines which scheduled and commit charges to consolidate onto the Contract's usage invoice. The charge's timestamp must match the usage invoice's ending_before date for consolidation to occur. This field cannot be modified after a Contract has been created. If this field is omitted, charges will appear on a separate invoice from usage charges.

Hide ParametersShow Parameters
V2ContractGetResponseDataScheduledChargesOnUsageInvoicesAllconst
"ALL"
Hide ParametersShow Parameters
CommitProductIDstringDescriptionstringNamestringV2ContractGetResponseDataSpendThresholdConfigurationCommit
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
PaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateType

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
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"NONE"
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"STRIPE"
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeExternalV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigPaymentGateType
"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
PaymentTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType

If left blank, will default to INVOICE

Hide ParametersShow Parameters
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"INVOICE"
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeInvoiceV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypePaymentIntentV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigStripeConfigPaymentType
"PAYMENT_INTENT"
InvoiceMetadatamap
optional
map[string, string]

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

TaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxType
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
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxType
"NONE"
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxType
"STRIPE"
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxType
"ANROK"
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedconst
V2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeNoneV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeStripeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeAnrokV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypePrecalculatedV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxTypeV2ContractGetResponseDataSpendThresholdConfigurationPaymentGateConfigTaxType
"PRECALCULATED"
ThresholdAmountfloat64

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

Subscriptionsarray
optional

List of subscriptions on the contract.

Hide ParametersShow Parameters
CollectionScheduleV2ContractGetResponseDataSubscriptionsCollectionScheduleAdvanceV2ContractGetResponseDataSubscriptionsCollectionScheduleV2ContractGetResponseDataSubscriptionsCollectionScheduleArrearsV2ContractGetResponseDataSubscriptionsCollectionScheduleV2ContractGetResponseDataSubscriptionsCollectionSchedule
Hide ParametersShow Parameters
V2ContractGetResponseDataSubscriptionsCollectionScheduleAdvanceconst
V2ContractGetResponseDataSubscriptionsCollectionScheduleAdvanceV2ContractGetResponseDataSubscriptionsCollectionScheduleV2ContractGetResponseDataSubscriptionsCollectionScheduleArrearsV2ContractGetResponseDataSubscriptionsCollectionScheduleV2ContractGetResponseDataSubscriptionsCollectionSchedule
"ADVANCE"
V2ContractGetResponseDataSubscriptionsCollectionScheduleArrearsconst
V2ContractGetResponseDataSubscriptionsCollectionScheduleAdvanceV2ContractGetResponseDataSubscriptionsCollectionScheduleV2ContractGetResponseDataSubscriptionsCollectionScheduleArrearsV2ContractGetResponseDataSubscriptionsCollectionScheduleV2ContractGetResponseDataSubscriptionsCollectionSchedule
"ARREARS"
Hide ParametersShow Parameters
InvoiceBehaviorV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillImmediatelyV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorV2ContractGetResponseDataSubscriptionsProrationInvoiceBehavior
Hide ParametersShow Parameters
V2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillImmediatelyconst
V2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillImmediatelyV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorV2ContractGetResponseDataSubscriptionsProrationInvoiceBehavior
"BILL_IMMEDIATELY"
V2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateconst
V2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillImmediatelyV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorBillOnNextCollectionDateV2ContractGetResponseDataSubscriptionsProrationInvoiceBehaviorV2ContractGetResponseDataSubscriptionsProrationInvoiceBehavior
"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
BillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequency
Hide ParametersShow Parameters
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyMonthlyconst
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequency
"MONTHLY"
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyQuarterlyconst
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequency
"QUARTERLY"
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyAnnualconst
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequency
"ANNUAL"
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyWeeklyconst
V2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyMonthlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyQuarterlyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyAnnualV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyWeeklyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequencyV2ContractGetResponseDataSubscriptionsSubscriptionRateBillingFrequency
"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
TotalContractValuefloat64
optional
UniquenessKeystring
optional

Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.

minLength1
maxLength128
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"),
  )
  contract, err := client.V2.Contracts.Get(context.TODO(), metronome.V2ContractGetParams{
    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", contract.Data)
}
200 Example
{
  "data": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "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_contract_ids": [
          "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        ],
        "applicable_product_ids": [
          "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        ],
        "applicable_product_tags": [
          "string"
        ],
        "archived_at": "2019-12-27T18:11:19.117Z",
        "balance": 0,
        "contract": {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        },
        "custom_fields": {
          "foo": "string"
        },
        "description": "description",
        "hierarchy_configuration": {
          "child_access": {
            "type": "ALL"
          }
        },
        "invoice_contract": {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        },
        "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"
            }
          ]
        },
        "ledger": [
          {
            "amount": 0,
            "segment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "timestamp": "2019-12-27T18:11:19.117Z",
            "type": "PREPAID_COMMIT_SEGMENT_START"
          }
        ],
        "name": "name",
        "netsuite_sales_order_id": "netsuite_sales_order_id",
        "priority": 0,
        "rate_type": "COMMIT_RATE",
        "rolled_over_from": {
          "commit_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        },
        "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"
            ]
          }
        ]
      }
    ],
    "created_at": "2019-12-27T18:11:19.117Z",
    "created_by": "created_by",
    "customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "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"
      }
    ],
    "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"
            }
          ]
        },
        "archived_at": "2019-12-27T18:11:19.117Z",
        "custom_fields": {
          "foo": "string"
        },
        "name": "x",
        "netsuite_sales_order_id": "netsuite_sales_order_id"
      }
    ],
    "starting_at": "2019-12-27T18:11:19.117Z",
    "transitions": [
      {
        "from_contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "to_contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "type": "SUPERSEDE"
      }
    ],
    "usage_filter": [
      {
        "group_key": "group_key",
        "group_values": [
          "string"
        ],
        "starting_at": "2019-12-27T18:11:19.117Z",
        "ending_before": "2019-12-27T18:11:19.117Z"
      }
    ],
    "usage_statement_schedule": {
      "billing_anchor_date": "2019-12-27T18:11:19.117Z",
      "frequency": "MONTHLY"
    },
    "archived_at": "2019-12-27T18:11:19.117Z",
    "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_contract_ids": [
          "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        ],
        "applicable_product_ids": [
          "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        ],
        "applicable_product_tags": [
          "string"
        ],
        "balance": 0,
        "contract": {
          "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        },
        "custom_fields": {
          "foo": "string"
        },
        "description": "description",
        "hierarchy_configuration": {
          "child_access": {
            "type": "ALL"
          }
        },
        "ledger": [
          {
            "amount": 0,
            "segment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "timestamp": "2019-12-27T18:11:19.117Z",
            "type": "CREDIT_SEGMENT_START"
          }
        ],
        "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"
            ]
          }
        ]
      }
    ],
    "custom_fields": {
      "foo": "string"
    },
    "customer_billing_provider_configuration": {
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "billing_provider": "aws_marketplace",
      "delivery_method": "direct_to_billing_provider"
    },
    "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"
      }
    ],
    "ending_before": "2019-12-27T18:11:19.117Z",
    "has_more": {
      "commits": true,
      "credits": true
    },
    "hierarchy_configuration": {
      "children": [
        {
          "contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
          "customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
        }
      ]
    },
    "multiplier_override_prioritization": "LOWEST_MULTIPLIER",
    "name": "name",
    "net_payment_terms_days": 0,
    "netsuite_sales_order_id": "netsuite_sales_order_id",
    "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"
    },
    "priority": 0,
    "professional_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"
      }
    ],
    "rate_card_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "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"
        }
      }
    ],
    "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"
        }
      }
    ],
    "reseller_royalties": [
      {
        "reseller_type": "AWS",
        "segments": [
          {
            "fraction": 0,
            "netsuite_reseller_id": "netsuite_reseller_id",
            "reseller_type": "AWS",
            "starting_at": "2019-12-27T18:11:19.117Z",
            "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",
            "gcp_account_id": "gcp_account_id",
            "gcp_offer_id": "gcp_offer_id",
            "reseller_contract_value": 0
          }
        ]
      }
    ],
    "salesforce_opportunity_id": "salesforce_opportunity_id",
    "scheduled_charges_on_usage_invoices": "ALL",
    "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
    },
    "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"
      }
    ],
    "total_contract_value": 0,
    "uniqueness_key": "x"
  }
}