Create a Ratecard
curl --request POST \
--url https://api.projectcor.com/v1/ratecards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Custom Ratecard 1",
"original_name": "Custom Ratecard 1",
"percent": 15,
"currency_id": 1,
"linked_to_base_price": false,
"external_key": "BILLING-RC-001"
}
'import requests
url = "https://api.projectcor.com/v1/ratecards"
payload = {
"name": "Custom Ratecard 1",
"original_name": "Custom Ratecard 1",
"percent": 15,
"currency_id": 1,
"linked_to_base_price": False,
"external_key": "BILLING-RC-001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Custom Ratecard 1',
original_name: 'Custom Ratecard 1',
percent: 15,
currency_id: 1,
linked_to_base_price: false,
external_key: 'BILLING-RC-001'
})
};
fetch('https://api.projectcor.com/v1/ratecards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.projectcor.com/v1/ratecards';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Custom Ratecard 1',
original_name: 'Custom Ratecard 1',
percent: 15,
currency_id: 1,
linked_to_base_price: false,
external_key: 'BILLING-RC-001'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.projectcor.com/v1/ratecards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Custom Ratecard 1',
'original_name' => 'Custom Ratecard 1',
'percent' => 15,
'currency_id' => 1,
'linked_to_base_price' => false,
'external_key' => 'BILLING-RC-001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.projectcor.com/v1/ratecards"
payload := strings.NewReader("{\n \"name\": \"Custom Ratecard 1\",\n \"original_name\": \"Custom Ratecard 1\",\n \"percent\": 15,\n \"currency_id\": 1,\n \"linked_to_base_price\": false,\n \"external_key\": \"BILLING-RC-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": 51,
"original_name": "Custom Ratecard 1",
"name": "Custom Ratecard 1",
"percent": 15,
"company_id": 2336,
"system": false,
"created_at": "2025-12-15 00:24:41",
"updated_at": "2025-12-15 00:24:41",
"deleted_at": null,
"external_key": "BILLING-RC-001",
"currency_id": 1,
"linked_to_base_price": false
}Ratecards
Create a Ratecard
Creates a new ratecard for the current company.
POST
/
ratecards
Create a Ratecard
curl --request POST \
--url https://api.projectcor.com/v1/ratecards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Custom Ratecard 1",
"original_name": "Custom Ratecard 1",
"percent": 15,
"currency_id": 1,
"linked_to_base_price": false,
"external_key": "BILLING-RC-001"
}
'import requests
url = "https://api.projectcor.com/v1/ratecards"
payload = {
"name": "Custom Ratecard 1",
"original_name": "Custom Ratecard 1",
"percent": 15,
"currency_id": 1,
"linked_to_base_price": False,
"external_key": "BILLING-RC-001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Custom Ratecard 1',
original_name: 'Custom Ratecard 1',
percent: 15,
currency_id: 1,
linked_to_base_price: false,
external_key: 'BILLING-RC-001'
})
};
fetch('https://api.projectcor.com/v1/ratecards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.projectcor.com/v1/ratecards';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Custom Ratecard 1',
original_name: 'Custom Ratecard 1',
percent: 15,
currency_id: 1,
linked_to_base_price: false,
external_key: 'BILLING-RC-001'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.projectcor.com/v1/ratecards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Custom Ratecard 1',
'original_name' => 'Custom Ratecard 1',
'percent' => 15,
'currency_id' => 1,
'linked_to_base_price' => false,
'external_key' => 'BILLING-RC-001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.projectcor.com/v1/ratecards"
payload := strings.NewReader("{\n \"name\": \"Custom Ratecard 1\",\n \"original_name\": \"Custom Ratecard 1\",\n \"percent\": 15,\n \"currency_id\": 1,\n \"linked_to_base_price\": false,\n \"external_key\": \"BILLING-RC-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": 51,
"original_name": "Custom Ratecard 1",
"name": "Custom Ratecard 1",
"percent": 15,
"company_id": 2336,
"system": false,
"created_at": "2025-12-15 00:24:41",
"updated_at": "2025-12-15 00:24:41",
"deleted_at": null,
"external_key": "BILLING-RC-001",
"currency_id": 1,
"linked_to_base_price": false
}Authorizations
Body
application/json
Input schema for creating a new ratecard
Response
200 - application/json
Ratecard created successfully
A ratecard defines pricing configurations for the company
Was this page helpful?

