curl https://api.staging.metronome.com/v1/contracts/create \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "bc20325a-80a0-468e-868f-a2f28b972af8",
"starting_at": "2024-10-01T00:00:00.000Z",
"rate_card_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
"commits": [
{
"type": "prepaid",
"priority": 50,
"name": "Prepaid Commit A",
"product_id": "f14d6729-6a44-4b13-9908-9387f1918790",
"access_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"amount": 1000000,
"starting_at": "2024-10-01T00:00:00.000Z",
"ending_before": "2025-10-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2024-10-01T00:00:00.000Z"
}
]
}
},
{
"type": "prepaid",
"priority": 100,
"name": "Prepaid Commit B",
"product_id": "f14d6729-6a44-4b13-9908-9387f1918790",
"access_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"amount": 1000000,
"starting_at": "2024-10-01T00:00:00.000Z",
"ending_before": "2025-10-01T00:00:00.000Z"
}
]
}
},
{
"type": "prepaid",
"priority": 100,
"name": "Prepaid Commit C",
"product_id": "f14d6729-6a44-4b13-9908-9387f1918790",
"access_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"amount": 1000000,
"starting_at": "2024-10-01T00:00:00.000Z",
"ending_before": "2025-10-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2024-10-01T00:00:00.000Z"
}
]
},
"applicable_product_ids": [
"dbb46a31-3437-4df2-ade1-46a2641623ab"
]
},
{
"type": "prepaid",
"priority": 100,
"name": "Prepaid Commit D",
"product_id": "f14d6729-6a44-4b13-9908-9387f1918790",
"access_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"amount": 1000000,
"starting_at": "2024-10-01T00:00:00.000Z",
"ending_before": "2025-10-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2024-10-01T00:00:00.000Z"
}
]
},
"specifiers": [
{
"product_id": "dbb46a31-3437-4df2-ade1-46a2641623ab",
"pricing_group_values": {
"region": "us-east-1"
}
},
{
"pricing_group_values": {
"region": "us-west-1"
}
}
]
},
{
"type": "prepaid",
"priority": 100,
"name": "Prepaid Commit E",
"product_id": "f14d6729-6a44-4b13-9908-9387f1918790",
"access_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"amount": 1000000,
"starting_at": "2024-10-01T00:00:00.000Z",
"ending_before": "2026-10-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2024-10-01T00:00:00.000Z"
}
]
},
"specifiers": [
{
"product_id": "dbb46a31-3437-4df2-ade1-46a2641623ab",
"pricing_group_values": {
"region": "us-east-1"
}
},
{
"pricing_group_values": {
"region": "us-west-1"
}
}
]
},
{
"type": "prepaid",
"priority": 100,
"name": "Prepaid Commit F",
"product_id": "f14d6729-6a44-4b13-9908-9387f1918790",
"access_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"amount": 1000000,
"starting_at": "2024-10-01T00:00:00.000Z",
"ending_before": "2025-10-01T00:00:00.000Z"
}
]
},
"invoice_schedule": {
"credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"schedule_items": [
{
"unit_price": 1000000,
"quantity": 1,
"timestamp": "2024-10-01T00:00:00.000Z"
}
]
}
}
]
}'