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

Shared

Shared

Shared

Base Usage Filter
BaseUsageFilter
ShowShow
group_keystring
group_valuesarray
Array<string>
starting_atstring
optional
formatdate-time
Commit
Commit
ShowShow
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
typeunion
"PREPAID" | "POSTPAID"
Hide ParametersShow Parameters
"PREPAID"
"POSTPAID"
access_scheduleschedule_itemsarraycredit_typeCreditTypeDataScheduleDuration
optional

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

amountnumber
optional

(DEPRECATED) Use access_schedule + invoice_schedule instead.

applicable_contract_idsarray
optional
Array<string>
applicable_product_idsarray
optional
Array<string>
applicable_product_tagsarray
optional
Array<string>
archived_atstring
optional

RFC 3339 timestamp indicating when the commit was archived. If not provided, the commit is not archived.

formatdate-time
balancenumber
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.

contractidstringContract
optional
Hide ParametersShow Parameters
idstring
formatuuid
custom_fieldsRecord<string, string>
optional
descriptionstring
optional
hierarchy_configurationchild_accessunionHierarchyConfiguration
optional

Optional configuration for commit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
Hide ParametersShow Parameters
CommitHierarchyChildAccessAll
Hide ParametersShow Parameters
type"ALL"
Hide ParametersShow Parameters
"ALL"
CommitHierarchyChildAccessNone
Hide ParametersShow Parameters
type"NONE"
Hide ParametersShow Parameters
"NONE"
CommitHierarchyChildAccessContractIDs
Hide ParametersShow Parameters
contract_idsarray
Array<string>
type"CONTRACT_IDS"
Hide ParametersShow Parameters
"CONTRACT_IDS"
invoice_contractidstringInvoiceContract
optional

The contract that this commit will be billed on.

Hide ParametersShow Parameters
idstring
formatuuid
invoice_schedulecredit_typeCreditTypeDatado_not_invoicebooleanschedule_itemsarraySchedulePointInTime
optional

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

ledgerarray
optional
Array<amountnumbersegment_idstringtimestampstringtype"PREPAID_COMMIT_SEGMENT_START"PrepaidCommitSegmentStartLedgerEntry | amountnumberinvoice_idstringsegment_idstringtimestampstringtype"PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"contract_idstringPrepaidCommitAutomatedInvoiceDeductionLedgerEntry | amountnumbernew_contract_idstringsegment_idstringtimestampstringtype"PREPAID_COMMIT_ROLLOVER"PrepaidCommitRolloverLedgerEntry | 11 more>

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

Hide ParametersShow Parameters
PrepaidCommitSegmentStartLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_SEGMENT_START"
Hide ParametersShow Parameters
"PREPAID_COMMIT_SEGMENT_START"
PrepaidCommitAutomatedInvoiceDeductionLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
Hide ParametersShow Parameters
"PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
contract_idstring
optional
formatuuid
PrepaidCommitRolloverLedgerEntry
Hide ParametersShow Parameters
amountnumber
new_contract_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_ROLLOVER"
Hide ParametersShow Parameters
"PREPAID_COMMIT_ROLLOVER"
PrepaidCommitExpirationLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_EXPIRATION"
Hide ParametersShow Parameters
"PREPAID_COMMIT_EXPIRATION"
PrepaidCommitCanceledLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_CANCELED"
Hide ParametersShow Parameters
"PREPAID_COMMIT_CANCELED"
contract_idstring
optional
formatuuid
PrepaidCommitCreditedLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_CREDITED"
Hide ParametersShow Parameters
"PREPAID_COMMIT_CREDITED"
contract_idstring
optional
formatuuid
PrepaidCommitSeatBasedAdjustmentLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT"
Hide ParametersShow Parameters
"PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT"
PostpaidCommitInitialBalanceLedgerEntry
Hide ParametersShow Parameters
amountnumber
timestampstring
formatdate-time
type"POSTPAID_COMMIT_INITIAL_BALANCE"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_INITIAL_BALANCE"
PostpaidCommitAutomatedInvoiceDeductionLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
contract_idstring
optional
formatuuid
PostpaidCommitRolloverLedgerEntry
Hide ParametersShow Parameters
amountnumber
new_contract_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"POSTPAID_COMMIT_ROLLOVER"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_ROLLOVER"
PostpaidCommitTrueupLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
timestampstring
formatdate-time
type"POSTPAID_COMMIT_TRUEUP"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_TRUEUP"
contract_idstring
optional
formatuuid
PrepaidCommitManualLedgerEntry
Hide ParametersShow Parameters
amountnumber
reasonstring
timestampstring
formatdate-time
type"PREPAID_COMMIT_MANUAL"
Hide ParametersShow Parameters
"PREPAID_COMMIT_MANUAL"
PostpaidCommitManualLedgerEntry
Hide ParametersShow Parameters
amountnumber
reasonstring
timestampstring
formatdate-time
type"POSTPAID_COMMIT_MANUAL"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_MANUAL"
PostpaidCommitExpirationLedgerEntry
Hide ParametersShow Parameters
amountnumber
timestampstring
formatdate-time
type"POSTPAID_COMMIT_EXPIRATION"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_EXPIRATION"
namestring
optional
netsuite_sales_order_idstring
optional

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

prioritynumber
optional

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

rate_typeunion
optional
"COMMIT_RATE" | "LIST_RATE"
Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
rolled_over_fromcommit_idstringcontract_idstringRolledOverFrom
optional
Hide ParametersShow Parameters
commit_idstring
formatuuid
contract_idstring
formatuuid
rollover_fractionnumber
optional
salesforce_opportunity_idstring
optional

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

