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

List

List customer contracts (v1)
v1.contracts.list(**kwargs) -> dataarrayContractListResponse
post/v1/contracts/list

This is the v1 endpoint to list all contracts for a customer. New clients should implement using the v2 endpoint.

Parameters
customer_idString
formatuuid
covering_dateTime
optional

Optional RFC 3339 timestamp. If provided, the response will include only contracts effective on the provided date. This cannot be provided if the starting_at filter is provided.

formatdate-time
include_archivedbool
optional

Include archived contracts in the response

include_balancebool
optional

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

include_ledgersbool
optional

Include commit ledgers in the response. Setting this flag may cause the query to be slower.

starting_atTime
optional

Optional RFC 3339 timestamp. If provided, the response will include only contracts where effective_at is on or after the provided date. This cannot be provided if the covering_date filter is provided.

formatdate-time
Returns
ContractListResponseclass
Hide ParametersShow Parameters
dataarray
Array[{ id, amendments, current, 11 more}]
Hide ParametersShow Parameters
idString
formatuuid
amendmentsarray
Array[{ id, commits, created_at, 10 more}]
Hide ParametersShow Parameters
idString
formatuuid
commitsarray
Array[idStringproductobjecttypeunionaccess_scheduleScheduleDurationamountFloatapplicable_contract_idsarrayapplicable_product_idsarrayapplicable_product_tagsarrayarchived_atTimebalanceFloatcontractobjectcustom_fieldshashdescriptionStringhierarchy_configurationobjectinvoice_contractobjectinvoice_scheduleSchedulePointInTimeledgerarraynameStringnetsuite_sales_order_idStringpriorityFloatrate_typeunionrolled_over_fromobjectrollover_fractionFloatsalesforce_opportunity_idStringspecifiersarrayuniqueness_keyStringCommit]
Hide ParametersShow Parameters
idString
formatuuid
productobject
{ id, name}
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.

amountFloat
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_atTime
optional

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

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

contractobject
optional
{ id}
Hide ParametersShow Parameters
idString
formatuuid
custom_fieldshash
optional
Hash[Symbol, String]
descriptionString
optional
hierarchy_configurationobject
optional
{ child_access}

Optional configuration for commit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
{ type} | { type} | { contract_ids, type}
Hide ParametersShow Parameters
CommitHierarchyChildAccessAllclass
Hide ParametersShow Parameters
typeunion
:ALL
Hide ParametersShow Parameters
:ALL
CommitHierarchyChildAccessNoneclass
Hide ParametersShow Parameters
typeunion
:NONE
Hide ParametersShow Parameters
:NONE
CommitHierarchyChildAccessContractIDsclass
Hide ParametersShow Parameters
contract_idsarray
Array[String]
typeunion
:CONTRACT_IDS
Hide ParametersShow Parameters
:CONTRACT_IDS
invoice_contractobject
optional
{ id}

The contract that this commit will be billed on.

Hide ParametersShow Parameters
idString
formatuuid
invoice_schedulecredit_typeCreditTypeDatado_not_invoiceboolschedule_itemsarraySchedulePointInTime
optional

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

