The Price List object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: true
Default: false
Default: false
Default: false
{
"id": "price-list_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enabled": true,
"price_list_name": "price_list_name_example",
"currency": "USD",
"buying": false,
"selling": false,
"price_not_uom_dependent": false
} /api/stock/price-list/{id} Retrieve a price list
Retrieves the details of an existing price list. Supply the unique price list ID that was returned from a previous request.
Path parameters
The identifier of the price list to retrieve.
Returns
Returns the price list object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/price-list/price-list_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "price-list_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enabled": true,
"price_list_name": "price_list_name_example",
"currency": "USD",
"buying": false,
"selling": false,
"price_not_uom_dependent": false
} /api/stock/price-list List all price lists
Returns a list of price lists. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of price list objects.
curl https://api.overplane.dev/api/stock/price-list \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "price-list_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enabled": true,
"price_list_name": "price_list_name_example",
"currency": "USD",
"buying": false,
"selling": false,
"price_not_uom_dependent": false
}
],
"has_more": false,
"total": 1
} /api/stock/price-list Create a price list
Creates a new price list object.
Body parameters
Default: true
Default: false
Default: false
Default: false
Returns
Returns the newly created price list object if the call succeeded.
curl https://api.overplane.dev/api/stock/price-list \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"price_list_name":"price_list_name_example","currency":"USD"}' {
"id": "price-list_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enabled": true,
"price_list_name": "price_list_name_example",
"currency": "USD",
"buying": false,
"selling": false,
"price_not_uom_dependent": false
} /api/stock/price-list/{id} Update a price list
Updates the specified price list by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the price list to update.
Body parameters
Default: true
Default: false
Default: false
Default: false
Returns
Returns the updated price list object.
curl https://api.overplane.dev/api/stock/price-list/price-list_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"enabled":true,"price_list_name":"price_list_name_example"}' {
"id": "price-list_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"enabled": true,
"price_list_name": "price_list_name_example",
"currency": "USD",
"buying": false,
"selling": false,
"price_not_uom_dependent": false
} /api/stock/price-list/{id} Delete a price list
Permanently deletes a price list. This cannot be undone.
Path parameters
The identifier of the price list to delete.
Returns
Returns a confirmation that the price list has been deleted.
curl https://api.overplane.dev/api/stock/price-list/price-list_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "price-list_abc123",
"deleted": true
} Line items
Child objects that belong to this price list. These are accessed via the parent's ID.
Price List Country
Attributes
Endpoints
/api/stock/price-list-country?parent_id={id} /api/stock/price-list-country /api/stock/price-list-country/{id} /api/stock/price-list-country/{id} /api/stock/price-list-country/reorder {
"id": "price-list-country_abc123",
"idx": 1,
"price_list_id": "price_list_id_example",
"country": "country_example"
}