specifiersarray
optional
Array<Specifier>

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
presentation_group_valuesRecord<string, string>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional

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

formatuuid
product_tagsarray
optional
Array<string>

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

uniqueness_keystring
optional

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

minLength1
maxLength128
Contract Without Amendments
ContractWithoutAmendments
ShowShow
commitsarray
Array<idstringproductProducttypeunionaccess_scheduleScheduleDurationamountnumberapplicable_contract_idsarrayapplicable_product_idsarrayapplicable_product_tagsarrayarchived_atstringbalancenumbercontractContractcustom_fieldsRecord<string, string>descriptionstringhierarchy_configurationHierarchyConfigurationinvoice_contractInvoiceContractinvoice_scheduleSchedulePointInTimeledgerarraynamestringnetsuite_sales_order_idstringprioritynumberrate_typeunionrolled_over_fromRolledOverFromrollover_fractionnumbersalesforce_opportunity_idstringspecifiersarrayuniqueness_keystringCommit>
Hide ParametersShow Parameters
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
typeunion
"PREPAID" | "POSTPAID"
Hide ParametersShow Parameters
"PREPAID"
"POSTPAID"
access_scheduleschedule_itemsarraycredit_typeCreditTypeDataScheduleDuration
optional

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

amountnumber
optional

(DEPRECATED) Use access_schedule + invoice_schedule instead.

applicable_contract_idsarray
optional
Array<string>
applicable_product_idsarray
optional
Array<string>
applicable_product_tagsarray
optional
Array<string>
archived_atstring
optional

RFC 3339 timestamp indicating when the commit was archived. If not provided, the commit is not archived.

formatdate-time
balancenumber
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.

contractidstringContract
optional
Hide ParametersShow Parameters
idstring
formatuuid
custom_fieldsRecord<string, string>
optional
descriptionstring
optional
hierarchy_configurationchild_accessunionHierarchyConfiguration
optional

Optional configuration for commit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
Hide ParametersShow Parameters
CommitHierarchyChildAccessAll
Hide ParametersShow Parameters
type"ALL"
Hide ParametersShow Parameters
"ALL"
CommitHierarchyChildAccessNone
Hide ParametersShow Parameters
type"NONE"
Hide ParametersShow Parameters
"NONE"
CommitHierarchyChildAccessContractIDs
Hide ParametersShow Parameters
contract_idsarray
Array<string>
type"CONTRACT_IDS"
Hide ParametersShow Parameters
"CONTRACT_IDS"
invoice_contractidstringInvoiceContract
optional

The contract that this commit will be billed on.

Hide ParametersShow Parameters
idstring
formatuuid
invoice_schedulecredit_typeCreditTypeDatado_not_invoicebooleanschedule_itemsarraySchedulePointInTime
optional

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

ledgerarray
optional
Array<amountnumbersegment_idstringtimestampstringtype"PREPAID_COMMIT_SEGMENT_START"PrepaidCommitSegmentStartLedgerEntry | amountnumberinvoice_idstringsegment_idstringtimestampstringtype"PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"contract_idstringPrepaidCommitAutomatedInvoiceDeductionLedgerEntry | amountnumbernew_contract_idstringsegment_idstringtimestampstringtype"PREPAID_COMMIT_ROLLOVER"PrepaidCommitRolloverLedgerEntry | 11 more>

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

Hide ParametersShow Parameters
PrepaidCommitSegmentStartLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_SEGMENT_START"
Hide ParametersShow Parameters
"PREPAID_COMMIT_SEGMENT_START"
PrepaidCommitAutomatedInvoiceDeductionLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
Hide ParametersShow Parameters
"PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
contract_idstring
optional
formatuuid
PrepaidCommitRolloverLedgerEntry
Hide ParametersShow Parameters
amountnumber
new_contract_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_ROLLOVER"
Hide ParametersShow Parameters
"PREPAID_COMMIT_ROLLOVER"
PrepaidCommitExpirationLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_EXPIRATION"
Hide ParametersShow Parameters
"PREPAID_COMMIT_EXPIRATION"
PrepaidCommitCanceledLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_CANCELED"
Hide ParametersShow Parameters
"PREPAID_COMMIT_CANCELED"
contract_idstring
optional
formatuuid
PrepaidCommitCreditedLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_CREDITED"
Hide ParametersShow Parameters
"PREPAID_COMMIT_CREDITED"
contract_idstring
optional
formatuuid
PrepaidCommitSeatBasedAdjustmentLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT"
Hide ParametersShow Parameters
"PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT"
PostpaidCommitInitialBalanceLedgerEntry
Hide ParametersShow Parameters
amountnumber
timestampstring
formatdate-time
type"POSTPAID_COMMIT_INITIAL_BALANCE"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_INITIAL_BALANCE"
PostpaidCommitAutomatedInvoiceDeductionLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
contract_idstring
optional
formatuuid
PostpaidCommitRolloverLedgerEntry
Hide ParametersShow Parameters
amountnumber
new_contract_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"POSTPAID_COMMIT_ROLLOVER"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_ROLLOVER"
PostpaidCommitTrueupLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
timestampstring
formatdate-time
type"POSTPAID_COMMIT_TRUEUP"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_TRUEUP"
contract_idstring
optional
formatuuid
PrepaidCommitManualLedgerEntry
Hide ParametersShow Parameters
amountnumber
reasonstring
timestampstring
formatdate-time
type"PREPAID_COMMIT_MANUAL"
Hide ParametersShow Parameters
"PREPAID_COMMIT_MANUAL"
PostpaidCommitManualLedgerEntry
Hide ParametersShow Parameters
amountnumber
reasonstring
timestampstring
formatdate-time
type"POSTPAID_COMMIT_MANUAL"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_MANUAL"
PostpaidCommitExpirationLedgerEntry
Hide ParametersShow Parameters
amountnumber
timestampstring
formatdate-time
type"POSTPAID_COMMIT_EXPIRATION"
Hide ParametersShow Parameters
"POSTPAID_COMMIT_EXPIRATION"
namestring
optional
netsuite_sales_order_idstring
optional

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

