Get Edit History
Get contract edit history
post/v2/contracts/getEditHistory
Get the edit history of a specific contract. Contract editing must be enabled to use this endpoint.
Body Parameters
contract_idstring
formatuuid
customer_idstring
formatuuid
Returns
dataarray of object
curl https://api.metronome.com/v2/contracts/getEditHistory \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $METRONOME_BEARER_TOKEN" \
-d '{
"contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
"customer_id": "13117714-3f05-48e5-a6e9-a66093f13b4d"
}'
200 Example
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"add_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_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"description": "description",
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"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"
}
]
},
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"priority": 0,
"rate_type": "COMMIT_RATE",
"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"
]
}
]
}
],
"add_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_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"description": "description",
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"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"
]
}
]
}
],
"add_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"
}
],
"add_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"
}
],
"add_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"
},
"add_pro_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"
}
],
"add_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"
}
}
],
"add_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"
}
}
],
"add_reseller_royalties": [
{
"reseller_type": "AWS",
"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",
"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"
}
],
"add_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"
}
]
},
"name": "x",
"netsuite_sales_order_id": "netsuite_sales_order_id"
}
],
"add_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
},
"add_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"
}
],
"add_usage_filters": [
{
"group_key": "group_key",
"group_values": [
"string"
],
"starting_at": "2019-12-27T18:11:19.117Z",
"ending_before": "2019-12-27T18:11:19.117Z"
}
],
"archive_commits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"archive_credits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"archive_scheduled_charges": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"remove_overrides": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"timestamp": "2019-12-27T18:11:19.117Z",
"update_commits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_schedule": {
"add_schedule_items": [
{
"amount": 0,
"ending_before": "2019-12-27T18:11:19.117Z",
"starting_at": "2019-12-27T18:11:19.117Z"
}
],
"remove_schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"update_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"
}
]
},
"applicable_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"invoice_schedule": {
"add_schedule_items": [
{
"timestamp": "2019-12-27T18:11:19.117Z",
"amount": 0,
"quantity": 0,
"unit_price": 0
}
],
"remove_schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"update_schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"amount": 0,
"quantity": 0,
"timestamp": "2019-12-27T18:11:19.117Z",
"unit_price": 0
}
]
},
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"priority": 0,
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"rollover_fraction": 0,
"specifiers": [
{
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
]
}
]
}
],
"update_contract_end_date": "2019-12-27T18:11:19.117Z",
"update_contract_name": "update_contract_name",
"update_credits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_schedule": {
"add_schedule_items": [
{
"amount": 0,
"ending_before": "2019-12-27T18:11:19.117Z",
"starting_at": "2019-12-27T18:11:19.117Z"
}
],
"remove_schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"update_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"
}
]
},
"hierarchy_configuration": {
"child_access": {
"type": "ALL"
}
},
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"priority": 0,
"rollover_fraction": 0
}
],
"update_discounts": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"custom_fields": {
"foo": "string"
},
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id",
"schedule": {
"credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"do_not_invoice": true,
"recurring_schedule": {
"amount_distribution": "DIVIDED",
"ending_before": "2019-12-27T18:11:19.117Z",
"frequency": "MONTHLY",
"starting_at": "2019-12-27T18:11:19.117Z",
"amount": 0,
"quantity": 0,
"unit_price": 0
},
"schedule_items": [
{
"timestamp": "2019-12-27T18:11:19.117Z",
"amount": 0,
"quantity": 0,
"unit_price": 0
}
]
}
}
],
"update_prepaid_balance_threshold_configuration": {
"commit": {
"applicable_product_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"applicable_product_tags": [
"string"
],
"description": "description",
"name": "name",
"product_id": "product_id",
"specifiers": [
{
"presentation_group_values": {
"foo": "string"
},
"pricing_group_values": {
"foo": "string"
},
"product_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"product_tags": [
"string"
]
}
]
},
"custom_credit_type_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"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
},
"update_recurring_commits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_amount": {
"quantity": 0,
"unit_price": 0
},
"ending_before": "2019-12-27T18:11:19.117Z",
"invoice_amount": {
"quantity": 0,
"unit_price": 0
}
}
],
"update_recurring_credits": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_amount": {
"quantity": 0,
"unit_price": 0
},
"ending_before": "2019-12-27T18:11:19.117Z"
}
],
"update_refund_invoices": [
{
"date": "2019-12-27T18:11:19.117Z",
"invoice_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"update_scheduled_charges": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"invoice_schedule": {
"add_schedule_items": [
{
"timestamp": "2019-12-27T18:11:19.117Z",
"amount": 0,
"quantity": 0,
"unit_price": 0
}
],
"remove_schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
],
"update_schedule_items": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"amount": 0,
"quantity": 0,
"timestamp": "2019-12-27T18:11:19.117Z",
"unit_price": 0
}
]
},
"name": "name",
"netsuite_sales_order_id": "netsuite_sales_order_id"
}
],
"update_spend_threshold_configuration": {
"commit": {
"description": "description",
"name": "name",
"product_id": "product_id"
},
"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
},
"update_subscriptions": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"ending_before": "2019-12-27T18:11:19.117Z",
"quantity_updates": [
{
"starting_at": "2019-12-27T18:11:19.117Z",
"quantity": 0,
"quantity_delta": 0
}
]
}
]
}
]
}