Commercial operations and calculations
Apply scheduled price changes
Apply the price effective at an explicit evaluation time to a HubSpot line item, while exposing the next scheduled change and notice window.
Make it your own
Review the setup and limits below, then open an editable copy in Turbyn.
Use this recipeYour selection stays with you through signup.
What it does
Resolves up to 100 dated prices, rejects contradictory schedules, checks currency and optional previous price, reads before writing, and reports uncertain writes for reconciliation.
What to customize
Choose the schedule currency and notice lead days. Map a UTC evaluation time, dated prices, the line-item ID and an optional expected previous price.
Run the included tests with your configuration and mappings. Review success, missing-input and failure results before publishing.
Expected outcome
This included example runs in dry-run mode with synthetic data. Integration tests separately cover provider responses using test doubles. It is not a live customer result.
Sample input
sample-input.json
{
"inputFields": {
"field1": "2026-06-15T00:00:00Z",
"field2": "[{\"effectiveDate\":\"2026-01-01\",\"price\":\"99.00\"},{\"effectiveDate\":\"2026-06-20\",\"price\":\"109.00\"}]",
"field3": "123"
}
}Sample output
sample-output.json
{
"outputFields": {
"output1": "99.00",
"output2": "dry_run",
"output3": "{\"currency\":\"USD\",\"upcoming\":{\"effectiveDate\":\"2026-06-20\",\"price\":\"109.00\",\"noticeDue\":true},\"lineItemId\":\"123\",\"effectiveDate\":\"2026-01-01\",\"reason\":\"Would read the line item and apply this price; no CRM call was made.\"}"
}
}Returned fields
- output1
- Effective price as a decimal string; empty when unresolved
- output2
- applied, already_applied, not_due, dry_run, read_failed, review_required, unknown, or invalid
- output3
- JSON effective date, record ID, currency, upcoming price and notice information
What changes when it runs
Live mode reads and updates the selected HubSpot line-item price. Other modes make no CRM calls. No payment or notification is sent.
Ready to try it with your rules?
Map your inputs, test a sample and publish the version you’ve checked.