prioritynumber
optional

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

rate_typeunion
optional
"COMMIT_RATE" | "LIST_RATE"
Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
rolled_over_fromcommit_idstringcontract_idstringRolledOverFrom
optional
Hide ParametersShow Parameters
commit_idstring
formatuuid
contract_idstring
formatuuid
rollover_fractionnumber
optional
salesforce_opportunity_idstring
optional

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

specifiersarray
optional
Array<Specifier>

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
presentation_group_valuesRecord<string, string>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional

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

formatuuid
product_tagsarray
optional
Array<string>

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

uniqueness_keystring
optional

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

minLength1
maxLength128
created_atstring
formatdate-time
created_bystring
overridesarray
Array<idstringstarting_atstringapplicable_product_tagsarraycredit_typeCreditTypeDataending_beforestringentitledbooleanis_commit_specificbooleanis_proratedbooleanmultipliernumberoverride_specifiersarrayoverride_tiersarrayoverwrite_rateOverwriteRatepricenumberprioritynumberproductProductquantitynumberrate_typeuniontargetuniontiersarraytypeunionvalueRecord<string, unknown>Override>
Hide ParametersShow Parameters
idstring
formatuuid
starting_atstring
formatdate-time
applicable_product_tagsarray
optional
Array<string>
credit_typeidstringnamestringCreditTypeData
optional
ending_beforestring
optional
formatdate-time
entitledboolean
optional
is_commit_specificboolean
optional
is_proratedboolean
optional

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

multipliernumber
optional
override_specifiersarray
optional
Hide ParametersShow Parameters
billing_frequencyunion
optional
"MONTHLY" | "QUARTERLY" | "ANNUAL" | "WEEKLY"
Hide ParametersShow Parameters
"MONTHLY"
"QUARTERLY"
"ANNUAL"
"WEEKLY"
commit_idsarray
optional
Array<string>
presentation_group_valuesRecord<string, string | null>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional
formatuuid
product_tagsarray
optional
Array<string>
recurring_commit_idsarray
optional
Array<string>
recurring_credit_idsarray
optional
Array<string>
override_tiersarray
optional
Hide ParametersShow Parameters
multipliernumber
sizenumber
optional
overwrite_raterate_typeunioncredit_typeCreditTypeDatacustom_rateRecord<string, unknown>is_proratedbooleanpricenumberquantitynumbertiersarrayOverwriteRate
optional
Hide ParametersShow Parameters
rate_typeunion
"FLAT" | "PERCENTAGE" | "SUBSCRIPTION" | 2 more
Hide ParametersShow Parameters
"FLAT"
"PERCENTAGE"
"SUBSCRIPTION"
"TIERED"
"CUSTOM"
credit_typeidstringnamestringCreditTypeData
optional
custom_rateRecord<string, unknown>
optional

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

is_proratedboolean
optional

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

pricenumber
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.

quantitynumber
optional

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

tiersarray
optional
Array<pricenumbersizenumberTier>

Only set for TIERED rate_type.

Hide ParametersShow Parameters
pricenumber
sizenumber
optional
pricenumber
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.

prioritynumber
optional
productidstringnamestringProduct
optional
Hide ParametersShow Parameters
idstring
formatuuid
namestring
quantitynumber
optional

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

rate_typeunion
optional
"FLAT" | "PERCENTAGE" | "SUBSCRIPTION" | 2 more
Hide ParametersShow Parameters
"FLAT"
"PERCENTAGE"
"SUBSCRIPTION"
"TIERED"
"CUSTOM"
targetunion
optional
"COMMIT_RATE" | "LIST_RATE"
Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
tiersarray
optional
Array<pricenumbersizenumberTier>

Only set for TIERED rate_type.

Hide ParametersShow Parameters
pricenumber
sizenumber
optional
typeunion
optional
"OVERWRITE" | "MULTIPLIER" | "TIERED"
Hide ParametersShow Parameters
"OVERWRITE"
"MULTIPLIER"
"TIERED"
valueRecord<string, unknown>
optional

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

scheduled_chargesarray
Array<idstringproductProductscheduleSchedulePointInTimearchived_atstringcustom_fieldsRecord<string, string>namestringnetsuite_sales_order_idstringScheduledCharge>
Hide ParametersShow Parameters
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
schedulecredit_typeCreditTypeDatado_not_invoicebooleanschedule_itemsarraySchedulePointInTime
archived_atstring
optional
formatdate-time
custom_fieldsRecord<string, string>
optional
namestring
optional

displayed on invoices

minLength1
netsuite_sales_order_idstring
optional

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

starting_atstring
formatdate-time
transitionsarray
Array<Transition>
Hide ParametersShow Parameters
from_contract_idstring
formatuuid
to_contract_idstring
formatuuid
typeunion
"SUPERSEDE" | "RENEWAL"
Hide ParametersShow Parameters
"SUPERSEDE"
"RENEWAL"
usage_statement_schedulebilling_anchor_datestringfrequencyunionUsageStatementSchedule
Hide ParametersShow Parameters
billing_anchor_datestring

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

