Costs endpoints
Verb | Path | Method |
---|---|---|
POST | /api/v1/costs/schema/create_schema/ | Define cost schema |
POST | /api/v1/costs/bulk_create_or_update | Bulk update costs entries |
With our API, you can easily create or update costs. This table keeps track of all your costs for different suppliers. Pricemoov supports dated costs which means Pricemoov will keep track of the updated costs in the past. This is useful when analyzing past performance. Before that you need to define costs schema.
name
description
attributes
columns
is_dated
type: string, Required
The name of the cost table
type: string, default: None, Optional
The description of the cost
type: list, Required
The granularity of the costs
type: list, Required
A list of mapping of cost columns
type: boolean, default: false, Optional
If need costs to be historized by default
Upon success, the response is 200 OK and returns
By utilizing our API, you have the convenience of effortlessly updating costs. This table effectively maintains a record of all your costs related to various suppliers. Pricemoov facilitates the inclusion of dated costs, allowing for accurate tracking of historical cost updates. This feature proves particularly valuable when analyzing previous performance. However, prior to that, it is necessary to establish a defined cost schema. This is how you achieve that.
name
payload
type: string, Required
Name of the cost table to update
type: string, Required
A list of dicts, that should have the following field:
- attributes
- columns
- effective_start_date (if table is dated)
Upon success, the response is 200 OK and returns