Retrieve
Get a contract (v2)
Get a specific contract. New clients should use this endpoint rather than the v1 endpoint.
Parameters
Hide ParametersShow Parameters
Optional RFC 3339 timestamp. Return the contract as of this date. Cannot be used with include_ledgers parameter.
Include the balance of credits and commits in the response. Setting this flag may cause the query to be slower.
Include commit/credit ledgers in the response. Setting this flag may cause the query to be slower. Cannot be used with as_of_date parameter.
Returns
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The schedule that the customer will gain access to the credits purposed with this commit.
The current balance of the credit or commit. This balance reflects the amount of credit or commit that the customer has access to use at this moment - thus, expired and upcoming credit or commit segments contribute 0 to the balance. The balance will match the sum of all ledger entries with the exception of the case where the sum of negative manual ledger entries exceeds the positive amount remaining on the credit or commit - in that case, the balance will be 0. All manual ledger entries associated with active credit or commit segments are included in the balance, including future-dated manual ledger entries.
Hide ParametersShow Parameters
Optional configuration for commit hierarchy access control
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The contract that this commit will be billed on.
Hide ParametersShow Parameters
The schedule that the customer will be invoiced for this commit.
A list of ordered events that impact the balance of a commit. For example, an invoice deduction or a rollover.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
This field's availability is dependent on your client's configuration.
If multiple credits or commits are applicable, the one with the lower priority will apply first.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
This field's availability is dependent on your client's configuration.
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
If provided, the specifier will only apply to the product with the specified ID.
If provided, the specifier will only apply to products with all the specified tags.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.
Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.
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.
Default quantity. For SUBSCRIPTION rate_type, this must be >=0.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
displayed on invoices
This field's availability is dependent on your client's configuration.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
This will match contract starting_at value if usage filter is active from the beginning of the contract.
This will match contract ending_before value if usage filter is active until the end of the contract. It will be undefined if the contract is open-ended.
Hide ParametersShow Parameters
Contract usage statements follow a selected cadence based on this date.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The schedule that the customer will gain access to the credits.
The current balance of the credit or commit. This balance reflects the amount of credit or commit that the customer has access to use at this moment - thus, expired and upcoming credit or commit segments contribute 0 to the balance. The balance will match the sum of all ledger entries with the exception of the case where the sum of negative manual ledger entries exceeds the positive amount remaining on the credit or commit - in that case, the balance will be 0. All manual ledger entries associated with active credit or commit segments are included in the balance, including future-dated manual ledger entries.
Hide ParametersShow Parameters
Optional configuration for credit hierarchy access control
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
A list of ordered events that impact the balance of a credit. For example, an invoice deduction or an expiration.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
This field's availability is dependent on your client's configuration.
If multiple credits or commits are applicable, the one with the lower priority will apply first.
This field's availability is dependent on your client's configuration.
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
If provided, the specifier will only apply to the product with the specified ID.
If provided, the specifier will only apply to products with all the specified tags.
This field's availability is dependent on your client's configuration.
Hide ParametersShow Parameters
ID of Customer's billing provider configuration.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
This field's availability is dependent on your client's configuration.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
This field's availability is dependent on your client's configuration.
Indicates whether there are more items than the limit for this endpoint. Use the respective list endpoints to get the full lists.
Hide ParametersShow Parameters
Whether there are more commits on this contract than the limit for this endpoint. Use the /contracts/customerCommits/list endpoint to get the full list of commits.
Whether there are more credits on this contract than the limit for this endpoint. Use the /contracts/customerCredits/list endpoint to get the full list of credits.
Either a parent configuration with a list of children or a child configuration with a single parent.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
List of contracts that belong to this parent.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The single parent contract/customer for this child.
Hide ParametersShow Parameters
Defaults to LOWEST_MULTIPLIER, which applies the greatest discount to list prices automatically. EXPLICIT prioritization requires specifying priorities for each multiplier; the one with the lowest priority value will be prioritized first.
Hide ParametersShow Parameters
This field's availability is dependent on your client's configuration.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The commit product that will be used to generate the line item for commit payment.
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.
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.
Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.
List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.
Hide ParametersShow Parameters
If provided, the specifier will only apply to the product with the specified ID.
If provided, the specifier will only apply to products with all the specified tags.
When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.
Hide ParametersShow Parameters
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
Only applicable if using PRECALCULATED as your tax type.
Hide ParametersShow Parameters
Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule
Name of the tax to be applied. This may be used in an invoice line item description.
Only applicable if using STRIPE as your payment gateway type.
Hide ParametersShow Parameters
If left blank, will default to INVOICE
Hide ParametersShow Parameters
Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
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
Specify the amount the balance should be recharged to.
Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.
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.
Priority of the contract.
This field's availability is dependent on your client's configuration.
Hide ParametersShow Parameters
Maximum amount for the term.
Quantity for the charge. Will be multiplied by unit_price to determine the amount.
Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified.
This field's availability is dependent on your client's configuration.
Hide ParametersShow Parameters
The amount of commit to grant.
Hide ParametersShow Parameters
The amount of time the created commits will be valid for
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Will be passed down to the individual commits
Hide ParametersShow Parameters
Whether the created commits will use the commit rate or list rate
Hide ParametersShow Parameters
Will be passed down to the individual commits
Will be passed down to the individual commits
Hide ParametersShow Parameters
Will be passed down to the individual commits
Determines when the contract will stop creating recurring commits. Optional
Optional configuration for recurring credit hierarchy access control
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The amount the customer should be billed for the commit. Not required.
Hide ParametersShow Parameters
Displayed on invoices. Will be passed through to the individual commits
Will be passed down to the individual commits
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
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
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.
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
If provided, the specifier will only apply to the product with the specified ID.
If provided, the specifier will only apply to products with all the specified tags.
Attach a subscription to the recurring commit/credit.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Indicates whether a mid-period seat increase should be prorated.
Hide ParametersShow Parameters
The amount of commit to grant.
Hide ParametersShow Parameters
The amount of time the created commits will be valid for
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Will be passed down to the individual commits
Hide ParametersShow Parameters
Whether the created commits will use the commit rate or list rate
Hide ParametersShow Parameters
Will be passed down to the individual commits
Will be passed down to the individual commits
Hide ParametersShow Parameters
Will be passed down to the individual commits
Determines when the contract will stop creating recurring commits. Optional
Optional configuration for recurring credit hierarchy access control
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Displayed on invoices. Will be passed through to the individual commits
Will be passed down to the individual commits
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
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
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.
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
If provided, the specifier will only apply to the product with the specified ID.
If provided, the specifier will only apply to products with all the specified tags.
Attach a subscription to the recurring commit/credit.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Indicates whether a mid-period seat increase should be prorated.
This field's availability is dependent on your client's configuration.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
This field's availability is dependent on your client's configuration.
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
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The commit product that will be used to generate the line item for commit payment.
Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.
When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.
Hide ParametersShow Parameters
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
Only applicable if using PRECALCULATED as your tax type.
Hide ParametersShow Parameters
Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule
Name of the tax to be applied. This may be used in an invoice line item description.
Only applicable if using STRIPE as your payment gateway type.
Hide ParametersShow Parameters
If left blank, will default to INVOICE
Hide ParametersShow Parameters
Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
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
Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.
List of subscriptions on the contract.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
List of quantity schedule items for the subscription. Only includes the current quantity and future quantity changes.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
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.
package main
import (
"context"
"fmt"
"github.com/Metronome-Industries/metronome-go"
"github.com/Metronome-Industries/metronome-go/option"
)
func main() {
client := metronome.NewClient(
option.WithBearerToken("My Bearer Token"),
)
contract, err := client.V2.Contracts.Get(context.TODO(), metronome.V2ContractGetParams{
ContractID: metronome.F("d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"),
CustomerID: metronome.F("13117714-3f05-48e5-a6e9-a66093f13b4d"),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", contract.Data)
}
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"commits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"type": "PREPAID",
"access_schedule": {
"schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"amount": 0,
"ending_before": "2019-12-27T18:11:19.117Z",
"starting_at": "2019-12-27T18:11:19.117Z"
}
],
"credit_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
}
},
"applicable_contract_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"archived_at": "2019-12-27T18:11:19.117Z",
"balance": 0,
"contract": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"custom_fields": {
"foo": "string"
},
"description": "description",
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"invoice_contract": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"invoice_schedule": {
"credit_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"do_not_invoice": true,
"schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"amount": 0,
"quantity": 0,
"timestamp": "2019-12-27T18:11:19.117Z",
"unit_price": 0,
"invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
]
},
"ledger": [
{
"amount": 0,
"segment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"timestamp": "2019-12-27T18:11:19.117Z",
"type": "PREPAID_COMMIT_SEGMENT_START"
}
],
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"priority": 0,
"rate_type": "COMMIT_RATE",
"rolled_over_from": {
"commit_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"rollover_fraction": 0,
"salesforce_opportunity_id": "salesforce_opportunity_id",
"specifiers": [
{
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
]
}
]
}
],
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": "created_by",
"customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"overrides": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"starting_at": "2019-12-27T18:11:19.117Z",
"applicable_product_tags": [
"string"
],
"ending_before": "2019-12-27T18:11:19.117Z",
"entitled": true,
"is_commit_specific": true,
"multiplier": 0,
"override_specifiers": [
{
"billing_frequency": "MONTHLY",
"commit_ids": [
"string"
],
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
],
"recurring_commit_ids": [
"string"
],
"recurring_credit_ids": [
"string"
]
}
],
"override_tiers": [
{
"multiplier": 0,
"size": 0
}
],
"overwrite_rate": {
"rate_type": "FLAT",
"credit_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"custom_rate": {
"foo": "bar"
},
"is_prorated": true,
"price": 0,
"quantity": 0,
"tiers": [
{
"price": 0,
"size": 0
}
]
},
"priority": 0,
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"target": "COMMIT_RATE",
"type": "OVERWRITE"
}
],
"scheduled_charges": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"schedule": {
"credit_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"do_not_invoice": true,
"schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"amount": 0,
"quantity": 0,
"timestamp": "2019-12-27T18:11:19.117Z",
"unit_price": 0,
"invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
]
},
"archived_at": "2019-12-27T18:11:19.117Z",
"custom_fields": {
"foo": "string"
},
"name": "x",
"netsuite_sales_order_id": "netsuite_sales_order_id"
}
],
"starting_at": "2019-12-27T18:11:19.117Z",
"transitions": [
{
"from_contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"to_contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"type": "SUPERSEDE"
}
],
"usage_filter": [
{
"group_key": "group_key",
"group_values": [
"string"
],
"starting_at": "2019-12-27T18:11:19.117Z",
"ending_before": "2019-12-27T18:11:19.117Z"
}
],
"usage_statement_schedule": {
"billing_anchor_date": "2019-12-27T18:11:19.117Z",
"frequency": "MONTHLY"
},
"archived_at": "2019-12-27T18:11:19.117Z",
"credits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"type": "CREDIT",
"access_schedule": {
"schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"amount": 0,
"ending_before": "2019-12-27T18:11:19.117Z",
"starting_at": "2019-12-27T18:11:19.117Z"
}
],
"credit_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
}
},
"applicable_contract_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"balance": 0,
"contract": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"custom_fields": {
"foo": "string"
},
"description": "description",
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"ledger": [
{
"amount": 0,
"segment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"timestamp": "2019-12-27T18:11:19.117Z",
"type": "CREDIT_SEGMENT_START"
}
],
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"priority": 0,
"salesforce_opportunity_id": "salesforce_opportunity_id",
"specifiers": [
{
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
]
}
]
}
],
"custom_fields": {
"foo": "string"
},
"customer_billing_provider_configuration": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"billing_provider": "aws_marketplace",
"delivery_method": "direct_to_billing_provider"
},
"discounts": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"schedule": {
"credit_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"do_not_invoice": true,
"schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"amount": 0,
"quantity": 0,
"timestamp": "2019-12-27T18:11:19.117Z",
"unit_price": 0,
"invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
]
},
"custom_fields": {
"foo": "string"
},
"name": "x",
"netsuite_sales_order_id": "netsuite_sales_order_id"
}
],
"ending_before": "2019-12-27T18:11:19.117Z",
"has_more": {
"commits": true,
"credits": true
},
"hierarchy_configuration": {
"children": [
{
"contract_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
]
},
"multiplier_override_prioritization": "LOWEST_MULTIPLIER",
"name": "name",
"net_payment_terms_days": 0,
"netsuite_sales_order_id": "netsuite_sales_order_id",
"prepaid_balance_threshold_configuration": {
"commit": {
"product_id": "product_id",
"applicable_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"description": "description",
"name": "name",
"specifiers": [
{
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
]
}
]
},
"is_enabled": true,
"payment_gate_config": {
"payment_gate_type": "NONE",
"precalculated_tax_config": {
"tax_amount": 0,
"tax_name": "tax_name"
},
"stripe_config": {
"payment_type": "INVOICE",
"invoice_metadata": {
"foo": "string"
}
},
"tax_type": "NONE"
},
"recharge_to_amount": 0,
"threshold_amount": 0,
"custom_credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"priority": 0,
"professional_services": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"max_amount": 0,
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"quantity": 0,
"unit_price": 0,
"custom_fields": {
"foo": "string"
},
"description": "description",
"netsuite_sales_order_id": "netsuite_sales_order_id"
}
],
"rate_card_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"recurring_commits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_amount": {
"credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"unit_price": 0,
"quantity": 0
},
"commit_duration": {
"value": 0,
"unit": "PERIODS"
},
"priority": 0,
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"rate_type": "COMMIT_RATE",
"starting_at": "2019-12-27T18:11:19.117Z",
"applicable_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"contract": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"description": "description",
"ending_before": "2019-12-27T18:11:19.117Z",
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"invoice_amount": {
"credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"quantity": 0,
"unit_price": 0
},
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"proration": "NONE",
"recurrence_frequency": "MONTHLY",
"rollover_fraction": 0,
"specifiers": [
{
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
]
}
],
"subscription_config": {
"allocation": "INDIVIDUAL",
"apply_seat_increase_config": {
"is_prorated": true
},
"subscription_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}
],
"recurring_credits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_amount": {
"credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"unit_price": 0,
"quantity": 0
},
"commit_duration": {
"value": 0,
"unit": "PERIODS"
},
"priority": 0,
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
},
"rate_type": "COMMIT_RATE",
"starting_at": "2019-12-27T18:11:19.117Z",
"applicable_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"contract": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"description": "description",
"ending_before": "2019-12-27T18:11:19.117Z",
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"proration": "NONE",
"recurrence_frequency": "MONTHLY",
"rollover_fraction": 0,
"specifiers": [
{
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
]
}
],
"subscription_config": {
"allocation": "INDIVIDUAL",
"apply_seat_increase_config": {
"is_prorated": true
},
"subscription_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}
],
"reseller_royalties": [
{
"reseller_type": "AWS",
"segments": [
{
"fraction": 0,
"netsuite_reseller_id": "netsuite_reseller_id",
"reseller_type": "AWS",
"starting_at": "2019-12-27T18:11:19.117Z",
"applicable_product_ids": [
"string"
],
"applicable_product_tags": [
"string"
],
"aws_account_number": "aws_account_number",
"aws_offer_id": "aws_offer_id",
"aws_payer_reference_id": "aws_payer_reference_id",
"ending_before": "2019-12-27T18:11:19.117Z",
"gcp_account_id": "gcp_account_id",
"gcp_offer_id": "gcp_offer_id",
"reseller_contract_value": 0
}
]
}
],
"salesforce_opportunity_id": "salesforce_opportunity_id",
"scheduled_charges_on_usage_invoices": "ALL",
"spend_threshold_configuration": {
"commit": {
"product_id": "product_id",
"description": "description",
"name": "name"
},
"is_enabled": true,
"payment_gate_config": {
"payment_gate_type": "NONE",
"precalculated_tax_config": {
"tax_amount": 0,
"tax_name": "tax_name"
},
"stripe_config": {
"payment_type": "INVOICE",
"invoice_metadata": {
"foo": "string"
}
},
"tax_type": "NONE"
},
"threshold_amount": 0
},
"subscriptions": [
{
"collection_schedule": "ADVANCE",
"proration": {
"invoice_behavior": "BILL_IMMEDIATELY",
"is_prorated": true
},
"quantity_schedule": [
{
"quantity": 0,
"starting_at": "2019-12-27T18:11:19.117Z",
"ending_before": "2019-12-27T18:11:19.117Z"
}
],
"starting_at": "2019-12-27T18:11:19.117Z",
"subscription_rate": {
"billing_frequency": "MONTHLY",
"product": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
}
},
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"custom_fields": {
"foo": "string"
},
"description": "description",
"ending_before": "2019-12-27T18:11:19.117Z",
"fiat_credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "name"
}
],
"total_contract_value": 0,
"uniqueness_key": "x"
}
}