POST
/
v1
/
contract-pricing
/
rate-cards
/
getRateSchedule
Get a rate schedule
curl --request POST \
  --url https://api.metronome.com/v1/contract-pricing/rate-cards/getRateSchedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "rate_card_id": "f3d51ae8-f283-44e1-9933-a3cf9ad7a6fe",
  "starting_at": "2024-01-01T00:00:00.000Z",
  "selectors": [
    {
      "product_id": "d6300dbb-882e-4d2d-8dec-5125d16b65d0",
      "partial_pricing_group_values": {
        "region": "us-west-2",
        "cloud": "aws"
      }
    }
  ]
}'
{
  "next_page": "<string>",
  "data": [
    {
      "product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "product_name": "<string>",
      "product_tags": [
        "<string>"
      ],
      "product_custom_fields": {},
      "pricing_group_values": {},
      "starting_at": "2023-11-07T05:31:56Z",
      "ending_before": "2023-11-07T05:31:56Z",
      "entitled": true,
      "rate": {
        "rate_type": "FLAT",
        "price": 123,
        "use_list_prices": true,
        "tiers": [
          {
            "size": 123,
            "price": 123
          }
        ],
        "pricing_group_values": {},
        "credit_type": {
          "name": "<string>",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      },
      "commit_rate": {
        "rate_type": "FLAT",
        "price": 123,
        "tiers": [
          {
            "size": 123,
            "price": 123
          }
        ]
      },
      "billing_frequency": "MONTHLY"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer

Max number of results that should be returned

Required range: 1 <= x <= 100
next_page
string

Cursor that indicates where the next page of results should start.

Body

application/json

Rate schedule filter options.

The body is of type object.

Response

200 - application/json

Success

The response is of type object.