curl --request POST \
--url https://api.metronome.com/v1/contracts/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "9b85c1c1-5238-4f2a-a409-61412905e1e1"
}
'{
"data": [
{
"id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
"customer_id": "e3fd63fd-fc9f-4153-a543-1fc2261a0e1c",
"initial": {
"name": "My contract",
"rate_card_id": "92f3080d-27ca-4306-a23f-2430de61851e",
"starting_at": "2020-01-01T00:00:00.000Z",
"net_payment_terms_days": 7,
"ending_before": "2022-01-01T00:00:00.000Z",
"commits": [
{
"id": "62c0cb84-bf3f-48b9-9bcf-a8ddf8c1cf35",
"type": "PREPAID",
"name": "My test commit",
"description": "My test commit description",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"rollover_fraction": 0.1,
"applicable_product_ids": [
"13a2179b-f0cb-460b-85a1-cd42964ca533"
],
"access_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "2d45952c-5a6e-43a9-8aab-f61ee21be81a",
"amount": 10000000,
"starting_at": "2020-02-01T00:00:00.000Z",
"ending_before": "2021-02-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "f15e4e23-f74e-4de4-9b3a-8b07434116c4",
"invoice_id": "525b9759-7bbd-4a05-aab1-d7c43c976b57",
"amount": 10000000,
"unit_price": 10000000,
"quantity": 1,
"timestamp": "2020-03-01T00:00:00.000Z"
}
],
"do_not_invoice": false
},
"ledger": [
{
"invoice_id": "525b9759-7bbd-4a05-aab1-d7c43c976b57",
"amount": 10000000,
"timestamp": "2020-03-01T00:00:00.000Z",
"type": "PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION",
"segment_id": "2d45952c-5a6e-43a9-8aab-f61ee21be81a"
}
],
"created_at": "2020-01-01T00:00:00.000Z"
}
],
"overrides": [
{
"id": "6cf3292a-e85c-4be6-822c-e25ba9d19757",
"product": {
"id": "eae8903b-693b-41a7-8c0b-f23748c9a9c8",
"name": "My product B"
},
"starting_at": "2020-01-01T00:00:00.000Z",
"type": "MULTIPLIER",
"multiplier": 0.1
}
],
"scheduled_charges": [],
"scheduled_charges_on_usage_invoices": "ALL",
"transitions": [
{
"type": "RENEWAL",
"from_contract_id": "9bf48856-b430-42f4-844f-4d2ea85bcff8",
"to_contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"
}
],
"reseller_royalties": [],
"usage_statement_schedule": {
"frequency": "MONTHLY",
"billing_anchor_date": "2020-01-01T00:00:00.000Z"
},
"created_at": "2019-12-31T14:23:55.234Z",
"created_by": "Alice"
},
"current": {
"rate_card_id": "92f3080d-27ca-4306-a23f-2430de61851e",
"starting_at": "2020-01-01T00:00:00.000Z",
"net_payment_terms_days": 7,
"ending_before": "2022-01-01T00:00:00.000Z",
"commits": [
{
"id": "62c0cb84-bf3f-48b9-9bcf-a8ddf8c1cf35",
"type": "PREPAID",
"name": "My test commit",
"description": "My test commit description",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"rollover_fraction": 0.1,
"applicable_product_ids": [
"13a2179b-f0cb-460b-85a1-cd42964ca533"
],
"access_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "2d45952c-5a6e-43a9-8aab-f61ee21be81a",
"amount": 10000000,
"starting_at": "2020-02-01T00:00:00.000Z",
"ending_before": "2021-02-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "f15e4e23-f74e-4de4-9b3a-8b07434116c4",
"invoice_id": "525b9759-7bbd-4a05-aab1-d7c43c976b57",
"amount": 10000000,
"unit_price": 10000000,
"quantity": 1,
"timestamp": "2020-03-01T00:00:00.000Z"
}
],
"do_not_invoice": false
},
"created_at": "2020-01-01T00:00:00.000Z"
}
],
"overrides": [
{
"id": "6cf3292a-e85c-4be6-822c-e25ba9d19757",
"product": {
"id": "eae8903b-693b-41a7-8c0b-f23748c9a9c8",
"name": "My product B"
},
"starting_at": "2020-01-01T00:00:00.000Z",
"type": "MULTIPLIER",
"multiplier": 0.1
}
],
"scheduled_charges": [
{
"id": "8e511ff1-3fd5-4d86-bc89-1e80239874bf",
"name": "My test scheduled charge",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"schedule": {
"schedule_items": [
{
"id": "6ca40ebc-9c01-484e-a64e-4e47fbbd0ebe",
"invoice_id": "5cced82b-5464-41b4-9ea7-3e080e0a4dba",
"amount": 1000000,
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2020-02-15T00:00:00.000Z"
}
]
}
}
],
"scheduled_charges_on_usage_invoices": "ALL",
"transitions": [
{
"type": "RENEWAL",
"from_contract_id": "9bf48856-b430-42f4-844f-4d2ea85bcff8",
"to_contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"
}
],
"reseller_royalties": [],
"usage_statement_schedule": {
"frequency": "MONTHLY",
"billing_anchor_date": "2020-01-01T00:00:00.000Z"
},
"created_at": "2019-12-31T14:23:55.234Z",
"created_by": "Alice"
},
"amendments": [
{
"id": "4e2fab26-31ea-473c-b07d-1ce10e7c0146",
"starting_at": "2020-04-01T00:00:00.000Z",
"scheduled_charges": [
{
"id": "8e511ff1-3fd5-4d86-bc89-1e80239874bf",
"name": "My test scheduled charge",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"schedule": {
"schedule_items": [
{
"id": "6ca40ebc-9c01-484e-a64e-4e47fbbd0ebe",
"invoice_id": "5cced82b-5464-41b4-9ea7-3e080e0a4dba",
"amount": 1000000,
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2020-02-15T00:00:00.000Z"
}
]
}
}
],
"commits": [],
"overrides": [],
"created_at": "2019-12-31T16:12:45.123Z",
"created_by": "Bob"
}
],
"custom_fields": {
"x_account_id": "KyVnHhSBWl7eY2bl"
}
}
]
}Retrieves all contracts for a specific customer, including pricing, terms, credits, and commitments. Use this to view a customer’s contract history and current agreements for billing management. Returns contract details with optional ledgers and balance information.
⚠️ Note: This is the legacy v1 endpoint - new integrations should use the v2 endpoint for enhanced features.
curl --request POST \
--url https://api.metronome.com/v1/contracts/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "9b85c1c1-5238-4f2a-a409-61412905e1e1"
}
'{
"data": [
{
"id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
"customer_id": "e3fd63fd-fc9f-4153-a543-1fc2261a0e1c",
"initial": {
"name": "My contract",
"rate_card_id": "92f3080d-27ca-4306-a23f-2430de61851e",
"starting_at": "2020-01-01T00:00:00.000Z",
"net_payment_terms_days": 7,
"ending_before": "2022-01-01T00:00:00.000Z",
"commits": [
{
"id": "62c0cb84-bf3f-48b9-9bcf-a8ddf8c1cf35",
"type": "PREPAID",
"name": "My test commit",
"description": "My test commit description",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"rollover_fraction": 0.1,
"applicable_product_ids": [
"13a2179b-f0cb-460b-85a1-cd42964ca533"
],
"access_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "2d45952c-5a6e-43a9-8aab-f61ee21be81a",
"amount": 10000000,
"starting_at": "2020-02-01T00:00:00.000Z",
"ending_before": "2021-02-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "f15e4e23-f74e-4de4-9b3a-8b07434116c4",
"invoice_id": "525b9759-7bbd-4a05-aab1-d7c43c976b57",
"amount": 10000000,
"unit_price": 10000000,
"quantity": 1,
"timestamp": "2020-03-01T00:00:00.000Z"
}
],
"do_not_invoice": false
},
"ledger": [
{
"invoice_id": "525b9759-7bbd-4a05-aab1-d7c43c976b57",
"amount": 10000000,
"timestamp": "2020-03-01T00:00:00.000Z",
"type": "PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION",
"segment_id": "2d45952c-5a6e-43a9-8aab-f61ee21be81a"
}
],
"created_at": "2020-01-01T00:00:00.000Z"
}
],
"overrides": [
{
"id": "6cf3292a-e85c-4be6-822c-e25ba9d19757",
"product": {
"id": "eae8903b-693b-41a7-8c0b-f23748c9a9c8",
"name": "My product B"
},
"starting_at": "2020-01-01T00:00:00.000Z",
"type": "MULTIPLIER",
"multiplier": 0.1
}
],
"scheduled_charges": [],
"scheduled_charges_on_usage_invoices": "ALL",
"transitions": [
{
"type": "RENEWAL",
"from_contract_id": "9bf48856-b430-42f4-844f-4d2ea85bcff8",
"to_contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"
}
],
"reseller_royalties": [],
"usage_statement_schedule": {
"frequency": "MONTHLY",
"billing_anchor_date": "2020-01-01T00:00:00.000Z"
},
"created_at": "2019-12-31T14:23:55.234Z",
"created_by": "Alice"
},
"current": {
"rate_card_id": "92f3080d-27ca-4306-a23f-2430de61851e",
"starting_at": "2020-01-01T00:00:00.000Z",
"net_payment_terms_days": 7,
"ending_before": "2022-01-01T00:00:00.000Z",
"commits": [
{
"id": "62c0cb84-bf3f-48b9-9bcf-a8ddf8c1cf35",
"type": "PREPAID",
"name": "My test commit",
"description": "My test commit description",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"rollover_fraction": 0.1,
"applicable_product_ids": [
"13a2179b-f0cb-460b-85a1-cd42964ca533"
],
"access_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "2d45952c-5a6e-43a9-8aab-f61ee21be81a",
"amount": 10000000,
"starting_at": "2020-02-01T00:00:00.000Z",
"ending_before": "2021-02-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"schedule_items": [
{
"id": "f15e4e23-f74e-4de4-9b3a-8b07434116c4",
"invoice_id": "525b9759-7bbd-4a05-aab1-d7c43c976b57",
"amount": 10000000,
"unit_price": 10000000,
"quantity": 1,
"timestamp": "2020-03-01T00:00:00.000Z"
}
],
"do_not_invoice": false
},
"created_at": "2020-01-01T00:00:00.000Z"
}
],
"overrides": [
{
"id": "6cf3292a-e85c-4be6-822c-e25ba9d19757",
"product": {
"id": "eae8903b-693b-41a7-8c0b-f23748c9a9c8",
"name": "My product B"
},
"starting_at": "2020-01-01T00:00:00.000Z",
"type": "MULTIPLIER",
"multiplier": 0.1
}
],
"scheduled_charges": [
{
"id": "8e511ff1-3fd5-4d86-bc89-1e80239874bf",
"name": "My test scheduled charge",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"schedule": {
"schedule_items": [
{
"id": "6ca40ebc-9c01-484e-a64e-4e47fbbd0ebe",
"invoice_id": "5cced82b-5464-41b4-9ea7-3e080e0a4dba",
"amount": 1000000,
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2020-02-15T00:00:00.000Z"
}
]
}
}
],
"scheduled_charges_on_usage_invoices": "ALL",
"transitions": [
{
"type": "RENEWAL",
"from_contract_id": "9bf48856-b430-42f4-844f-4d2ea85bcff8",
"to_contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"
}
],
"reseller_royalties": [],
"usage_statement_schedule": {
"frequency": "MONTHLY",
"billing_anchor_date": "2020-01-01T00:00:00.000Z"
},
"created_at": "2019-12-31T14:23:55.234Z",
"created_by": "Alice"
},
"amendments": [
{
"id": "4e2fab26-31ea-473c-b07d-1ce10e7c0146",
"starting_at": "2020-04-01T00:00:00.000Z",
"scheduled_charges": [
{
"id": "8e511ff1-3fd5-4d86-bc89-1e80239874bf",
"name": "My test scheduled charge",
"product": {
"id": "2e30f074-d04c-412e-a134-851ebfa5ceb2",
"name": "My product A"
},
"schedule": {
"schedule_items": [
{
"id": "6ca40ebc-9c01-484e-a64e-4e47fbbd0ebe",
"invoice_id": "5cced82b-5464-41b4-9ea7-3e080e0a4dba",
"amount": 1000000,
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2020-02-15T00:00:00.000Z"
}
]
}
}
],
"commits": [],
"overrides": [],
"created_at": "2019-12-31T16:12:45.123Z",
"created_by": "Bob"
}
],
"custom_fields": {
"x_account_id": "KyVnHhSBWl7eY2bl"
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List all contracts for a customer
Include commit ledgers in the response. Setting this flag may cause the query to be slower.
Include the balance of credits and commits in the response. Setting this flag may cause the query to be slower.
Include archived contracts in the response
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.
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.
Success
Show child attributes
Show child attributes
Show child attributes
PREPAID, POSTPAID Timestamp of when the commit was created.
COMMIT_RATE, LIST_RATE If multiple credits or commits are applicable, the one with the lower priority will apply first.
The schedule that the customer will gain access to the credits purposed with this commit.
Show child attributes
Show child attributes
The schedule that the customer will be invoiced for this commit.
Show child attributes
Show child attributes
This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.
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.
Show child attributes
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.
(DEPRECATED) Use access_schedule + invoice_schedule instead.
A list of ordered events that impact the balance of a commit. For example, an invoice deduction or a rollover.
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.
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.
1 - 128RFC 3339 timestamp indicating when the commit was archived. If not provided, the commit is not archived.
Show child attributes
Show child attributes
MONTHLY, QUARTERLY, ANNUAL, WEEKLY, monthly, quarterly, annual, weekly OVERWRITE, MULTIPLIER, TIERED Show child attributes
FLAT, flat, PERCENTAGE, percentage, TIERED, tiered 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.
COMMIT_RATE, LIST_RATE FLAT, flat, PERCENTAGE, percentage, TIERED, tiered 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.
Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.
Show child attributes
Show child attributes
Show child attributes
This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.
displayed on invoices
1Show child attributes
MONTHLY, monthly, QUARTERLY, quarterly, ANNUAL, annual, WEEKLY, weekly Contract usage statements follow a selected cadence based on this date.
Show child attributes
CREDIT If multiple credits or commits are applicable, the one with the lower priority will apply first.
The schedule that the customer will gain access to the credits.
Show child attributes
Show child attributes
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.
Show child attributes
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.
A list of ordered events that impact the balance of a credit. For example, an invoice deduction or an expiration.
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.
COMMIT_RATE, LIST_RATE 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.
1 - 128Show child attributes
Will be passed down to the individual commits
Whether the created commits will use the commit rate or list rate
COMMIT_RATE, commit_rate, LIST_RATE, list_rate Determines the start time for the first commit
Displayed on invoices. Will be passed through to the individual commits
Will be passed down to the individual commits
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.
Will be passed down to the individual commits
Will be passed down to the individual commits
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.
Show child attributes
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.
Determines when the contract will stop creating recurring commits. Optional
The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.
MONTHLY, monthly, QUARTERLY, quarterly, ANNUAL, annual, WEEKLY, weekly 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).
NONE, none, FIRST, first, LAST, last, FIRST_AND_LAST, first_and_last Attach a subscription to the recurring commit/credit.
Show child attributes
INDIVIDUAL, POOLED The amount the customer should be billed for the commit. Not required.
Show child attributes
Will be passed down to the individual commits
Whether the created commits will use the commit rate or list rate
COMMIT_RATE, commit_rate, LIST_RATE, list_rate Determines the start time for the first commit
Displayed on invoices. Will be passed through to the individual commits
Will be passed down to the individual commits
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.
Will be passed down to the individual commits
Will be passed down to the individual commits
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.
Show child attributes
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.
Determines when the contract will stop creating recurring commits. Optional
The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.
MONTHLY, monthly, QUARTERLY, quarterly, ANNUAL, annual, WEEKLY, weekly 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).
NONE, none, FIRST, first, LAST, last, FIRST_AND_LAST, first_and_last Attach a subscription to the recurring commit/credit.
Show child attributes
INDIVIDUAL, POOLED 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.
ALL Show child attributes
Show child attributes
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.
Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.
Show child attributes
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.
Show child attributes
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.
NONE, STRIPE, EXTERNAL 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.
NONE, STRIPE, ANROK, AVALARA, PRECALCULATED Only applicable if using STRIPE as your payment gate type.
Show child attributes
If left blank, will default to INVOICE
INVOICE, PAYMENT_INTENT Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
Show child attributes
Only applicable if using PRECALCULATED as your tax type.
Show child attributes
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.
Show child attributes
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.
Specify the threshold amount for the contract. Each time the contract's prepaid balance lowers to this amount, a threshold charge will be initiated.
Specify the amount the balance should be recharged to.
Show child attributes
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.
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.
Show child attributes
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.
NONE, STRIPE, EXTERNAL 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.
NONE, STRIPE, ANROK, AVALARA, PRECALCULATED Only applicable if using STRIPE as your payment gate type.
Show child attributes
If left blank, will default to INVOICE
INVOICE, PAYMENT_INTENT Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
Show child attributes
Only applicable if using PRECALCULATED as your tax type.
Show child attributes
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.
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.
Show child attributes
Show child attributes
PREPAID, POSTPAID Timestamp of when the commit was created.
COMMIT_RATE, LIST_RATE If multiple credits or commits are applicable, the one with the lower priority will apply first.
The schedule that the customer will gain access to the credits purposed with this commit.
Show child attributes
Show child attributes
The schedule that the customer will be invoiced for this commit.
Show child attributes
Show child attributes
This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.
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.
Show child attributes
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.
(DEPRECATED) Use access_schedule + invoice_schedule instead.
A list of ordered events that impact the balance of a commit. For example, an invoice deduction or a rollover.
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.
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.
1 - 128RFC 3339 timestamp indicating when the commit was archived. If not provided, the commit is not archived.
Show child attributes
Show child attributes
MONTHLY, QUARTERLY, ANNUAL, WEEKLY, monthly, quarterly, annual, weekly OVERWRITE, MULTIPLIER, TIERED Show child attributes
FLAT, flat, PERCENTAGE, percentage, TIERED, tiered 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.
COMMIT_RATE, LIST_RATE FLAT, flat, PERCENTAGE, percentage, TIERED, tiered 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.
Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.
Show child attributes
Show child attributes
Show child attributes
This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.
displayed on invoices
1Show child attributes
MONTHLY, monthly, QUARTERLY, quarterly, ANNUAL, annual, WEEKLY, weekly Contract usage statements follow a selected cadence based on this date.
Show child attributes
CREDIT If multiple credits or commits are applicable, the one with the lower priority will apply first.
The schedule that the customer will gain access to the credits.
Show child attributes
Show child attributes
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.
Show child attributes
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.
A list of ordered events that impact the balance of a credit. For example, an invoice deduction or an expiration.
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.
COMMIT_RATE, LIST_RATE 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.
1 - 128Show child attributes
Will be passed down to the individual commits
Whether the created commits will use the commit rate or list rate
COMMIT_RATE, commit_rate, LIST_RATE, list_rate Determines the start time for the first commit
Displayed on invoices. Will be passed through to the individual commits
Will be passed down to the individual commits
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.
Will be passed down to the individual commits
Will be passed down to the individual commits
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.
Show child attributes
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.
Determines when the contract will stop creating recurring commits. Optional
The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.
MONTHLY, monthly, QUARTERLY, quarterly, ANNUAL, annual, WEEKLY, weekly 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).
NONE, none, FIRST, first, LAST, last, FIRST_AND_LAST, first_and_last Attach a subscription to the recurring commit/credit.
Show child attributes
INDIVIDUAL, POOLED The amount the customer should be billed for the commit. Not required.
Show child attributes
Will be passed down to the individual commits
Whether the created commits will use the commit rate or list rate
COMMIT_RATE, commit_rate, LIST_RATE, list_rate Determines the start time for the first commit
Displayed on invoices. Will be passed through to the individual commits
Will be passed down to the individual commits
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.
Will be passed down to the individual commits
Will be passed down to the individual commits
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.
Show child attributes
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.
Determines when the contract will stop creating recurring commits. Optional
The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.
MONTHLY, monthly, QUARTERLY, quarterly, ANNUAL, annual, WEEKLY, weekly 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).
NONE, none, FIRST, first, LAST, last, FIRST_AND_LAST, first_and_last Attach a subscription to the recurring commit/credit.
Show child attributes
INDIVIDUAL, POOLED 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.
ALL Show child attributes
Show child attributes
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.
Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.
Show child attributes
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.
Show child attributes
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.
NONE, STRIPE, EXTERNAL 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.
NONE, STRIPE, ANROK, AVALARA, PRECALCULATED Only applicable if using STRIPE as your payment gate type.
Show child attributes
If left blank, will default to INVOICE
INVOICE, PAYMENT_INTENT Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
Show child attributes
Only applicable if using PRECALCULATED as your tax type.
Show child attributes
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.
Show child attributes
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.
Specify the threshold amount for the contract. Each time the contract's prepaid balance lowers to this amount, a threshold charge will be initiated.
Specify the amount the balance should be recharged to.
Show child attributes
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.
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.
Show child attributes
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.
NONE, STRIPE, EXTERNAL 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.
NONE, STRIPE, ANROK, AVALARA, PRECALCULATED Only applicable if using STRIPE as your payment gate type.
Show child attributes
If left blank, will default to INVOICE
INVOICE, PAYMENT_INTENT Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
Show child attributes
Only applicable if using PRECALCULATED as your tax type.
Show child attributes
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.
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.
Show child attributes
Show child attributes
PREPAID, POSTPAID Timestamp of when the commit was created.
COMMIT_RATE, LIST_RATE If multiple credits or commits are applicable, the one with the lower priority will apply first.
The schedule that the customer will gain access to the credits purposed with this commit.
Show child attributes
Show child attributes
The schedule that the customer will be invoiced for this commit.
Show child attributes
Show child attributes
This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.
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.
Show child attributes
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.
(DEPRECATED) Use access_schedule + invoice_schedule instead.
A list of ordered events that impact the balance of a commit. For example, an invoice deduction or a rollover.
Show child attributes
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.
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.
1 - 128RFC 3339 timestamp indicating when the commit was archived. If not provided, the commit is not archived.
Show child attributes
Show child attributes
MONTHLY, QUARTERLY, ANNUAL, WEEKLY, monthly, quarterly, annual, weekly OVERWRITE, MULTIPLIER, TIERED Show child attributes
FLAT, flat, PERCENTAGE, percentage, TIERED, tiered 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.
COMMIT_RATE, LIST_RATE FLAT, flat, PERCENTAGE, percentage, TIERED, tiered 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.
Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.
Show child attributes
Show child attributes
Show child attributes
This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.
displayed on invoices
1Show child attributes
CREDIT If multiple credits or commits are applicable, the one with the lower priority will apply first.
The schedule that the customer will gain access to the credits.
Show child attributes
Show child attributes
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.
Show child attributes
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.
A list of ordered events that impact the balance of a credit. For example, an invoice deduction or an expiration.
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.
COMMIT_RATE, LIST_RATE 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.
1 - 128RFC 3339 timestamp indicating when the contract was archived. If not returned, the contract is not archived.
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.
1 - 128The billing provider configuration associated with a contract.
Show child attributes
aws_marketplace, stripe, azure_marketplace, quickbooks_online, metronome direct_to_billing_provider, aws_sqs, tackle, aws_sns Configuration for the billing provider. The structure of this object is specific to the billing provider.
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.
ALL List of subscriptions on the contract.
Show child attributes
Show child attributes
MONTHLY, QUARTERLY, ANNUAL, WEEKLY, monthly, quarterly, annual, weekly ADVANCE, ARREARS, advance, arrears List of quantity schedule items for the subscription. Only includes the current quantity and future quantity changes.
Previous, current, and next billing periods for the subscription.
Show child attributes
Determines how the subscription's quantity is controlled. Defaults to QUANTITY_ONLY. QUANTITY_ONLY: The subscription quantity is specified directly on the subscription. initial_quantity must be provided with this option. Compatible with recurring commits/credits that use POOLED allocation. SEAT_BASED: Use when you want to pass specific seat identifiers (e.g. add user_123) to increment and decrement a subscription quantity, rather than directly providing the quantity. You must use a SEAT_BASED subscription to use a linked recurring credit with an allocation per seat. seat_config must be provided with this option.
SEAT_BASED, seat_based, QUANTITY_ONLY, quantity_only Show child attributes
The property name, sent on usage events, that identifies the seat ID associated with the usage event. For example, the property name might be seat_id or user_id. The property must be set as a group key on billable metrics and a presentation/pricing group key on contract products. This allows linked recurring credits with an allocation per seat to be consumed by only one seat's usage.
Show child attributes
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.
Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.
Show child attributes
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.
Show child attributes
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.
NONE, STRIPE, EXTERNAL 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.
NONE, STRIPE, ANROK, AVALARA, PRECALCULATED Only applicable if using STRIPE as your payment gate type.
Show child attributes
If left blank, will default to INVOICE
INVOICE, PAYMENT_INTENT Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
Show child attributes
Only applicable if using PRECALCULATED as your tax type.
Show child attributes
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.
Show child attributes
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.
Specify the threshold amount for the contract. Each time the contract's prepaid balance lowers to this amount, a threshold charge will be initiated.
Specify the amount the balance should be recharged to.
Show child attributes
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.
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.
Show child attributes
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.
NONE, STRIPE, EXTERNAL 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.
NONE, STRIPE, ANROK, AVALARA, PRECALCULATED Only applicable if using STRIPE as your payment gate type.
Show child attributes
If left blank, will default to INVOICE
INVOICE, PAYMENT_INTENT Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.
Show child attributes
Only applicable if using PRECALCULATED as your tax type.
Show child attributes
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.
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.