formatdate-time
frequencyunion
"MONTHLY" | "QUARTERLY" | "ANNUAL" | "WEEKLY"
Hide ParametersShow Parameters
"MONTHLY"
"QUARTERLY"
"ANNUAL"
"WEEKLY"
creditsarray
optional
Array<idstringproductProducttype"CREDIT"access_scheduleScheduleDurationapplicable_contract_idsarrayapplicable_product_idsarrayapplicable_product_tagsarraybalancenumbercontractContractcustom_fieldsRecord<string, string>descriptionstringhierarchy_configurationHierarchyConfigurationledgerarraynamestringnetsuite_sales_order_idstringprioritynumberrate_typeunionsalesforce_opportunity_idstringspecifiersarrayuniqueness_keystringCredit>
Hide ParametersShow Parameters
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
type"CREDIT"
Hide ParametersShow Parameters
"CREDIT"
access_scheduleschedule_itemsarraycredit_typeCreditTypeDataScheduleDuration
optional

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

applicable_contract_idsarray
optional
Array<string>
applicable_product_idsarray
optional
Array<string>
applicable_product_tagsarray
optional
Array<string>
balancenumber
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.

contractidstringContract
optional
Hide ParametersShow Parameters
idstring
formatuuid
custom_fieldsRecord<string, string>
optional
descriptionstring
optional
hierarchy_configurationchild_accessunionHierarchyConfiguration
optional

Optional configuration for credit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
Hide ParametersShow Parameters
CommitHierarchyChildAccessAll
Hide ParametersShow Parameters
type"ALL"
Hide ParametersShow Parameters
"ALL"
CommitHierarchyChildAccessNone
Hide ParametersShow Parameters
type"NONE"
Hide ParametersShow Parameters
"NONE"
CommitHierarchyChildAccessContractIDs
Hide ParametersShow Parameters
contract_idsarray
Array<string>
type"CONTRACT_IDS"
Hide ParametersShow Parameters
"CONTRACT_IDS"
ledgerarray
optional
Array<amountnumbersegment_idstringtimestampstringtype"CREDIT_SEGMENT_START"CreditSegmentStartLedgerEntry | amountnumberinvoice_idstringsegment_idstringtimestampstringtype"CREDIT_AUTOMATED_INVOICE_DEDUCTION"contract_idstringCreditAutomatedInvoiceDeductionLedgerEntry | amountnumbersegment_idstringtimestampstringtype"CREDIT_EXPIRATION"CreditExpirationLedgerEntry | 4 more>

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

Hide ParametersShow Parameters
CreditSegmentStartLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_SEGMENT_START"
Hide ParametersShow Parameters
"CREDIT_SEGMENT_START"
CreditAutomatedInvoiceDeductionLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_AUTOMATED_INVOICE_DEDUCTION"
Hide ParametersShow Parameters
"CREDIT_AUTOMATED_INVOICE_DEDUCTION"
contract_idstring
optional
formatuuid
CreditExpirationLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_EXPIRATION"
Hide ParametersShow Parameters
"CREDIT_EXPIRATION"
CreditCanceledLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_CANCELED"
Hide ParametersShow Parameters
"CREDIT_CANCELED"
contract_idstring
optional
formatuuid
CreditCreditedLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_CREDITED"
Hide ParametersShow Parameters
"CREDIT_CREDITED"
contract_idstring
optional
formatuuid
CreditManualLedgerEntry
Hide ParametersShow Parameters
amountnumber
reasonstring
timestampstring
formatdate-time
type"CREDIT_MANUAL"
Hide ParametersShow Parameters
"CREDIT_MANUAL"
CreditSeatBasedAdjustmentLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_SEAT_BASED_ADJUSTMENT"
Hide ParametersShow Parameters
"CREDIT_SEAT_BASED_ADJUSTMENT"
namestring
optional
netsuite_sales_order_idstring
optional

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

prioritynumber
optional

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

rate_typeunion
optional
"COMMIT_RATE" | "LIST_RATE"
Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
salesforce_opportunity_idstring
optional

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

specifiersarray
optional
Array<Specifier>

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
presentation_group_valuesRecord<string, string>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional

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

formatuuid
product_tagsarray
optional
Array<string>

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

uniqueness_keystring
optional

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

minLength1
maxLength128
discountsarray
optional
Array<idstringproductProductscheduleSchedulePointInTimecustom_fieldsRecord<string, string>namestringnetsuite_sales_order_idstringDiscount>

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

Hide ParametersShow Parameters
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
schedulecredit_typeCreditTypeDatado_not_invoicebooleanschedule_itemsarraySchedulePointInTime
custom_fieldsRecord<string, string>
optional
namestring
optional
minLength1
netsuite_sales_order_idstring
optional

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

ending_beforestring
optional
formatdate-time
hierarchy_configurationunion
optional

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

Hide ParametersShow Parameters
ParentHierarchyConfiguration
Hide ParametersShow Parameters
childrenarray
Array<Child>

List of contracts that belong to this parent.

Hide ParametersShow Parameters
contract_idstring
formatuuid
customer_idstring
formatuuid
ChildHierarchyConfiguration
Hide ParametersShow Parameters
parentcontract_idstringcustomer_idstringParent

The single parent contract/customer for this child.

Hide ParametersShow Parameters
contract_idstring
formatuuid
customer_idstring
formatuuid
namestring
optional
net_payment_terms_daysnumber
optional
netsuite_sales_order_idstring
optional

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

prepaid_balance_threshold_configurationcommitCommitis_enabledbooleanpayment_gate_configPaymentGateConfigrecharge_to_amountnumberthreshold_amountnumbercustom_credit_type_idstringPrepaidBalanceThresholdConfiguration
optional
Hide ParametersShow Parameters
commitproduct_idstringapplicable_product_idsarrayapplicable_product_tagsarraydescriptionstringnamestringspecifiersarrayCommit
Hide ParametersShow Parameters
product_idstring

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

