Skip to main content
POST
/
v1
/
contract-pricing
/
rate-cards
/
getNamedSchedule
Get a rate card's named schedule
curl --request POST \
  --url https://api.metronome.com/v1/contract-pricing/rate-cards/getNamedSchedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "rate_card_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
  "schedule_name": "my-schedule",
  "covering_date": "2022-02-15T00:00:00Z"
}'
{
  "data": [
    {
      "starting_at": "2022-02-01T00:00:00Z",
      "ending_before": "2022-03-01T00:00:00Z",
      "value": "my-value"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Which rate card, schedule name, and date to retrieve.

rate_card_id
string<uuid>
required

ID of the rate card whose named schedule is to be retrieved

schedule_name
string
required

The identifier for the schedule to be retrieved

covering_date
string<date-time>

If provided, at most one schedule segment will be returned (the one that covers this date). If not provided, all segments will be returned.

Response

200 - application/json

Success

data
object[]
required
I