Invoicing Price Groups

In Silverbucket there is possibility to have invoicing price groups which can be used for project pricing. Every user can have one pricing group attached to them and every project can have information that what is the invoicing price for this group in this specific project.
With invoicing_price_groups endpoint you can manage which invoicing groups are present in the Silverbucket. Endpoint's URL is

https://<your_environment_url>/customer-api/1.0/invoicing_price_groups/

GET

With GET method you can fetch current pricing groups from the Silverbucket's database. If GET call is made to the endpoint without any parameters, it will respond with a JSON including all the pricing groups. Example response below:
{
    "count": 1,
    "csvUrl": "/customer-api/1.0/invoicing_price_groups/?csv=true",
    "itemsPerPage": 500,
    "excelUrl": "/customer-api/1.0/invoicing_price_groups/?excel=true",
    "next": null,
    "current": 1,
    "lastPage": 1,
    "data": [
        {
            "id": 1,
            "name": "Guru pricing"
        }
    ],
    "previous": null
}

POST

With POST method you can add new invoicing price groups. The URL is the same as in GET and the body is:
{
    "name": "<pricing_group_name>"
}

Successful call will give response code 201 and return the newly created group's details.
How did we do with this article?