ledgerarray
optional
Array[{ amount, segment_id, timestamp, type} | { amount, invoice_id, segment_id, 3 more} | { amount, new_contract_id, segment_id, 2 more} | 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
PrepaidCommitSegmentStartLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_SEGMENT_START
Hide ParametersShow Parameters
:PREPAID_COMMIT_SEGMENT_START
PrepaidCommitAutomatedInvoiceDeductionLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION
Hide ParametersShow Parameters
:PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION
contract_idString
optional
formatuuid
PrepaidCommitRolloverLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
new_contract_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_ROLLOVER
Hide ParametersShow Parameters
:PREPAID_COMMIT_ROLLOVER
PrepaidCommitExpirationLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_EXPIRATION
Hide ParametersShow Parameters
:PREPAID_COMMIT_EXPIRATION
PrepaidCommitCanceledLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_CANCELED
Hide ParametersShow Parameters
:PREPAID_COMMIT_CANCELED
contract_idString
optional
formatuuid
PrepaidCommitCreditedLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_CREDITED
Hide ParametersShow Parameters
:PREPAID_COMMIT_CREDITED
contract_idString
optional
formatuuid
PrepaidCommitSeatBasedAdjustmentLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT
Hide ParametersShow Parameters
:PREPAID_COMMIT_SEAT_BASED_ADJUSTMENT
PostpaidCommitInitialBalanceLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
timestampTime
formatdate-time
typeunion
:POSTPAID_COMMIT_INITIAL_BALANCE
Hide ParametersShow Parameters
:POSTPAID_COMMIT_INITIAL_BALANCE
PostpaidCommitAutomatedInvoiceDeductionLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION
Hide ParametersShow Parameters
:POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION
contract_idString
optional
formatuuid
PostpaidCommitRolloverLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
new_contract_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:POSTPAID_COMMIT_ROLLOVER
Hide ParametersShow Parameters
:POSTPAID_COMMIT_ROLLOVER
PostpaidCommitTrueupLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
timestampTime
formatdate-time
typeunion
:POSTPAID_COMMIT_TRUEUP
Hide ParametersShow Parameters
:POSTPAID_COMMIT_TRUEUP
contract_idString
optional
formatuuid
PrepaidCommitManualLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
reasonString
timestampTime
formatdate-time
typeunion
:PREPAID_COMMIT_MANUAL
Hide ParametersShow Parameters
:PREPAID_COMMIT_MANUAL
PostpaidCommitManualLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
reasonString
timestampTime
formatdate-time
typeunion
:POSTPAID_COMMIT_MANUAL
Hide ParametersShow Parameters
:POSTPAID_COMMIT_MANUAL
PostpaidCommitExpirationLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
timestampTime
formatdate-time
typeunion
: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.

priorityFloat
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_fromobject
optional
{ commit_id, contract_id}
Hide ParametersShow Parameters
commit_idString
formatuuid
contract_idString
formatuuid
rollover_fractionFloat
optional
salesforce_opportunity_idString
optional

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

specifiersarray
optional
Array[{ presentation_group_values, pricing_group_values, product_id, product_tags}]

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_valueshash
optional
Hash[Symbol, String]
pricing_group_valueshash
optional
Hash[Symbol, String]
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_atTime
formatdate-time
created_byString
overridesarray
Array[idStringstarting_atTimeapplicable_product_tagsarraycredit_typeCreditTypeDataending_beforeTimeentitledboolis_commit_specificboolis_proratedboolmultiplierFloatoverride_specifiersarrayoverride_tiersarrayoverwrite_rateobjectpriceFloatpriorityFloatproductobjectquantityFloatrate_typeuniontargetuniontiersarraytypeunionvaluehashOverride]
Hide ParametersShow Parameters
idString
formatuuid
starting_atTime
formatdate-time
applicable_product_tagsarray
optional
Array[String]
credit_typeidStringnameStringCreditTypeData
optional
ending_beforeTime
optional
formatdate-time
entitledbool
optional
is_commit_specificbool
optional
is_proratedbool
optional

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

multiplierFloat
optional
override_specifiersarray
optional
Array[{ billing_frequency, commit_ids, presentation_group_values, 5 more}]
Hide ParametersShow Parameters
billing_frequencyunion
optional
:MONTHLY | :QUARTERLY | :ANNUAL | :WEEKLY
Hide ParametersShow Parameters
:MONTHLY
:QUARTERLY
:ANNUAL
:WEEKLY
commit_idsarray
optional
Array[String]
presentation_group_valueshash
optional
Hash[Symbol, String]
pricing_group_valueshash
optional
Hash[Symbol, String]
product_idString
optional
formatuuid
product_tagsarray
optional
Array[String]
recurring_commit_idsarray
optional
Array[String]
recurring_credit_idsarray
optional
Array[String]
override_tiersarray
optional
Array[{ multiplier, size}]
Hide ParametersShow Parameters
multiplierFloat
sizeFloat
optional
overwrite_rateobject
optional
{ rate_type, credit_type, custom_rate, 4 more}
Hide ParametersShow Parameters
rate_typeunion
:FLAT | :PERCENTAGE | :SUBSCRIPTION | 2 more
Hide ParametersShow Parameters
:FLAT
:PERCENTAGE
:SUBSCRIPTION
:TIERED
:CUSTOM
credit_typeidStringnameStringCreditTypeData
optional
custom_ratehash
optional
Hash[Symbol, untyped]

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

is_proratedbool
optional

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

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

quantityFloat
optional

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

tiersarray
optional
Array[priceFloatsizeFloatTier]

Only set for TIERED rate_type.

Hide ParametersShow Parameters
priceFloat
sizeFloat
optional
priceFloat
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.

priorityFloat
optional
productobject
optional
{ id, name}
Hide ParametersShow Parameters
idString
formatuuid
nameString
quantityFloat
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[priceFloatsizeFloatTier]

Only set for TIERED rate_type.

Hide ParametersShow Parameters
priceFloat
sizeFloat
optional
typeunion
optional
:OVERWRITE | :MULTIPLIER | :TIERED
Hide ParametersShow Parameters
:OVERWRITE
:MULTIPLIER
:TIERED
valuehash
optional
Hash[Symbol, untyped]

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

scheduled_chargesarray
Array[idStringproductobjectscheduleSchedulePointInTimearchived_atTimecustom_fieldshashnameStringnetsuite_sales_order_idStringScheduledCharge]
Hide ParametersShow Parameters
idString
formatuuid
productobject
{ id, name}
Hide ParametersShow Parameters
idString
formatuuid
nameString
schedulecredit_typeCreditTypeDatado_not_invoiceboolschedule_itemsarraySchedulePointInTime
archived_atTime
optional
formatdate-time
custom_fieldshash
optional
Hash[Symbol, String]
nameString
optional

displayed on invoices

minLength1
netsuite_sales_order_idString
optional

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

starting_atTime
formatdate-time
creditsarray
optional
Array[idStringproductobjecttypeunionaccess_scheduleScheduleDurationapplicable_contract_idsarrayapplicable_product_idsarrayapplicable_product_tagsarraybalanceFloatcontractobjectcustom_fieldshashdescriptionStringhierarchy_configurationobjectledgerarraynameStringnetsuite_sales_order_idStringpriorityFloatrate_typeunionsalesforce_opportunity_idStringspecifiersarrayuniqueness_keyStringCredit]
Hide ParametersShow Parameters
idString
formatuuid
productobject
{ id, name}
Hide ParametersShow Parameters
idString
formatuuid
nameString
typeunion
: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]
balanceFloat
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.