applicable_product_idsarray
optional
Array<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.

applicable_product_tagsarray
optional
Array<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
Array<Specifier>

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.

Hide ParametersShow Parameters
presentation_group_valuesRecord<string, string>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional

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

formatuuid
product_tagsarray
optional
Array<string>

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

is_enabledboolean

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.

payment_gate_configpayment_gate_typeunionprecalculated_tax_configPrecalculatedTaxConfigstripe_configStripeConfigtax_typeunionPaymentGateConfig
Hide ParametersShow Parameters
payment_gate_typeunion
"NONE" | "STRIPE" | "EXTERNAL"

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
"NONE"
"STRIPE"
"EXTERNAL"
precalculated_tax_configtax_amountnumbertax_namestringPrecalculatedTaxConfig
optional

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
tax_amountnumber

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

tax_namestring
optional

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

stripe_configpayment_typeunioninvoice_metadataRecord<string, string>StripeConfig
optional

Only applicable if using STRIPE as your payment gate type.

Hide ParametersShow Parameters
payment_typeunion
"INVOICE" | "PAYMENT_INTENT"

If left blank, will default to INVOICE

Hide ParametersShow Parameters
"INVOICE"
"PAYMENT_INTENT"
invoice_metadataRecord<string, string>
optional

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

tax_typeunion
optional
"NONE" | "STRIPE" | "ANROK" | "PRECALCULATED"

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
"NONE"
"STRIPE"
"ANROK"
"PRECALCULATED"
recharge_to_amountnumber

Specify the amount the balance should be recharged to.

threshold_amountnumber

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

custom_credit_type_idstring
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
professional_servicesarray
optional
Array<idstringmax_amountnumberproduct_idstringquantitynumberunit_pricenumbercustom_fieldsRecord<string, string>descriptionstringnetsuite_sales_order_idstringProService>

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

Hide ParametersShow Parameters
idstring
formatuuid
max_amountnumber

Maximum amount for the term.

product_idstring
formatuuid
quantitynumber

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

unit_pricenumber

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

custom_fieldsRecord<string, string>
optional
descriptionstring
optional
netsuite_sales_order_idstring
optional

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

rate_card_idstring
optional
formatuuid
recurring_commitsarray
optional
Hide ParametersShow Parameters
idstring
formatuuid
access_amountcredit_type_idstringunit_pricenumberquantitynumberAccessAmount

The amount of commit to grant.

Hide ParametersShow Parameters
credit_type_idstring
formatuuid
unit_pricenumber
quantitynumber
optional
commit_durationvaluenumberunit"PERIODS"CommitDuration

The amount of time the created commits will be valid for

Hide ParametersShow Parameters
valuenumber
unit"PERIODS"
optional
Hide ParametersShow Parameters
"PERIODS"
prioritynumber

Will be passed down to the individual commits

productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
rate_typeunion
"COMMIT_RATE" | "LIST_RATE"

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

Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
starting_atstring

Determines the start time for the first commit

formatdate-time
applicable_product_idsarray
optional
Array<string>

Will be passed down to the individual commits

applicable_product_tagsarray
optional
Array<string>

Will be passed down to the individual commits

contractidstringContract
optional
Hide ParametersShow Parameters
idstring
formatuuid
descriptionstring
optional

Will be passed down to the individual commits

ending_beforestring
optional

Determines when the contract will stop creating recurring commits. Optional

formatdate-time
hierarchy_configurationchild_accessunionHierarchyConfiguration
optional

Optional configuration for recurring commit/credit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
Hide ParametersShow Parameters
CommitHierarchyChildAccessAll
Hide ParametersShow Parameters
type"ALL"
Hide ParametersShow Parameters
"ALL"
CommitHierarchyChildAccessNone
Hide ParametersShow Parameters
type"NONE"
Hide ParametersShow Parameters
"NONE"
CommitHierarchyChildAccessContractIDs
Hide ParametersShow Parameters
contract_idsarray
Array<string>
type"CONTRACT_IDS"
Hide ParametersShow Parameters
"CONTRACT_IDS"
invoice_amountcredit_type_idstringquantitynumberunit_pricenumberInvoiceAmount
optional

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

Hide ParametersShow Parameters
credit_type_idstring
formatuuid
quantitynumber
unit_pricenumber
namestring
optional

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

netsuite_sales_order_idstring
optional

Will be passed down to the individual commits

prorationunion
optional
"NONE" | "FIRST" | "LAST" | "FIRST_AND_LAST"

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
"NONE"
"FIRST"
"LAST"
"FIRST_AND_LAST"
recurrence_frequencyunion
optional
"MONTHLY" | "QUARTERLY" | "ANNUAL" | "WEEKLY"

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
"MONTHLY"
"QUARTERLY"
"ANNUAL"
"WEEKLY"
rollover_fractionnumber
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
Array<Specifier>

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
presentation_group_valuesRecord<string, string>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional

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

formatuuid
product_tagsarray
optional
Array<string>

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

subscription_configallocationunionapply_seat_increase_configApplySeatIncreaseConfigsubscription_idstringSubscriptionConfig
optional

Attach a subscription to the recurring commit/credit.

Hide ParametersShow Parameters
allocationunion
"INDIVIDUAL" | "POOLED"
Hide ParametersShow Parameters
"INDIVIDUAL"
"POOLED"
apply_seat_increase_configis_proratedbooleanApplySeatIncreaseConfig
Hide ParametersShow Parameters
is_proratedboolean

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

