This article share a possible use case your code could support, as well as a sample flow supporting it. This can be a helpful jumping off point as you plan your implementation.
If the business manages their services in an external catalog, you can periodically export new services from Wix to the external catalog.
To export services:
For the first export, call Query Services
(SDK | REST)
without specifying any filters to retrieve all services. By default the
initial paging limit is 100
.
Optional: If you've received 100 services, there may be additional services.
Call Query Services again, specifying 100
as paging.offset
. Continue
retrieving services while increasing the offset, until you've retrieved all
services.
Upload the retrieved services to the external catalog.
Save the request's date and time to use it as filter in your next query.
When it's time for the next export, call Query Services. Save the request's date and time. Specify this `filter:
Upload the retrieved services to the external catalog.
Repeat steps 4 to 6 for each subsequent export. You could allow the business owners to configure the export's time interval.