contractobject
optional
{ id}
Hide ParametersShow Parameters
idString
formatuuid
custom_fieldshash
optional
Hash[Symbol, String]
descriptionString
optional
hierarchy_configurationobject
optional
{ child_access}

Optional configuration for credit hierarchy access control

Hide ParametersShow Parameters
child_accessunion
{ type} | { type} | { contract_ids, type}
Hide ParametersShow Parameters
CommitHierarchyChildAccessAllclass
Hide ParametersShow Parameters
typeunion
:ALL
Hide ParametersShow Parameters
:ALL
CommitHierarchyChildAccessNoneclass
Hide ParametersShow Parameters
typeunion
:NONE
Hide ParametersShow Parameters
:NONE
CommitHierarchyChildAccessContractIDsclass
Hide ParametersShow Parameters
contract_idsarray
Array[String]
typeunion
:CONTRACT_IDS
Hide ParametersShow Parameters
:CONTRACT_IDS
ledgerarray
optional
Array[{ amount, segment_id, timestamp, type} | { amount, invoice_id, segment_id, 3 more} | { amount, segment_id, timestamp, type} | 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
CreditSegmentStartLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:CREDIT_SEGMENT_START
Hide ParametersShow Parameters
:CREDIT_SEGMENT_START
CreditAutomatedInvoiceDeductionLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:CREDIT_AUTOMATED_INVOICE_DEDUCTION
Hide ParametersShow Parameters
:CREDIT_AUTOMATED_INVOICE_DEDUCTION
contract_idString
optional
formatuuid
CreditExpirationLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:CREDIT_EXPIRATION
Hide ParametersShow Parameters
:CREDIT_EXPIRATION
CreditCanceledLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:CREDIT_CANCELED
Hide ParametersShow Parameters
:CREDIT_CANCELED
contract_idString
optional
formatuuid
CreditCreditedLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
invoice_idString
formatuuid
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
:CREDIT_CREDITED
Hide ParametersShow Parameters
:CREDIT_CREDITED
contract_idString
optional
formatuuid
CreditManualLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
reasonString
timestampTime
formatdate-time
typeunion
:CREDIT_MANUAL
Hide ParametersShow Parameters
:CREDIT_MANUAL
CreditSeatBasedAdjustmentLedgerEntryclass
Hide ParametersShow Parameters
amountFloat
segment_idString
formatuuid
timestampTime
formatdate-time
typeunion
: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.

priorityFloat
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[{ presentation_group_values, pricing_group_values, product_id, product_tags}]

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_valueshash
optional
Hash[Symbol, String]
pricing_group_valueshash
optional
Hash[Symbol, String]
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[idStringproductobjectscheduleSchedulePointInTimecustom_fieldshashnameStringnetsuite_sales_order_idStringDiscount]

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

Hide ParametersShow Parameters
idString
formatuuid
productobject
{ id, name}
Hide ParametersShow Parameters
idString
formatuuid
nameString
schedulecredit_typeCreditTypeDatado_not_invoiceboolschedule_itemsarraySchedulePointInTime
custom_fieldshash
optional
Hash[Symbol, String]
nameString
optional
minLength1
netsuite_sales_order_idString
optional

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

netsuite_sales_order_idString
optional

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

professional_servicesarray
optional
Array[idStringmax_amountFloatproduct_idStringquantityFloatunit_priceFloatcustom_fieldshashdescriptionStringnetsuite_sales_order_idStringProService]

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

Hide ParametersShow Parameters
idString
formatuuid
max_amountFloat

Maximum amount for the term.

product_idString
formatuuid
quantityFloat

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

unit_priceFloat

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

custom_fieldshash
optional
Hash[Symbol, String]
descriptionString
optional
netsuite_sales_order_idString
optional

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

reseller_royaltiesarray
optional
Array[{ reseller_type, aws_account_number, aws_offer_id, 8 more}]

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

Hide ParametersShow Parameters
reseller_typeunion
:AWS | :AWS_PRO_SERVICE | :GCP | :GCP_PRO_SERVICE
Hide ParametersShow Parameters
:AWS
:AWS_PRO_SERVICE
:GCP
:GCP_PRO_SERVICE
aws_account_numberString
optional
aws_offer_idString
optional
aws_payer_reference_idString
optional
ending_beforeTime
optional
formatdate-time
fractionFloat
optional
gcp_account_idString
optional
gcp_offer_idString
optional
netsuite_reseller_idString
optional
reseller_contract_valueFloat
optional
starting_atTime
optional
formatdate-time
salesforce_opportunity_idString
optional

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

currentcommitsarraycreated_atTimecreated_byStringoverridesarrayscheduled_chargesarraystarting_atTimetransitionsarrayusage_statement_scheduleobjectcreditsarraydiscountsarrayending_beforeTimehierarchy_configurationunionnameStringnet_payment_terms_daysFloatnetsuite_sales_order_idStringprepaid_balance_threshold_configurationobjectprofessional_servicesarrayrate_card_idStringrecurring_commitsarrayrecurring_creditsarrayreseller_royaltiesarraysalesforce_opportunity_idStringscheduled_charges_on_usage_invoicesunionspend_threshold_configurationobjecttotal_contract_valueFloatusage_filterobjectContractWithoutAmendments
customer_idString
formatuuid
initialcommitsarraycreated_atTimecreated_byStringoverridesarrayscheduled_chargesarraystarting_atTimetransitionsarrayusage_statement_scheduleobjectcreditsarraydiscountsarrayending_beforeTimehierarchy_configurationunionnameStringnet_payment_terms_daysFloatnetsuite_sales_order_idStringprepaid_balance_threshold_configurationobjectprofessional_servicesarrayrate_card_idStringrecurring_commitsarrayrecurring_creditsarrayreseller_royaltiesarraysalesforce_opportunity_idStringscheduled_charges_on_usage_invoicesunionspend_threshold_configurationobjecttotal_contract_valueFloatusage_filterobjectContractWithoutAmendments
archived_atTime
optional

RFC 3339 timestamp indicating when the contract was archived. If not returned, the contract is not archived.

formatdate-time
custom_fieldshash
optional
Hash[Symbol, String]
customer_billing_provider_configurationobject
optional
{ billing_provider, delivery_method, id, configuration}

The billing provider configuration associated with a contract.

Hide ParametersShow Parameters
billing_providerunion
:aws_marketplace | :stripe | :netsuite | 5 more
Hide ParametersShow Parameters
:aws_marketplace
:stripe
:netsuite
:custom
:azure_marketplace
:quickbooks_online
:workday
:gcp_marketplace
delivery_methodunion
:direct_to_billing_provider | :aws_sqs | :tackle | :aws_sns
Hide ParametersShow Parameters
:direct_to_billing_provider
:aws_sqs
:tackle
:aws_sns
idString
optional
formatuuid
configurationhash
optional
Hash[Symbol, untyped]

Configuration for the billing provider. The structure of this object is specific to the billing provider.

prepaid_balance_threshold_configurationobject
optional
{ commit, is_enabled, payment_gate_config, 3 more}
Hide ParametersShow Parameters
commitobject
{ product_id, applicable_product_ids, applicable_product_tags, 3 more}
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[{ presentation_group_values, pricing_group_values, product_id, product_tags}]

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_valueshash
optional
Hash[Symbol, String]
pricing_group_valueshash
optional
Hash[Symbol, String]
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_enabledbool

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_configobject
{ payment_gate_type, precalculated_tax_config, stripe_config, tax_type}
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_configobject
optional
{ tax_amount, tax_name}

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
tax_amountFloat

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_configobject
optional
{ payment_type, invoice_metadata}

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_metadatahash
optional
Hash[Symbol, String]

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_amountFloat

Specify the amount the balance should be recharged to.

threshold_amountFloat

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
priorityFloat
optional

Priority of the contract.

scheduled_charges_on_usage_invoicesunion
optional
:ALL

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_configurationobject
optional
{ commit, is_enabled, payment_gate_config, threshold_amount}
Hide ParametersShow Parameters
commitobject
{ product_id, description, name}
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_enabledbool

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_configobject
{ payment_gate_type, precalculated_tax_config, stripe_config, tax_type}
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_configobject
optional
{ tax_amount, tax_name}

Only applicable if using PRECALCULATED as your tax type.

Hide ParametersShow Parameters
tax_amountFloat

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_configobject
optional
{ payment_type, invoice_metadata}

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_metadatahash
optional
Hash[Symbol, String]

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_amountFloat

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

subscriptionsarray
optional
Array[{ collection_schedule, proration, quantity_schedule, 8 more}]

List of subscriptions on the contract.

Hide ParametersShow Parameters
collection_scheduleunion
:ADVANCE | :ARREARS
Hide ParametersShow Parameters
:ADVANCE
:ARREARS
prorationobject
{ invoice_behavior, is_prorated}
Hide ParametersShow Parameters
invoice_behaviorunion
:BILL_IMMEDIATELY | :BILL_ON_NEXT_COLLECTION_DATE
Hide ParametersShow Parameters
:BILL_IMMEDIATELY
:BILL_ON_NEXT_COLLECTION_DATE
is_proratedbool
quantity_schedulearray
Array[{ quantity, starting_at, ending_before}]

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

Hide ParametersShow Parameters
quantityFloat
starting_atTime
formatdate-time
ending_beforeTime
optional
formatdate-time
starting_atTime
formatdate-time
subscription_rateobject
{ billing_frequency, product}
Hide ParametersShow Parameters
billing_frequencyunion
:MONTHLY | :QUARTERLY | :ANNUAL | :WEEKLY
Hide ParametersShow Parameters
:MONTHLY
:QUARTERLY
:ANNUAL
:WEEKLY
productobject
{ id, name}
Hide ParametersShow Parameters
idString
formatuuid
nameString
idString
optional
formatuuid
custom_fieldshash
optional
Hash[Symbol, String]
descriptionString
optional
ending_beforeTime
optional
formatdate-time
fiat_credit_type_idString
optional
formatuuid
nameString
optional
uniqueness_keyString
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
require "metronome_sdk"

metronome = MetronomeSDK::Client.new(bearer_token: "My Bearer Token")

contracts = metronome.v1.contracts.list(customer_id: "9b85c1c1-5238-4f2a-a409-61412905e1e1")

puts(contracts)
200 Example
{
  "data": [
    {
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "amendments": [
        {
          "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"
                }
              },
              "amount": 0,
              "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"
                  ]
                }
              ],
              "uniqueness_key": "x"
            }
          ],
          "created_at": "2019-12-27T18:11:19.117Z",
          "created_by": "created_by",
          "overrides": [
            {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "starting_at": "2019-12-27T18:11:19.117Z",
              "applicable_product_tags": [
                "string"
              ],
              "credit_type": {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "name": "name"
              },
              "ending_before": "2019-12-27T18:11:19.117Z",
              "entitled": true,
              "is_commit_specific": true,
              "is_prorated": 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
                  }
                ]
              },
              "price": 0,
              "priority": 0,
              "product": {
                "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                "name": "name"
              },
              "quantity": 0,
              "rate_type": "FLAT",
              "target": "COMMIT_RATE",
              "tiers": [
                {
                  "price": 0,
                  "size": 0
                }
              ],
              "type": "OVERWRITE",
              "value": {
                "foo": "bar"
              }
            }
          ],
          "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",
          "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,
              "rate_type": "COMMIT_RATE",
              "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"
                  ]
                }
              ],
              "uniqueness_key": "x"
            }
          ],
          "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"
            }
          ],
          "netsuite_sales_order_id": "netsuite_sales_order_id",
          "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"
            }
          ],
          "reseller_royalties": [
            {
              "reseller_type": "AWS",
              "aws_account_number": "aws_account_number",
              "aws_offer_id": "aws_offer_id",
              "aws_payer_reference_id": "aws_payer_reference_id",
              "ending_before": "2019-12-27T18:11:19.117Z",
              "fraction": 0,
              "gcp_account_id": "gcp_account_id",
              "gcp_offer_id": "gcp_offer_id",
              "netsuite_reseller_id": "netsuite_reseller_id",
              "reseller_contract_value": 0,
              "starting_at": "2019-12-27T18:11:19.117Z"
            }
          ],
          "salesforce_opportunity_id": "salesforce_opportunity_id"
        }
      ],
      "current": {
        "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"
              }
            },
            "amount": 0,
            "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"
                ]
              }
            ],
            "uniqueness_key": "x"
          }
        ],
        "created_at": "2019-12-27T18:11:19.117Z",
        "created_by": "created_by",
        "overrides": [
          {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "starting_at": "2019-12-27T18:11:19.117Z",
            "applicable_product_tags": [
              "string"
            ],
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "ending_before": "2019-12-27T18:11:19.117Z",
            "entitled": true,
            "is_commit_specific": true,
            "is_prorated": 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
                }
              ]
            },
            "price": 0,
            "priority": 0,
            "product": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "quantity": 0,
            "rate_type": "FLAT",
            "target": "COMMIT_RATE",
            "tiers": [
              {
                "price": 0,
                "size": 0
              }
            ],
            "type": "OVERWRITE",
            "value": {
              "foo": "bar"
            }
          }
        ],
        "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_statement_schedule": {
          "billing_anchor_date": "2019-12-27T18:11:19.117Z",
          "frequency": "MONTHLY"
        },
        "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,
            "rate_type": "COMMIT_RATE",
            "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"
                ]
              }
            ],
            "uniqueness_key": "x"
          }
        ],
        "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",
        "hierarchy_configuration": {
          "children": [
            {
              "contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
            }
          ]
        },
        "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"
        },
        "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": [
          {
            "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
        },
        "total_contract_value": 0,
        "usage_filter": {
          "current": {
            "group_key": "group_key",
            "group_values": [
              "string"
            ],
            "starting_at": "2019-12-27T18:11:19.117Z"
          },
          "initial": {
            "group_key": "group_key",
            "group_values": [
              "string"
            ],
            "starting_at": "2019-12-27T18:11:19.117Z"
          },
          "updates": [
            {
              "group_key": "group_key",
              "group_values": [
                "string"
              ],
              "starting_at": "2019-12-27T18:11:19.117Z"
            }
          ]
        }
      },
      "customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "initial": {
        "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"
              }
            },
            "amount": 0,
            "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"
                ]
              }
            ],
            "uniqueness_key": "x"
          }
        ],
        "created_at": "2019-12-27T18:11:19.117Z",
        "created_by": "created_by",
        "overrides": [
          {
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "starting_at": "2019-12-27T18:11:19.117Z",
            "applicable_product_tags": [
              "string"
            ],
            "credit_type": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "ending_before": "2019-12-27T18:11:19.117Z",
            "entitled": true,
            "is_commit_specific": true,
            "is_prorated": 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
                }
              ]
            },
            "price": 0,
            "priority": 0,
            "product": {
              "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "name": "name"
            },
            "quantity": 0,
            "rate_type": "FLAT",
            "target": "COMMIT_RATE",
            "tiers": [
              {
                "price": 0,
                "size": 0
              }
            ],
            "type": "OVERWRITE",
            "value": {
              "foo": "bar"
            }
          }
        ],
        "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_statement_schedule": {
          "billing_anchor_date": "2019-12-27T18:11:19.117Z",
          "frequency": "MONTHLY"
        },
        "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,
            "rate_type": "COMMIT_RATE",
            "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"
                ]
              }
            ],
            "uniqueness_key": "x"
          }
        ],
        "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",
        "hierarchy_configuration": {
          "children": [
            {
              "contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
              "customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
            }
          ]
        },
        "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"
        },
        "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": [
          {
            "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
        },
        "total_contract_value": 0,
        "usage_filter": {
          "current": {
            "group_key": "group_key",
            "group_values": [
              "string"
            ],
            "starting_at": "2019-12-27T18:11:19.117Z"
          },
          "initial": {
            "group_key": "group_key",
            "group_values": [
              "string"
            ],
            "starting_at": "2019-12-27T18:11:19.117Z"
          },
          "updates": [
            {
              "group_key": "group_key",
              "group_values": [
                "string"
              ],
              "starting_at": "2019-12-27T18:11:19.117Z"
            }
          ]
        }
      },
      "archived_at": "2019-12-27T18:11:19.117Z",
      "custom_fields": {
        "foo": "string"
      },
      "customer_billing_provider_configuration": {
        "billing_provider": "aws_marketplace",
        "delivery_method": "direct_to_billing_provider",
        "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        "configuration": {
          "foo": "bar"
        }
      },
      "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,
      "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"
        }
      ],
      "uniqueness_key": "x"
    }
  ]
}