subscription_idstring
formatuuid
recurring_creditsarray
optional
Hide ParametersShow Parameters
idstring
formatuuid
access_amountcredit_type_idstringunit_pricenumberquantitynumberAccessAmount

The amount of commit to grant.

Hide ParametersShow Parameters
credit_type_idstring
formatuuid
unit_pricenumber
quantitynumber
optional
commit_durationvaluenumberunit"PERIODS"CommitDuration

The amount of time the created commits will be valid for

Hide ParametersShow Parameters
valuenumber
unit"PERIODS"
optional
Hide ParametersShow Parameters
"PERIODS"
prioritynumber

Will be passed down to the individual commits

productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
rate_typeunion
"COMMIT_RATE" | "LIST_RATE"

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

Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
starting_atstring

Determines the start time for the first commit

formatdate-time
applicable_product_idsarray
optional
Array<string>

Will be passed down to the individual commits

applicable_product_tagsarray
optional
Array<string>

Will be passed down to the individual commits

contractidstringContract
optional
Hide ParametersShow Parameters
idstring
formatuuid
descriptionstring
optional

Will be passed down to the individual commits

ending_beforestring
optional

Determines when the contract will stop creating recurring commits. Optional

formatdate-time
hierarchy_configurationchild_accessunionHierarchyConfiguration
optional

Optional configuration for recurring commit/credit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
Hide ParametersShow Parameters
CommitHierarchyChildAccessAll
Hide ParametersShow Parameters
type"ALL"
Hide ParametersShow Parameters
"ALL"
CommitHierarchyChildAccessNone
Hide ParametersShow Parameters
type"NONE"
Hide ParametersShow Parameters
"NONE"
CommitHierarchyChildAccessContractIDs
Hide ParametersShow Parameters
contract_idsarray
Array<string>
type"CONTRACT_IDS"
Hide ParametersShow Parameters
"CONTRACT_IDS"
namestring
optional

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

netsuite_sales_order_idstring
optional

Will be passed down to the individual commits

prorationunion
optional
"NONE" | "FIRST" | "LAST" | "FIRST_AND_LAST"

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
"NONE"
"FIRST"
"LAST"
"FIRST_AND_LAST"
recurrence_frequencyunion
optional
"MONTHLY" | "QUARTERLY" | "ANNUAL" | "WEEKLY"

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
"MONTHLY"
"QUARTERLY"
"ANNUAL"
"WEEKLY"
rollover_fractionnumber
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
Array<Specifier>

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
presentation_group_valuesRecord<string, string>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional

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

formatuuid
product_tagsarray
optional
Array<string>

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

subscription_configallocationunionapply_seat_increase_configApplySeatIncreaseConfigsubscription_idstringSubscriptionConfig
optional

Attach a subscription to the recurring commit/credit.

Hide ParametersShow Parameters
allocationunion
"INDIVIDUAL" | "POOLED"
Hide ParametersShow Parameters
"INDIVIDUAL"
"POOLED"
apply_seat_increase_configis_proratedbooleanApplySeatIncreaseConfig
Hide ParametersShow Parameters
is_proratedboolean

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

subscription_idstring
formatuuid
reseller_royaltiesarray
optional

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

Hide ParametersShow Parameters
fractionnumber
netsuite_reseller_idstring
reseller_typeunion
"AWS" | "AWS_PRO_SERVICE" | "GCP" | "GCP_PRO_SERVICE"
Hide ParametersShow Parameters
"AWS"
"AWS_PRO_SERVICE"
"GCP"
"GCP_PRO_SERVICE"
starting_atstring
formatdate-time
applicable_product_idsarray
optional
Array<string>
applicable_product_tagsarray
optional
Array<string>
aws_account_numberstring
optional
aws_offer_idstring
optional
aws_payer_reference_idstring
optional
ending_beforestring
optional
formatdate-time
gcp_account_idstring
optional
gcp_offer_idstring
optional
reseller_contract_valuenumber
optional
salesforce_opportunity_idstring
optional

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

scheduled_charges_on_usage_invoices"ALL"
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
"ALL"
spend_threshold_configurationcommitCommitis_enabledbooleanpayment_gate_configPaymentGateConfigthreshold_amountnumberSpendThresholdConfiguration
optional
Hide ParametersShow Parameters
commitproduct_idstringdescriptionstringnamestringCommit
Hide ParametersShow Parameters
product_idstring

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.

is_enabledboolean

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.

payment_gate_configpayment_gate_typeunionprecalculated_tax_configPrecalculatedTaxConfigstripe_configStripeConfigtax_typeunionPaymentGateConfig
Hide ParametersShow Parameters
payment_gate_typeunion
"NONE" | "STRIPE" | "EXTERNAL"

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
"NONE"
"STRIPE"
"EXTERNAL"
precalculated_tax_configtax_amountnumbertax_namestringPrecalculatedTaxConfig
optional

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
tax_amountnumber

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

tax_namestring
optional

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

stripe_configpayment_typeunioninvoice_metadataRecord<string, string>StripeConfig
optional

Only applicable if using STRIPE as your payment gate type.

Hide ParametersShow Parameters
payment_typeunion
"INVOICE" | "PAYMENT_INTENT"

If left blank, will default to INVOICE

Hide ParametersShow Parameters
"INVOICE"
"PAYMENT_INTENT"
invoice_metadataRecord<string, string>
optional

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

tax_typeunion
optional
"NONE" | "STRIPE" | "ANROK" | "PRECALCULATED"

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
"NONE"
"STRIPE"
"ANROK"
"PRECALCULATED"
threshold_amountnumber

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

