GET /rate_cards
- Returns the current version of all rate cards.
Response fields |
Description/format |
id |
Integer |
name |
String |
default_rate |
Decimal |
created_by |
Integer, ID of person |
updated_by |
Integer, ID of person |
created_at |
Date |
updated_at |
Date |
[
{
"id":1,
"name":"High end rates 2017",
"default_rate":200.0,
"currency":"USD",
"created_by":1,
"updated_by":1,
"created_at":"2017-01-14T18:46:56Z",
"updated_at":"2017-01-14T18:47:58Z"
}, ...
]
GET /rate_cards/{rate_cardId}
- Returns the current version of a specific rate card.
Response fields |
Description/format |
id |
Integer |
name |
String |
default_rate |
Decimal |
created_by |
Integer, ID of person |
updated_by |
Integer, ID of person |
created_at |
Date |
updated_at |
Date |
{
"id":1,
"name":"High end rates 2017",
"default_rate":200.0,
"currency":"USD",
"created_by":1,
"updated_by":1,
"created_at":"2017-01-14T18:46:56Z",
"updated_at":"2017-01-14T18:47:58Z"
}
POST /rate_cards
- Creates a new rate card. Returns the same object as getting a single rate card.
Request fields |
Description/format |
name |
String (Required) |
default_rate |
Decimal (Defaults to 0) |
currency |
String |
POST https://api.forecast.it/api/v1/rate_cards
{
"name":"Low end rates 2017",
"default_rate":150.0,
"currency":"USD"
}
PUT /rate_cards/{rate_cardId}
- Updates a rate card. Returns the same object as getting a single rate card.
Request fields |
Description/format |
name |
String |
default_rate |
Decimal |
PUT https://api.forecast.it/api/v1/rate_cards/1
{
"name":"High end rates 2017-2018",
}
DELETE /rate_cards/{rate_cardId}
- Deletes a rate card.
DELETE https://api.forecast.it/api/v1/rate_cards/1