This article shares some possible use cases you can support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your implementation.
Keep an external accounting system synchronized with Wix billable items.
To implement this integration:
Perform an initial data load by calling Query Billable Items with pagination to retrieve all existing items.
Map and upload the billable items to the external system:
name
→ Product/Service namedescription
→ Product/Service descriptionprice
→ Base pricetaxGroupId
→ Tax category (if supported)Store the current timestamp for future synchronization.
Set up a scheduled job to periodically check for new or updated items by calling Query Billable Items with a filter for items created or updated since the last sync.
Allow site administrators to configure the synchronization frequency through your app settings.
Create a structured pricing page that organizes services into categories using tags.
To implement this feature:
Create tags for your service categories using the Tags API (For example, "consulting", "training", or "support").
Create billable items for each service with appropriate category tags by calling Create Billable Item.
Query BillableItems by tag to display them in the appropriate category sections using Query Billable Items with a filter for specific tags.
Display the items on your custom pricing page, organized by category and sorted by price.
When prices change, call Update Billable Item to update the pricing information.
Apply seasonal discounts to multiple services at once using bulk update functionality.
To implement this feature:
Query all billable items that should receive the discount by calling Query Billable Items with a filter for items tagged as "seasonal-eligible".
Calculate the discounted price for each item (e.g., 20% off).
Call Bulk Update Billable Items to update all prices at once, including the item ID, current revision, and new price for each item.
Handle potential errors in the response by checking the bulkActionMetadata
for success and failure counts, and implement appropriate error handling for specific error codes.
When the seasonal discount ends, repeat the process to restore original prices.