total_contract_valuenumber
optional

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

usage_filtercurrentunioninitialBaseUsageFilterupdatesarrayUsageFilter
optional
Hide ParametersShow Parameters
currentunion
group_keystringgroup_valuesarraystarting_atstringBaseUsageFilter | null
initialgroup_keystringgroup_valuesarraystarting_atstringBaseUsageFilter
updatesarray
Array<Update>
Hide ParametersShow Parameters
group_keystring
group_valuesarray
Array<string>
starting_atstring
formatdate-time
Credit
Credit
ShowShow
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
type"CREDIT"
Hide ParametersShow Parameters
"CREDIT"
access_scheduleschedule_itemsarraycredit_typeCreditTypeDataScheduleDuration
optional

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

applicable_contract_idsarray
optional
Array<string>
applicable_product_idsarray
optional
Array<string>
applicable_product_tagsarray
optional
Array<string>
balancenumber
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.

contractidstringContract
optional
Hide ParametersShow Parameters
idstring
formatuuid
custom_fieldsRecord<string, string>
optional
descriptionstring
optional
hierarchy_configurationchild_accessunionHierarchyConfiguration
optional

Optional configuration for credit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
Hide ParametersShow Parameters
CommitHierarchyChildAccessAll
Hide ParametersShow Parameters
type"ALL"
Hide ParametersShow Parameters
"ALL"
CommitHierarchyChildAccessNone
Hide ParametersShow Parameters
type"NONE"
Hide ParametersShow Parameters
"NONE"
CommitHierarchyChildAccessContractIDs
Hide ParametersShow Parameters
contract_idsarray
Array<string>
type"CONTRACT_IDS"
Hide ParametersShow Parameters
"CONTRACT_IDS"
ledgerarray
optional
Array<amountnumbersegment_idstringtimestampstringtype"CREDIT_SEGMENT_START"CreditSegmentStartLedgerEntry | amountnumberinvoice_idstringsegment_idstringtimestampstringtype"CREDIT_AUTOMATED_INVOICE_DEDUCTION"contract_idstringCreditAutomatedInvoiceDeductionLedgerEntry | amountnumbersegment_idstringtimestampstringtype"CREDIT_EXPIRATION"CreditExpirationLedgerEntry | 4 more>

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

Hide ParametersShow Parameters
CreditSegmentStartLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_SEGMENT_START"
Hide ParametersShow Parameters
"CREDIT_SEGMENT_START"
CreditAutomatedInvoiceDeductionLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_AUTOMATED_INVOICE_DEDUCTION"
Hide ParametersShow Parameters
"CREDIT_AUTOMATED_INVOICE_DEDUCTION"
contract_idstring
optional
formatuuid
CreditExpirationLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_EXPIRATION"
Hide ParametersShow Parameters
"CREDIT_EXPIRATION"
CreditCanceledLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_CANCELED"
Hide ParametersShow Parameters
"CREDIT_CANCELED"
contract_idstring
optional
formatuuid
CreditCreditedLedgerEntry
Hide ParametersShow Parameters
amountnumber
invoice_idstring
formatuuid
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_CREDITED"
Hide ParametersShow Parameters
"CREDIT_CREDITED"
contract_idstring
optional
formatuuid
CreditManualLedgerEntry
Hide ParametersShow Parameters
amountnumber
reasonstring
timestampstring
formatdate-time
type"CREDIT_MANUAL"
Hide ParametersShow Parameters
"CREDIT_MANUAL"
CreditSeatBasedAdjustmentLedgerEntry
Hide ParametersShow Parameters
amountnumber
segment_idstring
formatuuid
timestampstring
formatdate-time
type"CREDIT_SEAT_BASED_ADJUSTMENT"
Hide ParametersShow Parameters
"CREDIT_SEAT_BASED_ADJUSTMENT"
namestring
optional
netsuite_sales_order_idstring
optional

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

prioritynumber
optional

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

rate_typeunion
optional
"COMMIT_RATE" | "LIST_RATE"
Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
salesforce_opportunity_idstring
optional

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

specifiersarray
optional
Array<Specifier>

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
presentation_group_valuesRecord<string, string>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional

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

formatuuid
product_tagsarray
optional
Array<string>

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

uniqueness_keystring
optional

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

minLength1
maxLength128
Credit Type Data
CreditTypeData
ShowShow
idstring
formatuuid
namestring
Discount
Discount
ShowShow
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
schedulecredit_typeCreditTypeDatado_not_invoicebooleanschedule_itemsarraySchedulePointInTime
custom_fieldsRecord<string, string>
optional
namestring
optional
minLength1
netsuite_sales_order_idstring
optional

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

Event Type Filter
EventTypeFilter

An optional filtering rule to match the 'event_type' property of an event.

ShowShow
in_valuesarray
optional
Array<string>

A list of event types that are explicitly included in the billable metric. If specified, only events of these types will match the billable metric. Must be non-empty if present.

not_in_valuesarray
optional
Array<string>

A list of event types that are explicitly excluded from the billable metric. If specified, events of these types will not match the billable metric. Must be non-empty if present.

ID
ID
ShowShow
idstring
formatuuid
Override
Override
ShowShow
idstring
formatuuid
starting_atstring
formatdate-time
applicable_product_tagsarray
optional
Array<string>
credit_typeidstringnamestringCreditTypeData
optional
ending_beforestring
optional
formatdate-time
entitledboolean
optional
is_commit_specificboolean
optional
is_proratedboolean
optional

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

