Services: Sample Use Cases and Flows

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.

Export new services to an external catalog

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:

  1. 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.

  2. 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.

  3. Upload the retrieved services to the external catalog.

  4. Save the request's date and time to use it as filter in your next query.

  5. When it's time for the next export, call Query Services. Save the request's date and time. Specify this `filter:

    Copy
  6. Upload the retrieved services to the external catalog.

  7. Repeat steps 4 to 6 for each subsequent export. You could allow the business owners to configure the export's time interval.

Did this help?