multipliernumber
optional
override_specifiersarray
optional
Hide ParametersShow Parameters
billing_frequencyunion
optional
"MONTHLY" | "QUARTERLY" | "ANNUAL" | "WEEKLY"
Hide ParametersShow Parameters
"MONTHLY"
"QUARTERLY"
"ANNUAL"
"WEEKLY"
commit_idsarray
optional
Array<string>
presentation_group_valuesRecord<string, string | null>
optional
pricing_group_valuesRecord<string, string>
optional
product_idstring
optional
formatuuid
product_tagsarray
optional
Array<string>
recurring_commit_idsarray
optional
Array<string>
recurring_credit_idsarray
optional
Array<string>
override_tiersarray
optional
Hide ParametersShow Parameters
multipliernumber
sizenumber
optional
overwrite_raterate_typeunioncredit_typeCreditTypeDatacustom_rateRecord<string, unknown>is_proratedbooleanpricenumberquantitynumbertiersarrayOverwriteRate
optional
Hide ParametersShow Parameters
rate_typeunion
"FLAT" | "PERCENTAGE" | "SUBSCRIPTION" | 2 more
Hide ParametersShow Parameters
"FLAT"
"PERCENTAGE"
"SUBSCRIPTION"
"TIERED"
"CUSTOM"
credit_typeidstringnamestringCreditTypeData
optional
custom_rateRecord<string, unknown>
optional

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

is_proratedboolean
optional

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

pricenumber
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.

quantitynumber
optional

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

tiersarray
optional
Array<pricenumbersizenumberTier>

Only set for TIERED rate_type.

Hide ParametersShow Parameters
pricenumber
sizenumber
optional
pricenumber
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.

prioritynumber
optional
productidstringnamestringProduct
optional
Hide ParametersShow Parameters
idstring
formatuuid
namestring
quantitynumber
optional

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

rate_typeunion
optional
"FLAT" | "PERCENTAGE" | "SUBSCRIPTION" | 2 more
Hide ParametersShow Parameters
"FLAT"
"PERCENTAGE"
"SUBSCRIPTION"
"TIERED"
"CUSTOM"
targetunion
optional
"COMMIT_RATE" | "LIST_RATE"
Hide ParametersShow Parameters
"COMMIT_RATE"
"LIST_RATE"
tiersarray
optional
Array<pricenumbersizenumberTier>

Only set for TIERED rate_type.

Hide ParametersShow Parameters
pricenumber
sizenumber
optional
typeunion
optional
"OVERWRITE" | "MULTIPLIER" | "TIERED"
Hide ParametersShow Parameters
"OVERWRITE"
"MULTIPLIER"
"TIERED"
valueRecord<string, unknown>
optional

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

Property Filter
PropertyFilter
ShowShow
namestring

The name of the event property.

existsboolean
optional

Determines whether the property must exist in the event. If true, only events with this property will pass the filter. If false, only events without this property will pass the filter. If null or omitted, the existence of the property is optional.

in_valuesarray
optional
Array<string>

Specifies the allowed values for the property to match an event. An event will pass the filter only if its property value is included in this list. If undefined, all property values will pass the filter. Must be non-empty if present.

not_in_valuesarray
optional
Array<string>

Specifies the values that prevent an event from matching the filter. An event will not pass the filter if its property value is included in this list. If null or empty, all property values will pass the filter. Must be non-empty if present.

Pro Service
ProService
ShowShow
idstring
formatuuid
max_amountnumber

Maximum amount for the term.

product_idstring
formatuuid
quantitynumber

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

unit_pricenumber

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

custom_fieldsRecord<string, string>
optional
descriptionstring
optional
netsuite_sales_order_idstring
optional

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

Rate
Rate
ShowShow
rate_typeunion
"FLAT" | "PERCENTAGE" | "SUBSCRIPTION" | 2 more
Hide ParametersShow Parameters
"FLAT"
"PERCENTAGE"
"SUBSCRIPTION"
"CUSTOM"
"TIERED"
credit_typeidstringnamestringCreditTypeData
optional
custom_rateRecord<string, unknown>
optional

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

is_proratedboolean
optional

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

pricenumber
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.

pricing_group_valuesRecord<string, string>
optional

if pricing groups are used, this will contain the values used to calculate the price

quantitynumber
optional

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

tiersarray
optional
Array<pricenumbersizenumberTier>

Only set for TIERED rate_type.

Hide ParametersShow Parameters
pricenumber
sizenumber
optional
use_list_pricesboolean
optional

Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.

Scheduled Charge
ScheduledCharge
ShowShow
idstring
formatuuid
productidstringnamestringProduct
Hide ParametersShow Parameters
idstring
formatuuid
namestring
schedulecredit_typeCreditTypeDatado_not_invoicebooleanschedule_itemsarraySchedulePointInTime
archived_atstring
optional
formatdate-time
custom_fieldsRecord<string, string>
optional
namestring
optional

displayed on invoices

minLength1
netsuite_sales_order_idstring
optional

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

Schedule Duration
ScheduleDuration
ShowShow
schedule_itemsarray
Hide ParametersShow Parameters
idstring
formatuuid
amountnumber
ending_beforestring
formatdate-time
starting_atstring
formatdate-time
credit_typeidstringnamestringCreditTypeData
optional
Schedule Point In Time
SchedulePointInTime
ShowShow
credit_typeidstringnamestringCreditTypeData
optional
do_not_invoiceboolean
optional

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

schedule_itemsarray
optional
Hide ParametersShow Parameters
idstring
formatuuid
amountnumber
quantitynumber
timestampstring
formatdate-time
unit_pricenumber
invoice_idunion
optional
string | null
formatuuid
Tier
Tier
ShowShow
pricenumber
sizenumber
optional